Reference
//
Request M-Pesa STK push p...
🔒 Private label — contact sales. Requires a private-label entitlement on your API client.
Request M-Pesa STK push payment
Security
oauth2ClientCredentials(Required scopes: payments:write)
- Mock serverhttps://developer.boyahq.com/_mock/v2/openapi/payments/request-mpesa-payment
- Productionhttps://api.boyahq.com/v2/payments/request-mpesa-payment
- Sandboxhttps://sandbox.api.boyahq.com/v2/payments/request-mpesa-payment
curl -i -X POST \
https://developer.boyahq.com/_mock/v2/openapi/payments/request-mpesa-payment \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'business_id: string' \
-H 'org_wallet_ref: string' \
-d '{
"phoneNumber": "254712345678",
"amount": 100,
"accountNumber": "INV001",
"note": "Payment for invoice"
}'M-Pesa payment request initiated successfully
Response description
Example:"Success. Request accepted for processing"
Response
{ "MerchantRequestID": "9a7a-428c-9f96-2533a83f54c22766019", "CheckoutRequestID": "ws_CO_15012026123947186710702289", "ResponseCode": "0", "ResponseDescription": "Success. Request accepted for processing", "CustomerMessage": "Success. Request accepted for processing", "status": 1 }