Get Transactions by mWallet
code examples curl request post \\ \ url https //api mpay com au/mwallet/v1/transactions \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "accountnumber" "4211110000000019", "pin" "1234", "startdate" "2026 07 01t00 00 00", "enddate" "2026 07 31t23 59 59", "take" 50, "descending" "true", "usetime" "false" }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "accountnumber" "4211110000000019", "pin" "1234", "startdate" "2026 07 01t00 00 00", "enddate" "2026 07 31t23 59 59", "take" 50, "descending" "true", "usetime" "false" }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("https //api mpay com au/mwallet/v1/transactions", 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/mwallet/v1/transactions") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request body = json dump({ "accountnumber" "4211110000000019", "pin" "1234", "startdate" "2026 07 01t00 00 00", "enddate" "2026 07 31t23 59 59", "take" 50, "descending" "true", "usetime" "false" }) response = https request(request) puts response read body import requests import json url = "https //api mpay com au/mwallet/v1/transactions" payload = json dumps({ "accountnumber" "4211110000000019", "pin" "1234", "startdate" "2026 07 01t00 00 00", "enddate" "2026 07 31t23 59 59", "take" 50, "descending" "true", "usetime" "false" }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // successful validation the matching transactions are returned { "openingbalance" 250 75, "closingbalance" 350 75, "totaldebits" 0, "totalcredits" 100, "items" \[ { "roworder" 1, "mpaymentsid" 987654321, "transactionid" 123456789, "datetime" "2026 07 15t11 04 33", "maccountname" "monoova retail pty ltd", "transactiontype" "payment", "subtransactiontype" "gatewaymwalletcredit", "credit" 100, "debit" 0, "runningbalance" 350 75, "description" "inv 10023 top up" } ], "durationms" 212, "status" "ok", "statusdescription" "operation completed successfully" }// bad request the request failed validation for example a mandatory field is missing, a value does not match the documented pattern, or the mwallet could not be found { "durationms" 24, "status" "fail", "statusdescription" "the pin must be exactly 4 numeric digits ", "errorcode" "validationerror" }// unauthorized the basic authentication credentials are missing, malformed or the supplied api key is not valid for this operation { "durationms" 24, "status" "fail", "statusdescription" "the pin must be exactly 4 numeric digits ", "errorcode" "validationerror" }// internal server error an unexpected condition prevented the platform from completing the request retry the request and contact monoova support if the error persists { "durationms" 24, "status" "fail", "statusdescription" "the pin must be exactly 4 numeric digits ", "errorcode" "validationerror" }