Get a wallet's BPAY History
code examples curl request get \\ \ url 'https //api mpay com au/bpay/v1/history/{accountnumber}?take=10' \\ \ header 'accept 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/bpay/v1/history/{accountnumber}?take=10", 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/bpay/v1/history/{accountnumber}?take=10") 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/bpay/v1/history/{accountnumber}?take=10" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // successful response the wallet's bpay history was returned { "history" \[ { "billercode" "123456", "customerreferencenumber" "987654321", "billername" "example biller pty ltd", "count" 5 } ], "durationms" 42, "status" "ok", "statusdescription" "operation completed successfully" }// bad request the request was malformed or contained invalid parameters { "status" "error", "statusdescription" "the request could not be processed ", "durationms" 42 }// unauthorized authentication failed because the api key was missing or invalid { "status" "error", "statusdescription" "the request could not be processed ", "durationms" 42 }// internal server error an unexpected error occurred while processing the request { "status" "error", "statusdescription" "the request could not be processed ", "durationms" 42 }