Get BPAY receipts
POST
https://api.mpay.com.au/bpay/v1/receipts
Body Parameters
- bodybpayReceiptsRequest_V1requiredDescription
- datestring<date>ExampleDescriptionDefault2026-07-23FormatdatePattern^[0-9]{4}-[0-9]{2}-[0-9]{2}$
- billerCodestringExampleDescriptionDefault123456Pattern^[0-9]+$
- referenceNumberstringExampleDescriptionDefault987654321Pattern^[0-9]+$
- uniqueReferenceNumberstringExampleDescriptionDefaultURN1234567890Pattern^[A-Za-z0-9]+$
Responses
200
- bPayReceiptsResponse_V1
- receiptsbPayReceiptItemClass[]Description
- billerNamestringExampleDescriptionDefaultExample Biller Pty LtdPattern^.+$
- billerCodestringExampleDescriptionDefault123456Pattern^[0-9]+$
- referenceNumberstringExampleDescriptionDefault987654321Pattern^[0-9]+$
- receiptNumberstringExampleDescriptionDefaultRN0000123456Pattern^[A-Za-z0-9]+$
- statusstringExampleDescriptionDefaultPaidPattern^[A-Za-z]+$
- transactionDateTimestring<date-time>ExampleDescriptionDefault2026-07-23T11:47:07+10:00Formatdate-timePattern^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}([+-][0-9]{2}:[0-9]{2}|Z)?$
- voidDateTimestring<date-time>ExampleDescriptionDefault2026-07-24T09:00:00+10:00Formatdate-timePattern^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}([+-][0-9]{2}:[0-9]{2}|Z)?$
- durationMsintegerExampleDescriptionDefault42Pattern^[0-9]+$
- statusstringExampleDescriptionDefaultOkPattern^[A-Za-z]+$
- statusDescriptionstringExampleDescriptionDefaultOperation completed successfullyPattern^.+$
400
- errorResponse_V1Description
- statusstringExampleDescriptionDefaultErrorPattern^[A-Za-z]+$
- statusDescriptionstringExampleDescriptionDefaultThe request could not be processed.Pattern^.+$
- durationMsintegerExampleDescriptionDefault42Pattern^[0-9]+$
401
- errorResponse_V1Description
- statusstringExampleDescriptionDefaultErrorPattern^[A-Za-z]+$
- statusDescriptionstringExampleDescriptionDefaultThe request could not be processed.Pattern^.+$
- durationMsintegerExampleDescriptionDefault42Pattern^[0-9]+$
500
- errorResponse_V1Description
- statusstringExampleDescriptionDefaultErrorPattern^[A-Za-z]+$
- statusDescriptionstringExampleDescriptionDefaultThe request could not be processed.Pattern^.+$
- durationMsintegerExampleDescriptionDefault42Pattern^[0-9]+$
curl
curl --request POST \
--url https://api.mpay.com.au/bpay/v1/receipts \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"date": "2026-07-23",
"billerCode": "123456",
"referenceNumber": "987654321",
"uniqueReferenceNumber": "URN1234567890"
}'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var raw = JSON.stringify({
"date": "2026-07-23",
"billerCode": "123456",
"referenceNumber": "987654321",
"uniqueReferenceNumber": "URN1234567890"
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://api.mpay.com.au/bpay/v1/receipts", 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/bpay/v1/receipts")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request.body = JSON.dump({
"date": "2026-07-23",
"billerCode": "123456",
"referenceNumber": "987654321",
"uniqueReferenceNumber": "URN1234567890"
})
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.mpay.com.au/bpay/v1/receipts"
payload = json.dumps({
"date": "2026-07-23",
"billerCode": "123456",
"referenceNumber": "987654321",
"uniqueReferenceNumber": "URN1234567890"
})
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
// Successful response. The matching BPAY receipts were returned.
{
"receipts": [
{
"billerName": "Example Biller Pty Ltd",
"billerCode": "123456",
"referenceNumber": "987654321",
"receiptNumber": "RN0000123456",
"status": "Paid",
"transactionDateTime": "2026-07-23T11:47:07+10:00",
"voidDateTime": "2026-07-24T09:00:00+10:00"
}
],
"durationMs": 42,
"status": "Ok",
"statusDescription": "Operation completed successfully"
}400
// Bad Request. The request was malformed or contained invalid parameters.
{
"status": "Error",
"statusDescription": "The request could not be processed.",
"durationMs": 42
}401
// Unauthorized. Authentication failed because the API key was missing or invalid.
{
"status": "Error",
"statusDescription": "The request could not be processed.",
"durationMs": 42
}500
// Internal Server Error. An unexpected error occurred while processing the request.
{
"status": "Error",
"statusDescription": "The request could not be processed.",
"durationMs": 42
}