Stk Push Initiated by Safaricom

Initiates Online Payments on behalf of a merchant by sending a payment prompt on the customers phone

Request
Request Body schema: application/json

Pay using the stkPush

TransactionType
required
string
Amount
required
number
Timestamp
required
string
PartyA
required
string
PhoneNumber
required
string
CallBackURL
required
string
TransactionDesc
required
string
Responses
200

Successfully created standing order

400

bad input parameter

post/safaricom-stkpush
Request samples
application/json
{
  • "TransactionType": "CustomerPayBillOnline",
  • "Amount": 1,
  • "Timestamp": "20160216165627",
  • "PartyA": "254708374149",
  • "PhoneNumber": "254708374149",
  • "CallBackURL": "https://my-domain.com",
  • "TransactionDesc": "Test Payment"
}
Response samples
application/json
{
  • "MerchantRequestID": "AG_20191219_000043fdf61864fe9ff5",
  • "CheckoutRequestID": "ws_CO_191220191020363925",
  • "ResponseCode": "QR Code Successfully Generated.",
  • "ResponseDescription": "Success. Request accepted for processing",
  • "CustomerMessage": "Success. Request accepted for processing"
}