v1

latestOpenAPI 3.0.02026-07-2627149175.2 KB
toolkit

Predict Provider

post/v2/predict-provider

Request body

phoneNumberstring required

The phone number (MSISDN) to predict the provider of. Must contain the country code.

The input will be sanitized by:

  • removing the leading + sign
  • removing all whitespace
  • removing non-numeric characters

Example request

{
  "phoneNumber": "+260 763-456789"
}

Response

Provider prediction was completed

countrystring required

The country in which the payment was initiated.

Format is ISO 3166-1 alpha-3, three character country code in upper case. Read more from Wikipedia.

providerstring required

The provider represents the mobile money operator or processor that can process payments.

Find here a list of all the supported providers.

The active configuration endpoint provides the list of provider configured for your account.

You can use the predict provider enpoint to predict the provider to use based on the phone number (MSISDN).

phoneNumberstring required

The correctly formatted phone number (MSISDN) from your original request that is in a valid format for the rest of the PawaPay Merchant API.

Example response

{
  "country": "ZMB",
  "provider": "MTN_MOMO_ZMB",
  "phoneNumber": "260763456789"
}