BACS-approved · 2p at 1,000

UK sort code and account validation

Official modulus algorithms. Catch bad details before the payment fails.

Mod 10, Mod 11, Double Alternate · typically under 50ms · 50 free test checks

Overview

What is Modulus Checking?

Modulus checking is an industry-standard validation method used to verify that a UK sort code and account number combination is valid before processing a payment.

Our service uses the official BACS-approved modulus checking algorithms (Modulus 10 and Modulus 11) to mathematically verify that account details are correctly formatted and could represent a valid bank account.

Did you know?

Invalid payment details cost UK businesses over £800 million annually in failed transactions, administrative overhead, and customer service issues.

Key Benefits

  • Reduce Failed Payments

    Catch invalid account details before submission

  • Improve User Experience

    Provide instant feedback on data entry errors

  • Lower Operational Costs

    Reduce manual intervention and customer support

  • BACS Compliant

    Uses official modulus checking algorithms

Process

How it works

Simple integration, powerful validation

1

Details entered

Sort code and account number in the payment form.

2

API call

Your system sends a validation request.

3

Check

Modulus algorithms run, typically under 50ms.

4

Result

Valid or not, with bank details when the number checks.

Simple RESTful API

Integrate in minutes with our developer-friendly API

curl -X GET "https://wsp.esortcode.com/uk/v1/validateaccount?key=YOUR_API_KEY&sortcode=200000&accountNumber=12345678"
const apiKey = 'YOUR_API_KEY';
const sortCode = '200000';
const accountNumber = '12345678';

const url = `https://wsp.esortcode.com/uk/v1/validateaccount?key=${apiKey}&sortcode=${sortCode}&accountNumber=${accountNumber}`;

const response = await fetch(url);
const result = await response.json();
import requests

api_key = 'YOUR_API_KEY'
sort_code = '200000'
account_number = '12345678'

url = f'https://wsp.esortcode.com/uk/v1/validateaccount?key={api_key}&sortcode={sort_code}&accountNumber={account_number}'

response = requests.get(url)
result = response.json()
$apiKey = 'YOUR_API_KEY';
$sortCode = '200000';
$accountNumber = '12345678';

$url = "https://wsp.esortcode.com/uk/v1/validateaccount?key={$apiKey}&sortcode={$sortCode}&accountNumber={$accountNumber}";

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = json_decode(curl_exec($ch), true);
curl_close($ch);

Response

{
  "modulusCheck": {
    "sortcode": "200000",
    "accountNumber": "12345678",
    "valid": true
  },
  "branches": [
    {
      "bankName": "BARCLAYS BANK PLC",
      "branchTitle": "Head Office",
      "address1": "1 Churchill Place",
      "town": "London",
      "postcode": "E14 5HP",
      "bacsPayments": true,
      "directDebits": true,
      "directCredits": true
    }
  ]
}

Modulus credit pricing

The price slides from 2p at 1,000 credits to 1.2p at 100,000. Pay As You Go (High Volume) runs from 1.2p at 100,000 to 0.75p at 1,000,000. Above 1,000,000, please call. One credit is one modulus check. Credits last for up to 3 years from the date of purchase. A monthly subscription is available only with the Etellect Enterprise SLA.

Enterprise Features Included

Everything you need for production-grade validation

Bank-Grade Security

TLS 1.3 encryption, ISO 27001 certified

Real-time Updates

Daily database updates for accuracy

Usage Analytics

Detailed dashboards and reporting

24/7 Support

Expert technical support team

Webhook Support

Real-time notifications and callbacks

Batch Processing

Validate hundreds of records at once

Need a 100% uptime contract on modulus checking? Enterprise SLA is £99 a month.

Enterprise SLA →

Open an account.

Fifty free checks. No card. Same modulus API as the rest of the bureau.

Create a free account

ISO 27001 · typically under 50ms · 2p at 1,000