Validate an ABN
GET
https://api.mpay.com.au/tools/v1/abnValidate/{abnNumber}
Path Parameters
- abnNumberstringrequiredExampleDescriptionDefault12 345 678 901Min Length11Max Length14Pattern^\d{2} ?\d{3} ?\d{3} ?\d{3}$
Responses
200
- toolsAbnValidateResponse_V1Example
{ "abn": "12 345 678 901", "lastUpdatedDate": "02/18/2026 00:00:00", "isAbnValid": true, "isCharity": false, "entityTypeCode": "PRV", "entityTypeDescription": "Australian Private Company", "organisationName": "EXAMPLE COMPANY PTY LTD", "legalName": "Smith, John", "organisationNameFromDate": "02/18/2026 00:00:00", "businessPhysicalAddressStateCode": "NSW", "businessPhysicalAddressPostCode": "2000", "businessPhysicalAddressEffectiveFromDate": "02/18/2026 00:00:00", "durationMs": 128, "status": "Ok", "statusDescription": "Operation completed successfully" }Description- abnstringrequiredExampleDescriptionDefault12 345 678 901Pattern^\d{2} \d{3} \d{3} \d{3}$
- lastUpdatedDatestringExampleDescriptionDefault02/18/2026 00:00:00Pattern^$|^\d{2}/\d{2}/\d{4} \d{2}:\d{2}:\d{2}$
- isAbnValidbooleanrequiredExampleDescriptionDefaulttrue
- isCharitybooleanrequiredDescriptionDefaultfalse
- entityTypeCodestringExampleDescriptionDefaultPRVPattern^$|^[A-Z]{2,4}$
- entityTypeDescriptionstringExampleDescriptionDefaultAustralian Private CompanyPattern^$|^[A-Za-z0-9 ,.\-&()/']{1,100}$
- organisationNamestringExampleDescriptionDefaultEXAMPLE COMPANY PTY LTDPattern^$|^[A-Za-z0-9 ,.\-&()/']{1,200}$
- legalNamestringExampleDescriptionDefaultSmith, JohnPattern^$|^[A-Za-z0-9 ,.\-']{1,200}$
- organisationNameFromDatestringExampleDescriptionDefault02/18/2026 00:00:00Pattern^$|^\d{2}/\d{2}/\d{4} \d{2}:\d{2}:\d{2}$
- businessPhysicalAddressStateCodestringExampleDescriptionDefaultNSWPattern^$|^(ACT|NSW|NT|QLD|SA|TAS|VIC|WA)$
- businessPhysicalAddressPostCodestringExampleDescriptionDefault2000Pattern^$|^\d{4}$
- businessPhysicalAddressEffectiveFromDatestringExampleDescriptionDefault02/18/2026 00:00:00Pattern^$|^\d{2}/\d{2}/\d{4} \d{2}:\d{2}:\d{2}$
- durationMsinteger<int64>requiredExampleDescriptionDefault128Formatint64Minimum0
- statusstringrequiredExampleDescriptionDefaultOkPattern^[A-Za-z]{1,50}$
- statusDescriptionstringrequiredExampleDescriptionDefaultOperation completed successfullyPattern^.{1,500}$
400
- badRequestResponse_V1Example
{ "durationMs": 8, "status": "Invalid", "statusDescription": "The supplied ABN must be eleven numeric digits." }Description- durationMsinteger<int64>requiredExampleDescriptionDefault8Formatint64Minimum0
- statusstringrequiredExampleDescriptionDefaultInvalidPattern^[A-Za-z]{1,50}$
- statusDescriptionstringrequiredExampleDescriptionDefaultThe supplied ABN must be eleven numeric digits.Pattern^.{1,500}$
401
- unauthorizedResponse_V1Example
{ "durationMs": 5, "status": "Unauthorized", "statusDescription": "Authentication failed. Supply a valid API key as the basic authentication username." }Description- durationMsinteger<int64>requiredExampleDescriptionDefault5Formatint64Minimum0
- statusstringrequiredExampleDescriptionDefaultUnauthorizedPattern^[A-Za-z]{1,50}$
- statusDescriptionstringrequiredExampleDescriptionDefaultAuthentication failed. Supply a valid API key as the basic authentication username.Pattern^.{1,500}$
500
- internalServerErrorResponse_V1Example
{ "durationMs": 2043, "status": "Exception", "statusDescription": "An unexpected error occurred while processing the request. Please contact support if the problem persists." }Description- durationMsinteger<int64>requiredExampleDescriptionDefault2043Formatint64Minimum0
- statusstringrequiredExampleDescriptionDefaultExceptionPattern^[A-Za-z]{1,50}$
- statusDescriptionstringrequiredExampleDescriptionDefaultAn unexpected error occurred while processing the request. Please contact support if the problem persists.Pattern^.{1,500}$
curl
curl --request GET \
--url https://api.mpay.com.au/tools/v1/abnValidate/{abnNumber} \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.mpay.com.au/tools/v1/abnValidate/{abnNumber}", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.mpay.com.au/tools/v1/abnValidate/{abnNumber}")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.mpay.com.au/tools/v1/abnValidate/{abnNumber}"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// Successful validation. The ABN was looked up against the Australian Business Registry; inspect isAbnValid to determine the outcome.
{
"abn": "12 345 678 901",
"lastUpdatedDate": "02/18/2026 00:00:00",
"isAbnValid": true,
"isCharity": false,
"entityTypeCode": "PRV",
"entityTypeDescription": "Australian Private Company",
"organisationName": "EXAMPLE COMPANY PTY LTD",
"legalName": "Smith, John",
"organisationNameFromDate": "02/18/2026 00:00:00",
"businessPhysicalAddressStateCode": "NSW",
"businessPhysicalAddressPostCode": "2000",
"businessPhysicalAddressEffectiveFromDate": "02/18/2026 00:00:00",
"durationMs": 128,
"status": "Ok",
"statusDescription": "Operation completed successfully"
}400
// Bad request. The request was rejected because a supplied value failed validation — for example an ABN that is not eleven numeric digits, a BSB that is not in the format 999-999, or a missing email subject or body. Inspect statusDescription for the specific reason.
{
"durationMs": 8,
"status": "Invalid",
"statusDescription": "The supplied ABN must be eleven numeric digits."
}401
// Unauthorized. The API key was missing, malformed or not recognised. Confirm the key is passed as the basic authentication username and that no password is supplied.
{
"durationMs": 5,
"status": "Unauthorized",
"statusDescription": "Authentication failed. Supply a valid API key as the basic authentication username."
}500
// Internal server error. An unexpected error occurred while the platform was processing the request, or an upstream service (such as the Australian Business Registry) was unavailable. The request may be retried.
{
"durationMs": 2043,
"status": "Exception",
"statusDescription": "An unexpected error occurred while processing the request. Please contact support if the problem persists."
}