Reopen a Closed mWallet
code examples curl request get \\ \ url https //api mpay com au/mwallet/v1/reopen/{cardnumber}/{pin} \\ \ 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/reopen/{cardnumber}/{pin}", 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/reopen/{cardnumber}/{pin}") 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/reopen/{cardnumber}/{pin}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // successful validation the mwallet was reopened { "durationms" 61, "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" }