---
title: "Resolve bank code to institution name"
method: GET
path: "/api/v1/payment-method/institution/codes"
tags: ["Payment Methods"]
---

# Resolve bank code to institution name

`GET /api/v1/payment-method/institution/codes`

## Request

- Base URL: `https://sandbox.api.afriex.com`
- URL: `https://sandbox.api.afriex.com/api/v1/payment-method/institution/codes`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/afriex/apis/afriex-business-api/docs/api/v1/payment-method/institution/codes/get.ts> (a function with typed inputs; its response is checked against the schema)

Resolves a bank code (SWIFT code or US routing number) to the corresponding bank or institution name.

## Query parameters

- `searchTerm` string, required
- `country` string, required
- `codeType` 'swift_code' | 'routing_number', required

## Response `200`

Bank code resolved successfully.

- object
  - `data` BankCodeResolverResponse, nullable
    - `bankName` string: The resolved bank or institution name.

## Other responses

- `400`: Invalid request parameters.
- `401`: Unauthorized.
- `500`: Server error.
- `503`: Temporarily unavailable: an upstream service failed or timed out, or the API is momentarily offline. Retry with backoff and honour the Retry-After header when present.

---

[API](https://skmtc.dev/afriex/apis/afriex-business-api.md) - [All operations](https://skmtc.dev/afriex/apis/afriex-business-api/llms.txt) - [OpenAPI document](https://skmtc.dev/afriex/apis/afriex-business-api/revisions/d94198b6c256?raw)
