POST https://sandbox.dusupay.com/v1/collections
POST https://api.dusupay.com/v1/collections
Parameter | Type | Description | Required |
api_key | string | Obtained from merchant account settings | YES |
currency | string | You can use your home currency when making requests. e.g USD You will receive your funds at the market rate into your merchant sub-account account. | YES |
amount | int/double | 2 decimal places allowed for double. | YES |
method | string |
| YES |
provider_id | string | e.g | YES |
account_number | string | Provide an internationally formatted number if the payment method is | Only for |
merchant_reference | string | The UNIQUE reference for this transaction, generated by your system. A unique string value should be sent for every attempt | YES,
|
narration | string | Use this to add a brief description or comment on the transaction. | required, |
redirect_url | string | Required for | YES but Optional for |
account_name | string | Helps to easily lookup customer transactions. | NO |
account_email | string | Used to email customer. Helps to easily lookup customer transactions. | NO |
Some networks or providers require extra data from the customer for the transaction to get processed.
Network | Fields | Description |
GhanaMobileMoney - Vodafone | voucher | String. Customer should |
Parameters | Type | Description |
request_amount | double | Amount requested for collection |
request_currency | string | The currency of the requested amount |
account_amount | double | The converted amount from request_currency to account_currency at market rate. |
account_currency | string | The sub-account/wallet currency in your merchant account where the amount paid by the customer will be deposited. The currency of the amount paid by the customer is determined by the provider_id used to pay. |
transaction_fee | double | This is the fee charged off the paid amount. Whether the merchant is charged or the customer, depending on your merchant setting, the fees will be included in this field. |
total_credit | double | This is the amount less the transaction_fee deposited in your account. |
provider_id | string | This is the provider the customer is expected to pay from |
merchant_reference | string | This is the reference passed earlier in the request |
internal_reference | string | This is our internal reference. Useful when dealing with transaction issues. Store it. |
transaction_status | string | The status of the transaction |
customer_charged | boolean | This indicates whether it’s the customer that was charged or not. Under your merchant account settings, you can define whether we should charge you or the customer paying. |
payment_url | string |
|
instructions | string |
|
{"api_key": "pk_eridsdsde23e23e2. Get this from your merchant account settings","currency": "USD","amount": 0.2,"method": "MOBILE_MONEY/CARD/BANK/CRYPTO","provider_id": "e.g airtel_ug, mtn_ug. Get list of providers from the Providers API","account_number": "256777111000","merchant_reference": "Your payment reference","narration": "Short Payment reason","redirect_url": "optional. used for payments completed via payment_url returned ","account_name": "optional","account_email": "optional","voucher": "optional. Required for Ghana vodafone mobile money"}
{"code": 202,"status": "accepted","message": "Transaction Initiated","data": {"id": 226,"request_amount": 0.2,"request_currency": "USD","account_amount": 737.9934,"account_currency": "UGX","transaction_fee": 21.4018,"total_credit": 716.5916,"provider_id": "mtn_ug","merchant_reference": "76859aae-f148-48c5-9901-2e474cf19b71","internal_reference": "DUSUPAY405GZM1G5JXGA71IK","transaction_status": "PENDING","transaction_type": "collection","message": "Transaction Initiated","customer_charged": false,"payment_url": "This only exists if the payment needs to be completed from a web browser.","instructions": [{"step_no": "1","description": "Ensure that you have sufficient balance on your MTN Mobile Money account"},{"step_no": "2","description": "Approve the payment request sent to your phone"}],"customer_charged": true}}
{"id": 226,"request_amount": 0.2,"request_currency": "USD","account_amount": 737.9934,"account_currency": "UGX","transaction_fee": 21.4018,"total_credit": 716.5916,"customer_charged": false,"provider_id": "mtn_ug","merchant_reference": "76859aae-f148-48c5-9901-2e474cf19b71","internal_reference": "DUSUPAY405GZM1G5JXGA71IK","transaction_status": "COMPLETED","transaction_type": "collection","message": "Transaction Completed Successfully","account_number": "256777111786 - Optional","account_name": "- Optional","institution_name": "MTN Mobile Money - Optional"}