Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Payout countries

Returns the countries that have at least one active payer, optionally narrowed by service and currency.

Endpoint

GET/api/v1/pay-out/countries

Authentication: HTTP Basic with your API key and secret. See Authentication.

Query parameters

All parameters are optional.

ParameterTypeDescription
country_isostring3-letter country code (ISO 3166-1 alpha-3), for example COL. Returns only that country if it is available.
service_slugstringOnly countries served by this service. Use a slug from Payout services.
currencystringOnly countries with payers in this currency (ISO 4217), for example COP.
namestringOnly countries whose name contains this text.

country_iso_code is accepted as an alias of country_iso. Codes are case-insensitive.

Example

Terminal window
curl "https://sandbox-api.cashela.com/api/v1/pay-out/countries?service_slug=bank-deposit" \
-u "$CASHELA_API_KEY:$CASHELA_API_SECRET" \
-H "Accept: application/json"
{
"success": true,
"data": [
{ "id": 48, "name": "Colombia", "country_iso": "COL", "iso_code": "COL" },
{ "id": 62, "name": "Dominican Republic", "country_iso": "DOM", "iso_code": "DOM" }
],
"message": "Countries retrieved successfully."
}

Countries are sorted by name. The IDs and countries above are illustrative.

Response fields

FieldTypeDescription
idintegerCashela country ID.
namestringCountry name.
country_isostring3-letter country code. Use it in destination.country_iso_code when you create a quotation.
iso_codestringSame value as country_iso.

Errors

StatusWhen
422A filter has an unknown value (for example a country_iso, currency or service_slug that does not exist).