Get BPAY biller code details
GET
https://api.mpay.com.au/bpay/v1/biller/{billerCode}
Path Parameters
- billerCodestringrequiredExampleDescriptionDefault123456Pattern^[0-9]+$
Responses
200
- bPayBillerResponse_V1
- billerbPayBillerDescription
- billerCodestringExampleDescriptionDefault123456Pattern^[0-9]+$
- billerLongNamestringExampleDescriptionDefaultExample Biller Proprietary LimitedPattern^.+$
- billerShortNamestringExampleDescriptionDefaultExample BillerPattern^.+$
- acceptedPaymentMethodsstringExampleDescriptionDefault101,201Pattern^[A-Za-z0-9,]+$
- activationDatestring<date-time>ExampleDescriptionDefault2020-01-01T00: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)?$
- deactivationDatestring<date-time>ExampleDescriptionDefault2030-12-31T00: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)?$
- minPaymentAmountnumberExampleDescriptionDefault1Pattern^[0-9]+(\.[0-9]{1,2})?$
- maxPaymentAmountnumberExampleDescriptionDefault9999999999.99Pattern^[0-9]+(\.[0-9]{1,2})?$
- crnValidationRuleNamestringExampleDescriptionDefaultMOD10V05Pattern^[A-Za-z0-9]+$
- checkDigitRuleNamestringExampleDescriptionDefaultMOD10V05Pattern^[A-Za-z0-9]+$
- lengthMaskstringExampleDescriptionDefault4-20Pattern^[0-9\-]+$
- fixedDigitsstringExampleDescriptionDefault12Pattern^[0-9]*$
- isVariableCrnbooleanExampleDescriptionDefaulttruePattern^(true|false)$
- 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 GET \
--url https://api.mpay.com.au/bpay/v1/biller/{billerCode} \
--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/bpay/v1/biller/{billerCode}", 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/biller/{billerCode}")
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/bpay/v1/biller/{billerCode}"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// Successful response. The extended BPAY biller details were returned.
{
"biller": {
"billerCode": "123456",
"billerLongName": "Example Biller Proprietary Limited",
"billerShortName": "Example Biller",
"acceptedPaymentMethods": "101,201",
"activationDate": "2020-01-01T00:00:00+10:00",
"deactivationDate": "2030-12-31T00:00:00+10:00",
"minPaymentAmount": 1,
"maxPaymentAmount": 9999999999.99,
"crnValidationRuleName": "MOD10V05",
"checkDigitRuleName": "MOD10V05",
"lengthMask": "4-20",
"fixedDigits": "12",
"isVariableCrn": true
},
"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
}