API Reference
Get Country Requirement [GET]

Get Country Requirement

https://sandboxapi.onbrails.com/api/v1/wallets/payout/supported-countries/{country_code} (opens in a new tab)

You can get the details required for creating a beneficiary for the country you want to make a payout to. These required details are used to populate the destination object in the add beneficiary API

Path Parameters

ParametertypeRequired
country_codestring

Request

Beneficiaries/Get Country Requirement [GET]
curl --request GET \
     --url https://sandboxapi.onbrails.com/api/v1/wallets/payout/supported-countries/country_code \
     --header 'Authorization: Bearer YOUR_SECRET_KEY' \
     --header 'accept: application/json'

Responses

🟢 200 - Result example
{
"status": true,
"message": "supported country successfully retrieved",
"data": {
  "code": "KE",
  "name": "Kenya",
  "flag": "🇰🇪",
  "dialCode": "254",
  "destination": {
    "MOBILEMONEY": [
      {
        "name": "type",
        "type": "string",
        "required": true,
        "const": "MOBILEMONEY"
      },
      {
        "name": "network",
        "type": "string",
        "required": true,
        "enum": [
          "MPESA"
        ]
      },
      {
        "name": "accountNumber",
        "type": "string",
        "required": true,
        "pattern": "^2547[\\d]{8}$"
      }
    ]
  }
}
}