curatedapi

Australian Business Number (ABN) check

Check an 11-digit Australian Business Number with the Australian Business Register's modulus 89 rule.

The 11-digit ABN. Spaces, dots, hyphens and slashes are ignored, and lower-case letters are read as upper case. At most 64 characters.

Examples

Result: One digit wrong

Valid
Whether the ABN passes every check.
no
Normalized
The number as it was checked: separators removed, letters in upper case.
51824753557
Problem
What is wrong, when valid is false: CHARACTERS: a character that cannot appear in this kind of number; LENGTH: the wrong number of characters; COUNTRY: an unknown or unsupported country code; FORMAT: the right length but the wrong structure; CHECK_DIGIT: the check digit or check characters do not match the rest of the number.
CHECK_DIGIT
Message
The result in a sentence, naming the rule that failed.
The digits do not pass the Australian Business Register's modulus 89 check.
Formatted
The ABN grouped 2-3-3-3.
51 824 753 557

Calculator check/abn@1.

How it is calculated

((d₁ − 1)·10 + d₂·1 + d₃·3 + d₄·5 + … + d₁₁·19) mod 89 = 0

Checks an Australian Business Number the way the Australian Business Register describes: subtract 1 from the first digit, multiply the eleven digits by the weights 10, 1, 3, 5, 7, 9, 11, 13, 15, 17 and 19, and the total must divide by 89.

  • 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.

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.

Use it from your code

POST /v1/calc/check/abnVersion 1
curl https://api.curatedapi.com/v1/calc/check/abn \
  -H "Authorization: Bearer $CURATEDAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "number": "51 824 753 557"
  }'
The same call in Python
import os

import requests

payload = {
    "number": "51 824 753 557",
}
response = requests.post(
    "https://api.curatedapi.com/v1/calc/check/abn",
    headers={"Authorization": f"Bearer {os.environ['CURATEDAPI_KEY']}"},
    json=payload,
    timeout=10,
)
print(response.json()["result"])
The same call in JavaScript
const payload = {
    "number": "51 824 753 557",
};
const response = await fetch("https://api.curatedapi.com/v1/calc/check/abn", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.CURATEDAPI_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify(payload),
});
console.log((await response.json()).result);

MCP tool calc_check_abn at https://mcp.curatedapi.com. Inputs, outputs and errors in the API reference.

Put it on your website

<div data-curatedapi-widget="check/abn" data-key="capi_public_…"></div>
<script src="https://widgets.curatedapi.com/v1/widget.js" async></script>

Use a public key registered for your site. Calculations are billed like API calls. How widgets work.

Related calculators

Add this calculator to your website

Paste two lines into your page and your visitors get this calculator. Each use counts as one call on your plan, the same as the API.

Free for up to 1,000 uses a month. 50,000 uses a month cost $9.00 on the Starter plan.