API reference
Reference data
Supported currencies and per-country bank field requirements.
Endpoints
List supported currencies#
GET/v1/currencies
Required scope payments:read
The currencies ekash holds wallets in and prices payments against.
Responses
200The supported currencies
curl https://stage.ekash.ai/dev/v1/currencies \
-H "Authorization: Bearer $EKASH_API_KEY"{
"data": [
"AED",
"EUR",
"GBP",
"SAR",
"USD"
]
}Bank fields required for a country#
GET/v1/countries/{code}/bank-requirements
Required scope payments:read
What a bank payout to this country and currency needs. Several account_types can be offered for one corridor (IBAN vs sort code vs SWIFT) — supply the fields of any ONE of them in recipient when you create the payment.
Use this instead of hard-coding a country matrix: a corridor ekash adds then works with no change on your side.
Path parameters
codestringrequiredISO 3166-1 alpha-2 country code, e.g. GB
Query parameters
currencystringrequiredCurrency the recipient is paid in, e.g. GBP
source_currencystringoptionalWallet the payment is funded from; defaults to USD
Responses
200Requirements for this corridor
application/json
Schema BankRequirementsResponse
dataBankRequirements5 child attributes
country_codestringcurrencystringsource_currencystringproviderstringThe payout provider ekash routes this corridor to
account_typesarray of BankAccountType3 child attributes
typestringtitlestringfieldsarray of BankRequirementField6 child attributes
keystringThe field name to send in recipient{}
namestringtypestringrequiredbooleanexamplestringallowed_valuesarray of BankRequirementAllowedValueFor a select field, the values accepted
2 child attributes
keystringnamestring
404ekash does not pay out to this country
application/json
Schema Error
errorErrorBody5 child attributes
typestringCoarse error family
codestringStable machine-readable code — branch on this, not on the message
messagestringHuman-readable explanation, safe to log
fieldsmap of stringPer-field errors, present for validation failures
request_idstringEcho of the X-Request-Id header — quote it in a support request
{
"error": {
"type": "not_found",
"code": "unsupported_country",
"message": "ekash does not pay out to this country.",
"request_id": "6f0c1e1a-2b7d-4c55-9f0e-3a1d2c4b5e6f"
}
}curl 'https://stage.ekash.ai/dev/v1/countries/GB/bank-requirements?currency=GBP' \
-H "Authorization: Bearer $EKASH_API_KEY"{
"data": {
"country_code": "GB",
"currency": "USD",
"source_currency": "USD",
"provider": "Wise",
"account_types": [
{
"type": "sort_code",
"title": "Local bank account",
"fields": [
{}
]
}
]
}
}