Ping (test authentication)
GET
https://api.mpay.com.au/tools/v1/ping
Responses
200
- toolsPingResponse_V1Example
{ "version": "2.0.5.31 2026-09-22T14:59:56", "environment": "Production", "durationMs": 12, "status": "Ok", "statusDescription": "Operation completed successfully" }Description- versionstringrequiredExampleDescriptionDefault2.0.5.31 2026-09-22T14:59:56Pattern^\d+\.\d+\.\d+\.\d+ \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$
- environmentstringrequiredExampleDescriptionDefaultProductionPattern^[A-Za-z]{1,50}$
- durationMsinteger<int64>requiredExampleDescriptionDefault12Formatint64Minimum0
- 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/ping \
--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/ping", 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/ping")
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/ping"
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 credentials supplied are valid and the platform is available.
{
"version": "2.0.5.31 2026-09-22T14:59:56",
"environment": "Production",
"durationMs": 12,
"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."
}