Ping
GET
https://api.mpay.com.au/public/v1/ping
Responses
200
- publicPingResponse_V1
- versionstringExampleDescriptionDefault2.0.5.31
- environmentstringExampleDescriptionDefaultProduction
- durationMsintegerExampleDescriptionDefault12
- statusstringExampleDescriptionDefaultOk
- statusDescriptionstringExampleDescriptionDefaultOperation completed successfully
400
- errorResponse_V1Description
- statusstringExampleDescriptionDefaultInvalid
- statusDescriptionstringExampleDescriptionDefaultThe request failed validation.
- durationMsintegerExampleDescriptionDefault5
- errorserrorDetail_V1[]Description
- codestringExampleDescriptionDefaultInvalidRequest
- messagestringExampleDescriptionDefaultThe request could not be understood by the server.
- fieldstringDescriptionDefault
401
- errorResponse_V1Description
- statusstringExampleDescriptionDefaultInvalid
- statusDescriptionstringExampleDescriptionDefaultThe request failed validation.
- durationMsintegerExampleDescriptionDefault5
- errorserrorDetail_V1[]Description
- codestringExampleDescriptionDefaultInvalidRequest
- messagestringExampleDescriptionDefaultThe request could not be understood by the server.
- fieldstringDescriptionDefault
500
- errorResponse_V1Description
- statusstringExampleDescriptionDefaultInvalid
- statusDescriptionstringExampleDescriptionDefaultThe request failed validation.
- durationMsintegerExampleDescriptionDefault5
- errorserrorDetail_V1[]Description
- codestringExampleDescriptionDefaultInvalidRequest
- messagestringExampleDescriptionDefaultThe request could not be understood by the server.
- fieldstringDescriptionDefault
curl
curl --request GET \
--url https://api.mpay.com.au/public/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/public/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/public/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/public/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 service is up and running.
{
"version": "2.0.5.31",
"environment": "Production",
"durationMs": 12,
"status": "Ok",
"statusDescription": "Operation completed successfully"
}GENERATED
// Successful validation. The service is up and running.
{
"version": "2.0.5.31",
"environment": "Production",
"durationMs": 12,
"status": "Ok",
"statusDescription": "Operation completed successfully"
}success
// Service healthy
{
"version": "2.0.5.31",
"environment": "Production",
"durationMs": 12,
"status": "Ok",
"statusDescription": "Operation completed successfully"
}400
// Bad Request — the request was malformed or failed validation. Review the errors array, correct the request and try again.
{
"status": "Invalid",
"statusDescription": "The request failed validation.",
"durationMs": 5,
"errors": [
{
"code": "InvalidRequest",
"message": "The request could not be understood by the server.",
"field": ""
}
]
}GENERATED
// Bad Request — the request was malformed or failed validation. Review the errors array, correct the request and try again.
{
"status": "Invalid",
"statusDescription": "The request failed validation.",
"durationMs": 5,
"errors": [
{
"code": "InvalidRequest",
"message": "The request could not be understood by the server.",
"field": ""
}
]
}badRequest
// Validation failure
{
"status": "Invalid",
"statusDescription": "The request failed validation.",
"durationMs": 5,
"errors": [
{
"code": "InvalidRequest",
"message": "The request could not be understood by the server.",
"field": null
}
]
}401
// Unauthorized — authentication credentials are missing, malformed or not valid for this environment.
{
"status": "Invalid",
"statusDescription": "The request failed validation.",
"durationMs": 5,
"errors": [
{
"code": "InvalidRequest",
"message": "The request could not be understood by the server.",
"field": ""
}
]
}GENERATED
// Unauthorized — authentication credentials are missing, malformed or not valid for this environment.
{
"status": "Invalid",
"statusDescription": "The request failed validation.",
"durationMs": 5,
"errors": [
{
"code": "InvalidRequest",
"message": "The request could not be understood by the server.",
"field": ""
}
]
}unauthorized
// Missing or invalid credentials
{
"status": "Unauthorized",
"statusDescription": "Authentication failed for the supplied credentials.",
"durationMs": 3,
"errors": [
{
"code": "Unauthorized",
"message": "Valid API credentials were not supplied with the request."
}
]
}500
// Internal Server Error — an unexpected error occurred while processing the request. Retry the request; if the problem persists, contact Monoova support.
{
"status": "Invalid",
"statusDescription": "The request failed validation.",
"durationMs": 5,
"errors": [
{
"code": "InvalidRequest",
"message": "The request could not be understood by the server.",
"field": ""
}
]
}GENERATED
// Internal Server Error — an unexpected error occurred while processing the request. Retry the request; if the problem persists, contact Monoova support.
{
"status": "Invalid",
"statusDescription": "The request failed validation.",
"durationMs": 5,
"errors": [
{
"code": "InvalidRequest",
"message": "The request could not be understood by the server.",
"field": ""
}
]
}serverError
// Unexpected server error
{
"status": "Error",
"statusDescription": "An unexpected error occurred while processing the request.",
"durationMs": 102,
"errors": [
{
"code": "InternalServerError",
"message": "The request could not be completed. Please try again later."
}
]
}