mWallet Search
code examples curl request get \\ \ url 'https //api mpay com au/mwallet/v1/search?clientuniqueidentifier=customer%40example com' \\ \ 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/mwallet/v1/search?clientuniqueidentifier=customer\@example com", 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/search?clientuniqueidentifier=customer\@example com") 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/mwallet/v1/search?clientuniqueidentifier=customer\@example com" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // successful validation matching mwallets are returned { "mwallets" \[ { "createddatetime" "2026 02 11t09 15 00", "accountnumber" "4211110000000019", "name" "jane citizen", "nickname" "jane", "email" "jane citizen\@example com", "mobile" "0400000000", "lasttransactiondate" "2026 08 14t16 42 10", "contactphone" "0298765432", "authenticationemail" "jane citizen\@example com", "authenticationmobile" "0400000000", "authenticationlandline" "0298765432", "registeredbymaccountnumber" "4211110000000027", "isonhold" "false", "isclosed" "false", "isstolen" "false", "isregistered" "true", "financials" { "actualbalance" 250 75, "availablespend" 250 75, "availableload" 9749 25, "maximumbalance" 10000 }, "options" \[ { "key" "mobileforsms", "value" "0400000000" } ], "abn" "51824753556" } ], "durationms" 64, "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" }