Developers

Supported currencies and per-country bank field requirements.

List supported currencies#

GET/v1/currencies

Required scope payments:read

The currencies ekash holds wallets in and prices payments against.

Responses

200The supported currencies

application/json

Schema CurrencyListResponse

  • dataarray of string
Request
curl https://stage.ekash.ai/dev/v1/currencies \
  -H "Authorization: Bearer $EKASH_API_KEY"
Response · 200
{
  "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

  • codestringrequired

    ISO 3166-1 alpha-2 country code, e.g. GB

Query parameters

  • currencystringrequired

    Currency the recipient is paid in, e.g. GBP

  • source_currencystringoptional

    Wallet the payment is funded from; defaults to USD

Responses

200Requirements for this corridor

application/json

Schema BankRequirementsResponse

  • 5 child attributes
    • country_codestring
    • currencystring
    • source_currencystring
    • providerstring

      The payout provider ekash routes this corridor to

      Example Wise
    • account_typesarray of BankAccountType
      3 child attributes
      • typestring
        Example sort_code
      • titlestring
        Example Local bank account
      • fieldsarray of BankRequirementField
        6 child attributes
        • keystring

          The field name to send in recipient{}

          Example sort_code
        • namestring
        • typestring
          Example text
        • requiredboolean
        • examplestring
        • allowed_valuesarray of BankRequirementAllowedValue

          For a select field, the values accepted

          2 child attributes
          • keystring
          • namestring
404ekash does not pay out to this country

application/json

Schema Error

  • 5 child attributes
    • typestring

      Coarse error family

      One of authentication permission invalid_request validation not_found conflict rate_limited server
    • codestring

      Stable machine-readable code — branch on this, not on the message

      Example validation_failed
    • messagestring

      Human-readable explanation, safe to log

      Example Please correct the highlighted fields.
    • fieldsmap of string

      Per-field errors, present for validation failures

    • request_idstring

      Echo of the X-Request-Id header — quote it in a support request

Example · 404
{
  "error": {
    "type": "not_found",
    "code": "unsupported_country",
    "message": "ekash does not pay out to this country.",
    "request_id": "6f0c1e1a-2b7d-4c55-9f0e-3a1d2c4b5e6f"
  }
}
Request
curl 'https://stage.ekash.ai/dev/v1/countries/GB/bank-requirements?currency=GBP' \
  -H "Authorization: Bearer $EKASH_API_KEY"
Response · 200
{
  "data": {
    "country_code": "GB",
    "currency": "USD",
    "source_currency": "USD",
    "provider": "Wise",
    "account_types": [
      {
        "type": "sort_code",
        "title": "Local bank account",
        "fields": [
          {}
        ]
      }
    ]
  }
}