M-Pesa Collections (πŸ‡°πŸ‡ͺ)

Changed on

This endpoint allows a user, to initiate an STK push deposit into a specified bank account using M-Pesa as the payment method.

post/api/b2b/banking/transactions/deposit-stk

Request

  • Base URL
    https://api-v2.honeycoin.app
  • URL
    https://api-v2.honeycoin.app/api/b2b/banking/transactions/deposit-stk
  • Auth
    API key in header Authorization

Request body

amountinteger required
accountIdstring required

Your Account ID, this is the account ID of the collection account issued to you.

phoneNumberstring required
externalReferencestring required

A unique ID of your liking to reconcile transactions internally.

Response

200

successboolean
transactionIdstring
messagestring

Example response

{
  "success": true,
  "transactionId": "PGjkFlva9Ymll8AqbmHd",
  "message": "Transaction initiated successfully."
}

Changes