List Whitelist Source Accounts
GET
https://api.mpay.com.au/receivables/v1/whitelisting/list/{automatcherBankAccountNumber}
Path Parameters
- automatcherBankAccountNumberstringrequiredExampleDescriptionDefault300000123Pattern^[0-9]{3,9}$
Query Parameters
- bsbstringExampleDescriptionDefault123-456Pattern^[0-9]{3}-?[0-9]{3}$
Responses
200
- cruWhiteListSourceAccountResponse_V1Example
{ "automatcherBankAccountNumber": "300000123", "automatcherBsb": "123-456", "sourceAccount": [ { "id": 10525, "bsbNumber": "123-456", "accountNumber": "123456789", "accountName": "Sample Source Account", "accountStatus": "Enabled" } ], "durationMs": 20, "status": "Ok", "statusDescription": "Operation completed successfully" }- automatcherBankAccountNumberstringExampleDescriptionDefault300000123Pattern^[0-9]{3,9}$
- automatcherBsbstringExampleDescriptionDefault123-456Pattern^[0-9]{3}-?[0-9]{3}$
- sourceAccountobject[]Description
- idinteger<int64>ExampleDescriptionDefault10525Formatint64Pattern^[0-9]{1,10}$
- bsbNumberstringExampleDescriptionDefault123-456Pattern^[0-9]{3}-[0-9]{3}$
- accountNumberstringExampleDescriptionDefault123456789Pattern^[0-9]{3,9}$
- accountNamestringExampleDescriptionDefaultSample Source AccountPattern^[A-Za-z0-9 '&./-]{1,140}$
- accountStatusstringExampleDescriptionDefaultEnabledPattern^(Enabled|Disabled)$
- durationMsinteger<int32>ExampleDescriptionDefault20Formatint32Pattern^[0-9]{1,10}$
- statusstringExampleDescriptionDefaultOkPattern^[A-Za-z]{2,30}$
- statusDescriptionstringExampleDescriptionDefaultOperation completed successfullyPattern^.{1,500}$
400
- cruWhiteListSourceAccountErrorResponse_V1Example
{ "durationMs": 15, "status": "Error", "statusDescription": "The request failed validation. See the errors collection for details.", "errors": [ { "code": "InvalidAccountNumber", "field": "sourceAccount.accountNumber", "message": "The account number must be between 3 and 9 digits." } ] }Description- durationMsinteger<int32>ExampleDescriptionDefault15Formatint32Pattern^[0-9]{1,10}$
- statusstringExampleDescriptionDefaultErrorPattern^[A-Za-z]{2,30}$
- statusDescriptionstringExampleDescriptionDefaultThe request failed validation. See the errors collection for details.Pattern^.{1,500}$
- errorsobject[]Description
- codestringExampleDescriptionDefaultInvalidAccountNumberPattern^[A-Za-z0-9_.-]{1,50}$
- fieldstringExampleDescriptionDefaultsourceAccount.accountNumberPattern^[A-Za-z0-9_.\[\]]{0,100}$
- messagestringExampleDescriptionDefaultThe account number must be between 3 and 9 digits.Pattern^.{1,500}$
401
- cruWhiteListSourceAccountErrorResponse_V1Example
{ "durationMs": 5, "status": "Error", "statusDescription": "Authentication failed.", "errors": [ { "code": "Unauthorized", "field": "Authorization", "message": "The API key supplied as the basic authentication username is missing or invalid." } ] }Description- durationMsinteger<int32>ExampleDescriptionDefault15Formatint32Pattern^[0-9]{1,10}$
- statusstringExampleDescriptionDefaultErrorPattern^[A-Za-z]{2,30}$
- statusDescriptionstringExampleDescriptionDefaultThe request failed validation. See the errors collection for details.Pattern^.{1,500}$
- errorsobject[]Description
- codestringExampleDescriptionDefaultInvalidAccountNumberPattern^[A-Za-z0-9_.-]{1,50}$
- fieldstringExampleDescriptionDefaultsourceAccount.accountNumberPattern^[A-Za-z0-9_.\[\]]{0,100}$
- messagestringExampleDescriptionDefaultThe account number must be between 3 and 9 digits.Pattern^.{1,500}$
500
- cruWhiteListSourceAccountErrorResponse_V1Example
{ "durationMs": 120, "status": "Error", "statusDescription": "An unexpected error occurred while processing the request.", "errors": [ { "code": "InternalServerError", "field": "", "message": "The request could not be completed. Please retry or contact Monoova support." } ] }Description- durationMsinteger<int32>ExampleDescriptionDefault15Formatint32Pattern^[0-9]{1,10}$
- statusstringExampleDescriptionDefaultErrorPattern^[A-Za-z]{2,30}$
- statusDescriptionstringExampleDescriptionDefaultThe request failed validation. See the errors collection for details.Pattern^.{1,500}$
- errorsobject[]Description
- codestringExampleDescriptionDefaultInvalidAccountNumberPattern^[A-Za-z0-9_.-]{1,50}$
- fieldstringExampleDescriptionDefaultsourceAccount.accountNumberPattern^[A-Za-z0-9_.\[\]]{0,100}$
- messagestringExampleDescriptionDefaultThe account number must be between 3 and 9 digits.Pattern^.{1,500}$
curl
curl --request GET \
--url 'https://api.mpay.com.au/receivables/v1/whitelisting/list/{automatcherBankAccountNumber}?bsb=123-456' \
--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/receivables/v1/whitelisting/list/{automatcherBankAccountNumber}?bsb=123-456", 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/receivables/v1/whitelisting/list/{automatcherBankAccountNumber}?bsb=123-456")
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/receivables/v1/whitelisting/list/{automatcherBankAccountNumber}?bsb=123-456"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// 200 Success. The request passed validation and the whitelist entry was created, updated or returned. Check the status and statusDescription fields for the outcome of the operation.
{
"automatcherBankAccountNumber": "300000123",
"automatcherBsb": "123-456",
"sourceAccount": [
{
"id": 10525,
"bsbNumber": "123-456",
"accountNumber": "123456789",
"accountName": "Sample Source Account",
"accountStatus": "Enabled"
}
],
"durationMs": 20,
"status": "Ok",
"statusDescription": "Operation completed successfully"
}400
// 400 Bad Request. The request could not be processed because one or more fields failed validation, for example a malformed BSB, an account number outside the permitted length, or a request that supplies neither a BSB and account number nor an account name.
{
"durationMs": 15,
"status": "Error",
"statusDescription": "The request failed validation. See the errors collection for details.",
"errors": [
{
"code": "InvalidAccountNumber",
"field": "sourceAccount.accountNumber",
"message": "The account number must be between 3 and 9 digits."
}
]
}401
// 401 Unauthorized. Authentication failed. The API key was missing, malformed, expired, or is not permitted to access the whitelisting endpoints for the requested mAccount.
{
"durationMs": 15,
"status": "Error",
"statusDescription": "The request failed validation. See the errors collection for details.",
"errors": [
{
"code": "InvalidAccountNumber",
"field": "sourceAccount.accountNumber",
"message": "The account number must be between 3 and 9 digits."
}
]
}500
// 500 Internal Server Error. An unexpected error occurred while processing the request. The request was not completed and can be retried. Quote the statusDescription when contacting Monoova support.
{
"durationMs": 15,
"status": "Error",
"statusDescription": "The request failed validation. See the errors collection for details.",
"errors": [
{
"code": "InvalidAccountNumber",
"field": "sourceAccount.accountNumber",
"message": "The account number must be between 3 and 9 digits."
}
]
}