AutoPostcode
Bank Validation API

UK Bank Account Validation API

Verify sort codes and account numbers before you pay. AutoPostcode runs instant modulus checks and adds Confirmation of Payee (CoP) name matching to stop failed payments, misdirected funds and authorised push payment fraud.

No card required · Royal Mail PAF-verified data

Trusted UK address intelligence

Modulus
Instant validity check
CoP
Name matching
APP
Fraud prevention
PAF-verified address lookup
Fast REST API & no-code plugins
GDPR-friendly, UK-hosted

A single wrong digit in a sort code or account number means a failed payment, a support ticket and a frustrated customer — or worse, money sent to the wrong person. AutoPostcode's bank validation API verifies UK account details the moment they're entered, so payments go through first time.

See it in action

Modulus checks confirm the sort code and account are structurally valid; Confirmation of Payee matches the name.

Valid account

Passes modulus · name matched

20-0
# 

Invalid details

Fails modulus → block the payment

40-4
# 

Two levels of verification

Modulus checking — 1 credit

Instantly confirms that a sort code and account number are a mathematically valid combination using the official UK modulus algorithm. It catches transposed and mistyped digits before any payment is attempted — no bank contact required.

Confirmation of Payee — 10 credits

Pass the account holder's name with cop=true and the API confirms whether it matches the name registered on the account. This is the UK standard for preventing authorised push payment (APP) fraud and misdirected payments, returning a clear match / close match / no match result.

What you get back

  • Valid / invalid verdict from modulus checking
  • Normalised sort code and account number
  • Confirmation of Payee match result (with cop=true)
  • Matched account name for close matches
  • Personal vs business account handling
  • Instant response for inline form validation

Example response

{
  "valid": true,
  "verdict": "valid",
  "sort_code": "070093",
  "account_number": "33333334",
  "confirmation_of_payee": null   // { match, account_name } when cop=true
}
1 credit
Modulus check
10 credits
With CoP
Personal / business
Account types

Where teams use it

  • Validating bank details at onboarding for direct debits and payouts
  • Preventing APP fraud with Confirmation of Payee before sending funds
  • Reducing failed payments and payment-return admin
  • Verifying supplier and payroll accounts before disbursement

One API key for every check

Bank validation shares a single API key and credit pool with postcode lookup, phone validation and email validation — verify identity, contact and payment details from one integration.

Frequently asked questions

What is modulus checking?

Modulus checking is the standard UK algorithm that verifies a sort code and account number combination is mathematically valid before a payment is attempted. It catches transposed digits and typos instantly for 1 credit, without contacting the bank.

What is Confirmation of Payee (CoP)?

Confirmation of Payee checks that the account name you were given actually matches the name registered on the account. Pass name and cop=true and the API returns whether it's a match, close match or no match — the industry standard for preventing authorised push payment (APP) fraud and misdirected payments.

How much does bank validation cost?

1 credit for a modulus check, or 10 credits when you enable Confirmation of Payee (cop=true), because CoP performs a live name-matching lookup. Credits come from the same shared pool as your other AutoPostcode APIs.

Does it support business and personal accounts?

Yes. Pass type=personal or type=business so Confirmation of Payee matches against the correct account category.

Ready to get started?

Add Royal Mail PAF-verified UK address lookup to your site in minutes — start free, no card required.