UK sort code lookup
Resolve a 6-digit UK sort code to its institution.
This documentation covers API V1.
On this page
Endpoint
Returns the UK institution behind a 6-digit sort code. Dashes in the request value are accepted and normalized.
http
GET https://api.fincode.example.com/v1/sort-code/{code}Parameters
| Name | Type | In | Description |
|---|---|---|---|
| code | string | path | The sort code, e.g. "200000" or "20-00-00". |
Example request
bash
curl -s "https://api.fincode.example.com/v1/sort-code/20-00-00" \
-H "Authorization: Bearer sk_test_xxx"Example response
json
{
"data": {
"sort_code": "200000",
"formatted": "20-00-00",
"bank": {
"id": "inst_barclays",
"name_en": "Barclays Bank UK PLC",
"short_name": "Barclays",
"country": "GB",
"website": "https://www.barclays.co.uk"
},
"city": "London",
"status": "ACTIVE",
"source": {
"name": "UKPayments sort code directory",
"source_type": "PUBLIC",
"retrieved_at": "2026-09-01"
}
},
"meta": { "request_id": "req_3a9f12bb" }
}Errors
| Code | Description |
|---|---|
| INVALID_SORT_CODE | The code is not 6 digits. |
| NOT_FOUND | The identifier does not exist in the dataset. |
| UNAUTHORIZED | Missing or invalid API key. |
| RATE_LIMITED | Rate limit exceeded — retry after the indicated delay. |