Get bank codes
GET /bank-codes/{country}
Returns the full bank directory for a country in one response. Returns 200 OK. Authenticate with a secret API key; a publishable key returns 401 error_auth_credentials_invalid.
Directory data is available for
NG, HK, CN, TZ, CA, GH, KE, UG, ZA and PH. Any other country returns 200 OK with an empty data array. For those corridors, obtain routing identifiers from the account holder.Path parameters
Two-letter country code, for example
NG, GH, KE. Case-insensitive: ng and NG return the same result. A value longer than 2 characters returns 422 error_validation_invalid_length. The endpoint doesn’t check the code against ISO 3166-1, so any value of 2 characters or fewer without directory data returns an empty data array.Request
Response
Returns200 OK with the list of banks for the requested country, sorted by bank_name in ascending order. The list isn’t paginated: the full directory comes back in one response, for example 539 entries for NG and 311 for HK. Cache it instead of requesting it per payment.
The list of banks for the requested country. Empty if the country has no directory data. Fields that don’t apply to a country are omitted from its entries, not returned as
null. See the table below.CN entries have only bank_name and swift_bic, so route CN payouts by SWIFT/BIC. HK entries carry a 3-digit bank_code and no branch code. A HK CHATS payout also needs a branch_code, which you obtain from the account holder. For PH, the 9-digit bank_code is the one PESONet and InstaPay payouts require.Errors
Requests can also return the shared
403 (error_auth_permission_denied) and 429 (error_auth_rate_limit_exceeded) errors. See Errors for the standard error object schema.
422

