Mobile Money Collection
The API supports mobile money as described in the Supported Countries section. The section below will guide you through the process of accepting Mobile Money
Last updated
{
"merchant_reference": "auto",
"transaction_method": "MOBILE_MONEY",
"currency": "UGX",
"amount": 10000,
"provider_code": "mtn_momo_ug",
"msisdn": "256777000001",
"customer_email": "[email protected]",
"customer_name": "JOHN DOE",
"description": "Test Collection",
"charge_customer": false
}curl -X POST "https://gwapisdbx.ellypayapp.com/collections/initialize" \
-H 'Content-Type: application/json' \
-H "x-api-version: 1" \
-H "public-key: your-public-key" \
-d '{
"merchant_reference": "auto",
"transaction_method": "MOBILE_MONEY",
"currency": "UGX",
"amount": 10000,
"provider_code": "mtn_momo_ug",
"msisdn": "256777000001",
"customer_email": "[email protected]",
"customer_name": "JOHN DOE",
"description": "Test Collection",
"charge_customer": false,
}'{
"code": 202,
"status": "accepted",
"message": "Request Accepted",
"data": {
"internal_reference": "ELPREFA65BGTFR7NGUXM",
"merchant_reference": "MCTREFNGKLP5VQCQSBH2"
}
}{
"code": 400,
"status": "error",
"message": "256752000001 is not a valid MTN Mobile Money Uganda (mtn_momo_ug) phone number",
"data": {}
}{
"event": "transaction.completed",
"payload": {
"id": 11832,
"merchant_reference": "MCTREFNGKLP5VQCQSBH2",
"internal_reference": "ELPREFA65BGTFR7NGUXM",
"transaction_type": "COLLECTION",
"request_currency": "UGX",
"transaction_amount": 100000,
"transaction_currency": "UGX",
"transaction_charge": 4000,
"transaction_account": "256777000001",
"charge_customer": false,
"total_credit": 96000,
"provider_code": "mtn_momo_ug",
"request_amount": 100000,
"institution_name": "MTN Mobile Money Uganda",
"customer_name": "JOHN DOE",
"transaction_status": "COMPLETED",
"status_message": "Transaction Completed Successfully"
}
}{
"event": "transaction.failed",
"payload": {
"id": 11832,
"merchant_reference": "MCTREFNGKLP5VQCQSBH2",
"internal_reference": "ELPREFA65BGTFR7NGUXM",
"transaction_type": "COLLECTION",
"request_currency": "UGX",
"transaction_amount": 100000,
"transaction_currency": "UGX",
"transaction_charge": 0,
"transaction_account": "256777000001",
"charge_customer": false,
"total_credit": 0,
"provider_code": "mtn_momo_ug",
"request_amount": 100000,
"institution_name": "MTN Mobile Money Uganda",
"customer_name": "JOHN DOE",
"transaction_status": "FAILED",
"status_message": "Balance Insufficient for the transaction"
}
}