Skip to main content
POST
Walkthrough: M-PESA and Airtel Money guide.

Authorizations

Authorization
string
header
required

Token from Generate bearer token.

Body

application/json
amount
integer
required

Amount in KES.

Example:

1500

currency
enum<string>
required

ISO 4217 currency code. Tanda supports KES.

Available options:
KES
Example:

"KES"

phoneNumber
string
required

Kenyan mobile number in international format without the +, e.g. 254712345678.

Example:

"254712345678"

externalReference
string
required

Your unique ID for this transaction. Must be unique per attempt; reuse returns 409 DUPLICATE_EXTERNAL_REFERENCE.

Example:

"order_10045"

momoOperatorId
enum<string>

Network to charge. Optional for KES: if omitted, it's resolved from the phone number.

Available options:
mpesa,
airtel
externalAccountId
string

ID of a saved deposit beneficiary (see Beneficiaries).

Response

Prompt sent.

success
boolean
message
string
transactionId
string