# Bank Codes — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Find SWIFT/BIC codes for international banks and Indian IFSC/MICR codes by searching across countries, banks, and branches. Quickly locate the exact bank codes you need for wire transfers and financial transactions worldwide.

**Category:** Finance & Markets | **Website:** [bank-codes.com/](https://bank-codes.com/) | **Docs:** [parse.bot/marketplace/468132f8-0bfc-4aa3-b59c-929eddfb7db1/bank-codes-com-api](https://parse.bot/marketplace/468132f8-0bfc-4aa3-b59c-929eddfb7db1/bank-codes-com-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/bank-codes/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## Endpoints

### Get bank branches

Get all branches for a specific bank in a country. Returns SWIFT codes, branch names, cities, and countries for each branch. For multi-branch banks, the bank_slug from get_banks_by_country already includes the country prefix (e.g. 'united-states-usa/branches-of-ally-financial-inc').

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `bank_slug` | string | Yes | Bank slug from get_banks_by_country. For multi-branch banks includes path prefix (e.g. 'united-states-usa/branches-of-ally-financial-inc') |
| `country_slug` | string | Yes | Country slug (e.g. 'united-states-usa'). Used to construct URL when bank_slug doesn't include country prefix. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/bank-codes/get-bank-branches \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"bank_slug":"<string>","country_slug":"<string>"}'
```

### Get bank ifsc by state

Get branches of an Indian bank, optionally filtered by state. Without state_slug, returns the list of states where the bank has branches. With state_slug, returns branches in that state with IFSC codes.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `bank_slug` | string | Yes | Bank slug from get_ifsc_banks_list (e.g. 'state-bank-of-india', 'hdfc-bank-ltd') |
| `state_slug` | string | No | State slug to filter branches (e.g. 'goa', 'maharashtra'). Omitting returns list of states where the bank operates. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/bank-codes/get-bank-ifsc-by-state \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"bank_slug":"<string>","state_slug":"<string>"}'
```

### Get banks by country

Get banks and institutions with SWIFT codes for a specific country. Returns bank names, slugs, branch counts, and whether the bank has multiple branches.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `country_slug` | string | Yes | Country slug from list_countries (e.g. 'india', 'united-states-usa', 'germany') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/bank-codes/get-banks-by-country \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"country_slug":"<string>"}'
```

### Get ifsc banks list

List all Indian banks that have IFSC codes available. Returns bank names and slugs for use with get_bank_ifsc_by_state.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/bank-codes/get-ifsc-banks-list \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get ifsc code details

Get full details for a specific IFSC code including bank name, branch, address, city, district, state, and MICR code.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | URL slug from search_ifsc_codes results (url_slug field, e.g. 'hdfc-bank-ltd-ifsc-code-HDFC0001621') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/bank-codes/get-ifsc-code-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### Get swift code details

Get full details for a specific SWIFT/BIC code including institution name, address, city, country, and BIC code analysis breakdown (institution code, country code, location code, branch code).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | URL slug from search_swift_codes results (url_slug field, e.g. 'jpmorgan-chase-bank-n-a-swift-code-CHASUS33XXX-bic-code') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/bank-codes/get-swift-code-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### List countries

List all countries that have SWIFT/BIC codes available. Returns country names and their URL slugs for use with get_banks_by_country.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/bank-codes/list-countries \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Search ifsc codes

Search for Indian IFSC codes by bank name. Returns matching bank branches with their IFSC codes, states, districts, and cities.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search query - bank name (e.g. 'HDFC', 'state bank') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/bank-codes/search-ifsc-codes \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```

### Search swift codes

Search for SWIFT/BIC codes by bank or institution name. Returns matching institutions with their SWIFT codes, branch names, cities, and countries. Large banks (e.g. HSBC, JPMorgan) may return hundreds of results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search query - bank or institution name (e.g. 'barclays', 'HSBC') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/bank-codes/search-swift-codes \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.