curatedapi
Browse the docs

Guides

Finance

Excel functions

Late payments

E-invoices

Accounting

Number checks

Live lookups

VAT and GST

Billing and pricing

Money and currencies

Dates and time

Math

Unit conversion

Everyday

Health

Bulk number check API

Check up to 1,000 IBANs, BICs, VAT numbers or other identifiers of one kind in one call, with the same rules as the single checks.

POST https://api.curatedapi.com/v1/calc/check/bulk

Runs one of the number checks (IBAN, BIC, VAT number, US routing number, ISIN, LEI, CUSIP, ABN, GSTIN or PAN) on a list of up to 1,000 numbers and returns a result for each, in the order sent, plus how many passed. Each result is the same as the single check gives for that number. Use it to clean a supplier or customer list in one go. It is billed one unit per number, the same as checking them one by one.

Formula

each number goes through the same rules as the single check named by check
  • The number is checked by arithmetic alone. Nothing is looked up, so a valid result means the number is well formed, not that the account, company or security exists.
  • Billed one unit per number checked; a request that fails (a wrong input) costs nothing.
  • The numbers are not stored or logged.

Inputs

Send numbers as strings to keep every digit. options sets precision and rounding (see numbers and rounding).

InputTypeDescription
check required iban | bic | vat-number | us-routing-number | isin | lei | cusip | abn | india-gstin | india-pan Which check to run on every number. Options: iban: IBAN check; bic: BIC (SWIFT code) check; vat-number: VAT number check; us-routing-number: US bank routing number check; isin: ISIN check; lei: LEI check; cusip: CUSIP check; abn: Australian Business Number (ABN) check; india-gstin: GSTIN check (India); india-pan: PAN check (India)
numbers required list of string The numbers to check, up to 1,000 (a request may be up to 64 KiB). Spaces, dots, hyphens and slashes are ignored, and lower-case letters are read as upper case. 1 to 1000 items.
country AT | BE | BG | CY | CZ | DE | DK | EE | EL | ES | FI | FR | HR | HU | IE | IT | LT | LU | LV | MT | NL | PL | PT | RO | SE | SI | SK | XI | GB | CHE | NO | GR | CH For check vat-number only: the country of numbers that have no prefix. Options: AT: Austria; BE: Belgium; BG: Bulgaria; CY: Cyprus; CZ: Czechia; DE: Germany; DK: Denmark; EE: Estonia; EL: Greece; ES: Spain; FI: Finland; FR: France; HR: Croatia; HU: Hungary; IE: Ireland; IT: Italy; LT: Lithuania; LU: Luxembourg; LV: Latvia; MT: Malta; NL: Netherlands; PL: Poland; PT: Portugal; RO: Romania; SE: Sweden; SI: Slovenia; SK: Slovakia; XI: Northern Ireland; GB: United Kingdom; CHE: Switzerland; NO: Norway; GR: Greece (same as EL); CH: Switzerland (same as CHE)

Result

Under result in the answer, next to exactness, precision, inputs, formula, references and warnings.

ResultTypeDescription
checkstringThe single check that was run, with its version.
countintegerHow many numbers were checked (and units billed).
valid_countintegerHow many passed every check.
invalid_countintegerHow many failed a check.
resultslist of objectOne result per number, in the order sent.

Examples

Two IBANs, one with a typing mistake

Requestcurl
curl https://api.curatedapi.com/v1/calc/check/bulk \
  -H "Authorization: Bearer $CURATEDAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "check": "iban",
    "numbers": ["GB82 WEST 1234 5698 7654 32", "GB82 WEST 1234 5698 7654 33"]
  }'
200 OKResponse
{
  "calculator": "check/bulk@1",
  "result": {
    "check": "check/iban@1",
    "count": 2,
    "valid_count": 1,
    "invalid_count": 1,
    "results": [
      {
        "number": "GB82 WEST 1234 5698 7654 32",
        "valid": true,
        "normalized": "GB82WEST12345698765432",
        "country": "GB",
        "message": "A well-formed IBAN from United Kingdom."
      },
      {
        "number": "GB82 WEST 1234 5698 7654 33",
        "valid": false,
        "normalized": "GB82WEST12345698765433",
        "problem": "CHECK_DIGIT",
        "country": "GB",
        "message": "The check digits are 82, but this country code and account number give 55 (ISO 13616, MOD 97-10). One or more characters are wrong."
      }
    ]
  },
  "exactness": {},
  "precision": null,
  "inputs": {
    "check": "iban",
    "numbers": [
      "GB82 WEST 1234 5698 7654 32",
      "GB82 WEST 1234 5698 7654 33"
    ]
  },
  "formula": "each number goes through the same rules as the single check named by check",
  "references": [
    {
      "title": "curatedapi: the single checks and their sources",
      "url": "https://curatedapi.com/calculators/check"
    }
  ],
  "warnings": []
}

VAT numbers without a prefix

Requestcurl
curl https://api.curatedapi.com/v1/calc/check/bulk \
  -H "Authorization: Bearer $CURATEDAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "check": "vat-number",
    "numbers": ["136695976", "136695977"],
    "country": "DE"
  }'
200 OKResponse
{
  "calculator": "check/bulk@1",
  "result": {
    "check": "check/vat-number@1",
    "count": 2,
    "valid_count": 1,
    "invalid_count": 1,
    "results": [
      {
        "number": "136695976",
        "valid": true,
        "normalized": "DE136695976",
        "country": "DE",
        "message": "A well-formed VAT number from Germany."
      },
      {
        "number": "136695977",
        "valid": false,
        "normalized": "DE136695977",
        "problem": "CHECK_DIGIT",
        "country": "DE",
        "message": "The number does not pass its check digit rule (ISO 7064 MOD 11,10)."
      }
    ]
  },
  "exactness": {},
  "precision": null,
  "inputs": {
    "check": "vat-number",
    "numbers": [
      "136695976",
      "136695977"
    ],
    "country": "DE"
  },
  "formula": "each number goes through the same rules as the single check named by check",
  "references": [
    {
      "title": "curatedapi: the single checks and their sources",
      "url": "https://curatedapi.com/calculators/check"
    }
  ],
  "warnings": []
}

References

Results follow each calculator's documented rules and the sources listed. They are not financial, tax or legal advice. Check that the rules fit your case before you rely on a result. See the terms.

Errors share one format; see errors. Billing, retries and batches work the same for every endpoint.