mAccount
Get mAccount Balance
code examples curl location globoff 'https //api mpay com au/maccount/v1/financials/{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/financials/{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/financials/{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/financials/{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", "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" ] } } }// bad request // internal server error