Validate
GET /v1/validate/. Check whether an Australian ABN or ACN check digit is valid, instantly, with no register lookup.
GET https://api.auo.com.au/v1/validate/{identifier}
Validate the check digit of an ABN or ACN. This is a pure, offline check: it does not
look the identifier up in any register, so it is fast and cheap. Use it to catch typos
before you resolve.
Request
400.Response
abn or acn, inferred from the length.200 with valid: false means the identifier is
well-formed but its check digit does not compute. It is not an error.Example
Authorizations
Bearer token: auo_sk_test_... (sandbox) or auo_sk_live_... (live).
Path Parameters
An 11-digit ABN or 9-digit ACN (spaces are stripped before validation).
Response
Validation result. valid:false means an invalid check digit, not an error.
Whether the identifier was treated as an ABN (11 digits) or ACN (9 digits).
abn, acn The raw identifier string as supplied in the request path.
The identifier with whitespace stripped.
True if the check digit is correct; false otherwise.
Present only when valid is false. "format" means the digit count or character set is wrong; "checksum" means the check digit does not match.
format, checksum