Skip to main content
POST
/
momo
/
resolve
Resolve a Till, Paybill number, or Mobile Money operator
curl --request POST \
  --url https://api.stablepay.ai/momo/resolve \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "paybill",
  "accountNumber": "<string>",
  "phoneNumber": "+254727614739"
}'
{
  "valid": true,
  "type": "paybill",
  "accountName": "<string>",
  "accountNumber": "<string>",
  "phoneNumber": "<string>",
  "operators": [
    "safaricom"
  ],
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication using Bearer scheme. Format: Bearer {STA_xxxx}

Body

application/json

Resolve an M-Pesa Till/Paybill number or Mobile Money phone operator

type
enum<string>
required

Type of account to resolve

Available options:
paybill,
till,
momo
accountNumber
string

For M-Pesa Paybill: the Paybill business number (6 digits). For M-Pesa Till: the Till number (6 digits).

Required for paybill and till type.

phoneNumber
string

For MoMo: Phone number with country code.

Example:

"+254727614739"

Response

Validation request successfully processed.

valid
boolean
required

Whether the validation was successful

type
enum<string>
required

Type of account that was resolved

Available options:
paybill,
till,
momo
accountName
string

Resolved account name for M-Pesa Paybill or M-Pesa Till payment.

accountNumber
string

Validated account number for M-Pesa Paybill or M-Pesa Till payment.

phoneNumber
string

Validated phone number for MoMo payment.

operators
string[]

Resolved mobile operators for MoMo payment.

Example:
["safaricom"]
message
string

Additional information about the validation result