post https://api-v3-uat.tanda.africa/io/v3/organizations//consumers//request/consumerToPaybillPayment
Initiates a payment from consumer's wallet to an MPESA paybill.
Consumer To Paybill Payment API
This API allows consumers to make payments to a registered paybill number using mobile money (e.g., MPESA).
Request Body Parameters
Parameter | Description | Mandatory |
---|---|---|
commandId | Command to execute, must be ConsumerToPayillPayment | 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 Paybill Payment
request
Array for Paybill Paymentid | Description | Mandatory |
---|---|---|
amount | Amount to be paid in Ksh | Yes |
narration | Description or note for payment | Yes |
businessNumber | Paybill business number | Yes |
accountReference | Account reference for payment | Yes |
ipnUrl | URL to receive instant payment notifications | Yes |
Example Request - Paybill Payment
{
"commandId": "ConsumerToPayillPayment",
"serviceProviderId": "MPESA",
"reference": "e9b1c7d8-f7e9-4fda-99ed-31e8370aa9b4",
"request": [
{
"id": "amount",
"value": "1",
"label": "Amount"
},
{
"id": "narration",
"value": "Payment",
"label": "Narration"
},
{
"id": "businessNumber",
"value": "522522",
"label": "Business number"
},
{
"id": "accountReference",
"value": "1173677844",
"label": "Account reference"
},
{
"id": "ipnUrl",
"value": "https://tanda-tills-ipn.free.beeceptor.com",
"label": "Notification URL"
}
]
}
Sample Response - Paybill 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"
}