Skip to main content

Validate accounts and lookup codes

Validate an account​

Before you pay, check who the recipient is:

curl -X POST https://api.intasend.com/api/v1/send-money/validate-accounts/ \
-H "Authorization: Bearer $INTASEND_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{"provider": "MPESA-B2C", "account": "254712345678"}'
{"account": "254712345678", "name": "JANE DOE", "status": "…"}
FieldRequiredNotes
providerYesThe provider you'll pay with
accountYesAccount to validate
account_typeFor MPESA-B2BPayBill or TillNumber
bank_codeFor PESALINKBank code
countryFor INTASEND-XBISO-2 country code

Supported lookups:

ProviderCountryWhat's returned
MPESA-B2CKERegistered M-Pesa name
MPESA-B2BKETill or paybill organisation name
PESALINKKEBank account holder name
INTASENDAnyIntaSend account name
INTASEND-XBUG, RWMobile money account name
INTASEND-XB-BANKUGBank account name

Bank codes​

GET /api/v1/send-money/bank-codes/{country}/ does not need authentication.

curl https://api.intasend.com/api/v1/send-money/bank-codes/ke/
[{"bank_name": "Equity Bank", "bank_code": "68"}, {"bank_name": "KCB", "bank_code": "1"}]
CountryUse with
kePESALINK, RTGS, EFT
ngINTASEND-XB with country: "NG"
ugINTASEND-XB-BANK

Operator codes​

GET /api/v1/send-money/operator-codes/{country}/?channel_type=MOBILE_MONEY|BANK

curl https://api.intasend.com/api/v1/send-money/operator-codes/tz/?channel_type=MOBILE_MONEY

Each item contains country, channel_type, operator_name, operator_code, default_provider and is_channel_default. Pass operator_code on transactions when the network can't be detected from the phone number. It is required in Tanzania.