Skip to main content

M-PESA STK Push

POST /api/payments/stk-push

Collect funds from a phone number

Header Parameters
  • api-key string required
  • api-secret string required
Request Body required
  • balanceId int64 required

    Balance Id being collected into

  • amount double required

    Amount being collected

  • phoneNumber string required

    Phone number collecting from

  • reference string required

    Your reference for the transaction

Responses

STK Push was sucessful

Response Headers
  • x-request-id any

    Request Id for traceability

Schema
  • paymentId uuid required

    Unique identifier for the payment

  • success boolean required

    Was the payment successful?

  • detail string required

    Details of the payment

  • reference string required

    Reference provided for the payment

Loading...