Skip to content
FinCode

UK sort code lookup

Resolve a 6-digit UK sort code to its institution.

This documentation covers API V1.

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

NameTypeInDescription
codestringpathThe 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

CodeDescription
INVALID_SORT_CODEThe code is not 6 digits.
NOT_FOUNDThe identifier does not exist in the dataset.
UNAUTHORIZEDMissing or invalid API key.
RATE_LIMITEDRate limit exceeded — retry after the indicated delay.