Skip to main content

Financial Institutions

GET https://api-sandbox.letpay.io/financialInstitution

This endpoint returns the catalog of financial institutions (banks) available for a given country, along with the code that identifies each one. That code is exactly the value you must send in the bank_code field of bank transfer payments and refunds.

Use it as the source of truth for bank codes: query it for the country you are going to transact in, present the returned institutions to the payer or beneficiary, and send back the code they selected.

Bank codes are specific to each country

The country query parameter is required and defines which catalog is returned. Each country has its own numbering scheme, so the same code means a different institution depending on the country. For example, 001 is Banco de Chile in Chile (country=CL), but Banco Central de Reserva in Peru (country=PE).

Always call this endpoint with the country of the transaction and send only a code returned by that call. Reusing a code from another country's catalog, or a code that is no longer listed, causes the transaction to be rejected.

Authorization

HeaderValue
X-Auth-TokenMY_ACCESS_TOKEN

Request Description

Query Parameters

ParameterTypeRequiredDescription
countryStringYesCountry code in ISO 3166-1 alpha-2 (e.g. BR, MX, CO, CL, PE). Determines which institutions are returned.

Path Parameters

ParameterTypeRequiredDescription
codeStringNoAppended to the path (/financialInstitution/{code}) to return a single institution instead of the full list. Useful to validate a bank_code before sending a transaction. Must still be combined with country.

Response Description

  • financial_institutions (array/object): The institutions available for the requested country.
    • code (string): The institution identifier. This is the value to send as bank_code.
    • name (string): Short name of the institution.
    • full_name (string): Full registered name of the institution.
  • refresh_token (string): Token to be used on the next request.

Where the Bank Code Is Used

ProductCountryFieldReference
Payment (Bank Transfer)Colombiapayment.bank_transfer.bank_codeBank Transfer
RefundPayment countrybank_codeRefunds
Do not hardcode bank codes

Institutions are added, merged, and removed over time. Query this endpoint to get the list that is currently valid for each country.

Example Request

Example Request

200 - Success
    curl --location 'https://api-sandbox.letpay.io/financialInstitution?country=BR' \
--header 'X-Auth-Token: MY_ACCESS_TOKEN'

Example Response

Header
  Content-Type: application/json
Body
    {
"financial_institutions": [
{
"code": "246",
"name": "BCO ABC BRASIL S.A.",
"full_name": "Banco ABC Brasil S.A."
}
],
"refresh_token": "MY_ACCESS_TOKEN"
}