mAccount
Get mAccount details
code examples curl location globoff 'https //api mpay com au/maccount/v1/get/{accountnumber}' \\ \ header 'accept application/json' \\ \ header 'content type application/json'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/maccount/v1/get/{accountnumber}", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api mpay com au/maccount/v1/get/{accountnumber}") 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 import requests import json url = "https //api mpay com au/maccount/v1/get/{accountnumber}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // ok { "durationms" 20, "status" "ok", "statusdescription" "operation completed successfully", "details" { "accountnumber" 6279059700023123, "name" "monoova ltd", "abn" "77106249852", "contactname" "mpayretail", "contactnumber" 295555555, "email" "mpayments\@monoova com", "addressline1" "level 6", "addressline2" "97 pacific highway", "suburb" "north sydney", "state" "nsw", "postcode" "2060", "bsb" "012 366", "bankaccountnumber" "123456789", "bankaccounttitle" "test bank account", "allowduplicates" true, "feeaccount" "6279059718791234", "financials" { "accountnumber" 6279059778044302, "actualbalance" 1270 3, "clearedfundsonly" true, "creditlimit" 10000, "feeaccountactualbalance" 17 985, "feeaccountnumber" "6279059718793620", "hasseparatefeeaccount" true, "lowercreditlimit" 0, "minimumsettlementamount" 0 02, "settlementfrequency" "none", "uppercreditlimit" 10000, "availabletodebit" 10000, "availabletocredit" 100000, "nppbalance" 0, "npppayoutlimit" 100000, "isfeeaccount" false, "isparentaccount" true, "isparentclearedfunds" false, "clearedfundsaccountfinancials" { "availablebalance" 1250 3, "unclearedfunds" 20, "uniquereferenceswaitingtoclear" \[ "12312312" ] } }, "options" \[ { "key" "debittplusxdays", "value" "1" } ] } }// bad request // internal server error