post https://api-v3-uat.tanda.africa/io/v3/organizations//consumers//requests/
Initiates a payment from a consumer's wallet to an MPESA till number.
Consumer To Till Payment API
Consumer Payment to Merchant Till
This API enables consumers to make payments directly to a merchant's till number using mobile money (e.g., MPESA).
Request Body Parameters
Parameter | Description | Mandatory |
---|---|---|
commandId | Command to execute, must be ConsumerToTillPayment | Yes |
serviceProviderId | Mobile money service provider, e.g., MPESA | Yes |
reference | Unique identifier for the transaction (UUID or alphanumeric) | Yes |
request | Array of key-value pairs specifying payment details | Yes |
Request Details in request
Array for Till Payment
request
Array for Till Paymentid | Description | Mandatory |
---|---|---|
amount | Amount to be paid in Ksh | Yes |
narration | Description or note for payment | Yes |
till | Merchant till number | Yes |
ipnUrl | URL to receive instant payment notifications | Yes |
Example Request - Till Payment
{
"commandId": "ConsumerToTillPayment",
"serviceProviderId": "MPESA",
"reference": "e9b1c7d8-f7e9-4fda-99ed-31e8370aa9b4",
"request": [
{
"id": "amount",
"value": "500",
"label": "Amount"
},
{
"id": "narration",
"value": "Payment to Mpesa till",
"label": "Narration"
},
{
"id": "till",
"value": "123456",
"label": "Till Number"
},
{
"id": "ipnUrl",
"value": "https://tanda-tills-ipn.free.beeceptor.com",
"label": "Notification URL"
}
]
}
Sample Response - Till Payment
{
"trackingId": "a17f35d2-9b21-4c0b-99fd-b067d4b7b22f",
"reference": "e9b1c7d8-f7e9-4fda-99ed-31e8370aa9b4",
"status": "P202000",
"message": "Successful. Request accepted for processing. You'll be notified by Tanda shortly"
}