Business Buy Goods

3. Business to Business Via Mobile Money Till

This option is for sending money to an M-Pesa till from a Merchant float wallet.

Path: /io/v3/organizations/{organizationId}/request

Method: POST

CommandId: MerchantTo3rdPartyMerchantPayment

Use the following for testing

organizationId: a353acfa-5340-49ac-8f7c-2f807a87fc2f

shortCode: 746312

Body

ParameterDescriptionMandatory
commandIdSpecifies the command used to resolve a payment option, in this case, MerchantTo3rdPartyMerchantPaymentYes
serviceProviderIdSpecifies the service provider for the mobile money payment, Supported service providers are: MPESAYes
referenceA unique reference for the transaction.Yes
requestObject array containing additional request detailsYes

Request parameters

ParameterDescriptionMandatory
amountThe amount of money in Ksh.Yes
partyAUniquely identifies an entity making a request. This is issued by TandaYes
partyBA valid M-Pesa tillYes
narrationDescription of the payment.Yes
ipnUrlURL to receive Instant payment notifications on.Yes

Example

{
  "commandId": "MerchantTo3rdPartyMerchantPayment",
  "serviceProviderId": "MPESA",
  "reference":"REFEBC1234",
  "request": [
    {
        "id": "amount",
        "value": "2",
        "label": "Amount"
    },{
        "id": "narration",
        "value": "Payment via Till",
        "label": "Narration"
    },
    {
        "id": "ipnUrl",
        "value": "https://tanda-tills-ipn.free.beeceptor.com/results",
        "label": "Notification URL"
    },{
         "id": "partyA",
        "value": "01234",
        "label": "Short code"
    },{
         "id": "partyB",
        "value": "000000",
        "label": "Till"
    }
  ]
}

Sample response

{
    "trackingId": "b5b47bd2-c1da-4b8a-b0de-ffb4ec474bff",
    "reference": "QBQIGRH1",
    "status": "P202000",
    "message": "Successful. Request accepted for processing. You'll be notified by Tanda shortly"
}
Language
Credentials
OAuth2
Click Try It! to start a request and see the response here!