Get Transaction Status By Unique Reference
GET
https://api.mpay.com.au/financial/v2/status/{uniqueReference}
Path Parameters
- uniqueReferencestringrequiredExampleDescriptionDefaulta6b29123-77cf-4d7e-bd5e-d3ed6a4845b0Pattern^[A-Za-z0-9_.-]{1,50}$
Responses
200
- gatewayTransactionStatusResponseByDateRange_V2Example
{ "transactionStatus": "Complete", "fundsClearedDate": "2026-11-11", "uniqueReference": "a6b29123-77cf-4d7e-bd5e-d3ed6a4845b0", "durationMs": 87, "status": "Ok", "statusDescription": "Debit Transaction was Successful on the 2026-11-11" }Description- transactionStatusstringExampleDescriptionDefaultCompletePattern^[A-Za-z ]{1,50}$
- dishonouredDatestringExampleDescriptionDefault2026-11-12Pattern^[0-9]{4}-[0-9]{2}-[0-9]{2}([T ][0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]{1,7})?)?$
- fundsClearedDatestringExampleDescriptionDefault2026-11-11Pattern^[0-9]{4}-[0-9]{2}-[0-9]{2}([T ][0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]{1,7})?)?$
- expectedClearanceDateForFundsstringExampleDescriptionDefault2026-11-13Pattern^[0-9]{4}-[0-9]{2}-[0-9]{2}([T ][0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]{1,7})?)?$
- completedDatestringExampleDescriptionDefault2026-11-11Pattern^[0-9]{4}-[0-9]{2}-[0-9]{2}([T ][0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]{1,7})?)?$
- creditCardPaymentStatuscreditCardPaymentStatusDescription
- originalTransactionAmountnumberExampleDescriptionDefault125.5Pattern^[0-9]{1,13}(\.[0-9]{1,2})?$
- availableAmountToRefundnumberExampleDescriptionDefault100Pattern^[0-9]{1,13}(\.[0-9]{1,2})?$
- isVoidablebooleanDescriptionDefaultfalsePattern^(true|false)$
- isRefundablebooleanExampleDescriptionDefaulttruePattern^(true|false)$
- bulkDirectDebitsbulkDirectDebitStatusClass[]Description
- expectedClearanceDateForFundsstringExampleDescriptionDefault2026-11-13Pattern^[0-9]{4}-[0-9]{2}-[0-9]{2}([T ][0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]{1,7})?)?$
- indexintegerDescriptionDefault0Pattern^[0-9]{1,4}$
- bsbstringExampleDescriptionDefault032-000Pattern^[0-9]{3}-[0-9]{3}$
- accountNumberstringExampleDescriptionDefault12345678Pattern^[0-9]{5,10}$
- amountnumberExampleDescriptionDefault125.5Pattern^[0-9]{1,13}(\.[0-9]{1,2})?$
- lodgementReferencestringExampleDescriptionDefaultINV000123Pattern^[ -~]{1,18}$
- dishonouredDatestringExampleDescriptionDefault2026-11-12Pattern^[0-9]{4}-[0-9]{2}-[0-9]{2}([T ][0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]{1,7})?)?$
- statusstringExampleDescriptionDefaultCompletePattern^[A-Za-z ]{1,50}$
- uniqueReferencestringExampleDescriptionDefaulta6b29123-77cf-4d7e-bd5e-d3ed6a4845b0Pattern^[A-Za-z0-9_.-]{1,50}$
- durationMsintegerExampleDescriptionDefault45Pattern^[0-9]{1,7}$
- statusstringExampleDescriptionDefaultOkPattern^[A-Za-z0-9]{1,50}$
- statusDescriptionstringExampleDescriptionDefaultDebit Transaction was Successful on the 2026-11-11Pattern^.{1,500}$
400
- badRequestResponse_V2Example
{ "durationMs": 12, "status": "UniqueIdNotFound", "statusDescription": "The Unique Reference \"'a6b29123-77cf-4d7e-bd5e-d3ed6a4845b0'\" was not found!" }Description- durationMsintegerExampleDescriptionDefault12Pattern^[0-9]{1,7}$
- statusstringExampleDescriptionDefaultUniqueReferenceExistsPattern^[A-Za-z0-9]{1,100}$
- statusDescriptionstringExampleDescriptionDefaultThe uniqueReference has been used before although no Transaction ID could be found. Either the original transaction failed or it could be running now.Pattern^.{1,500}$
401
- unauthorizedResponse_V2Example
{ "durationMs": 4, "status": "Unauthorized", "statusDescription": "Authentication failed. Supply a valid API key as the basic authentication username." }Description- durationMsintegerExampleDescriptionDefault4Pattern^[0-9]{1,7}$
- statusstringExampleDescriptionDefaultUnauthorizedPattern^[A-Za-z0-9]{1,50}$
- statusDescriptionstringExampleDescriptionDefaultAuthentication failed. Supply a valid API key as the basic authentication username.Pattern^.{1,500}$
500
- internalServerErrorResponse_V2Example
{ "durationMs": 1503, "status": "Error", "statusDescription": "An unexpected error occurred while processing the request." }Description- durationMsintegerExampleDescriptionDefault1503Pattern^[0-9]{1,7}$
- statusstringExampleDescriptionDefaultErrorPattern^[A-Za-z0-9]{1,50}$
- statusDescriptionstringExampleDescriptionDefaultAn unexpected error occurred while processing the request.Pattern^.{1,500}$
curl
curl --request GET \
--url https://api.mpay.com.au/financial/v2/status/{uniqueReference} \
--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/financial/v2/status/{uniqueReference}", 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/financial/v2/status/{uniqueReference}")
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/financial/v2/status/{uniqueReference}"
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 status of the transaction was returned.
{
"transactionStatus": "Complete",
"dishonouredDate": "2026-11-12",
"fundsClearedDate": "2026-11-11",
"expectedClearanceDateForFunds": "2026-11-13",
"completedDate": "2026-11-11",
"creditCardPaymentStatus": {
"originalTransactionAmount": 125.5,
"availableAmountToRefund": 100,
"isVoidable": false,
"isRefundable": true
},
"bulkDirectDebits": [
{
"expectedClearanceDateForFunds": "2026-11-13",
"index": 0,
"bsb": "032-000",
"accountNumber": "12345678",
"amount": 125.5,
"lodgementReference": "INV000123",
"dishonouredDate": "2026-11-12",
"status": "Complete"
}
],
"uniqueReference": "a6b29123-77cf-4d7e-bd5e-d3ed6a4845b0",
"durationMs": 45,
"status": "Ok",
"statusDescription": "Debit Transaction was Successful on the 2026-11-11"
}400
// Bad request. status returns a code that identifies the reason and statusDescription explains it, for example UniqueIdNotFound when no transaction matches the uniqueReference supplied.
{
"durationMs": 12,
"status": "UniqueReferenceExists",
"statusDescription": "The uniqueReference has been used before although no Transaction ID could be found. Either the original transaction failed or it could be running now."
}401
// Unauthorized. The API key is missing or invalid. Pass your API key as the basic authentication username with no password.
{
"durationMs": 4,
"status": "Unauthorized",
"statusDescription": "Authentication failed. Supply a valid API key as the basic authentication username."
}500
// Internal server error. An unexpected error prevented the Platform from completing the request. The request can be retried.
{
"durationMs": 1503,
"status": "Error",
"statusDescription": "An unexpected error occurred while processing the request."
}