Consumer Wallet Payment to Paybill

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

ParameterDescriptionMandatory
commandIdCommand to execute, must be ConsumerToPayillPaymentYes
serviceProviderIdMobile money service provider, e.g., MPESAYes
referenceUnique identifier for the transaction (UUID or alphanumeric)Yes
requestArray of key-value pairs specifying payment detailsYes

Request Details in request Array for Paybill Payment

idDescriptionMandatory
amountAmount to be paid in KshYes
narrationDescription or note for paymentYes
businessNumberPaybill business numberYes
accountReferenceAccount reference for paymentYes
ipnUrlURL to receive instant payment notificationsYes

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"
}
Language
Credentials
Bearer
JWT
Click Try It! to start a request and see the response here!