POST
/
mpesa
/
payout
curl --request POST \
  --url https://api.stablepay.ai/mpesa/payout \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": 11,
  "destination": "Paybill",
  "accountName": "<string>",
  "accountNumber": "<string>",
  "businessNumber": "<string>",
  "reference": "<string>"
}'
{
  "success": true,
  "transactionId": "<string>"
}

Authorizations

Authorization
string
header
required

JWT token for API authentication

Body

application/json

Create a new Mpesa payment.

The body is of type object.

Response

201
application/json

Payout request successfully created.

The response is of type object.