M-PESA PayBill / BuyGoods

Scope

This applies to scenarios where end users are making a transfer to:

  1. M-PESA Paybill

  2. M-PESA Till/BuyGoods

Steps

1

Initiate Transfer Request

Call endpoint /trans/v2/applyForMpesaBusinessTransfer to initiate a transfer request

Status: 1-SUBMITTED

2

Confirm OTP

Call endpoint /common/sendOtp to request for OTP, filling the value of txId to businessId parameter. Call endpoint /common/confirmOperation to confirm the OTP code received.

Status: 2-PROCESSING

The endpoint /common/sendOtp can also be used to resend OTP.

3

Transaction Processing

Status: 2-PROCESSING

4

Get Onboarding Result

  • Get it from 0002 - Transaction Result Notification

  • Query transaction status by calling the endpoint /query/getTransResult

Status

Last updated