Cancel Reconciliation Rule
code examples curl request patch \\ \ url https //api mpay com au/receivables/v1/reconciliationrules/{reconciliationrulereference} \\ \ header 'accept application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'patch', headers myheaders, redirect 'follow' }; fetch("https //api mpay com au/receivables/v1/reconciliationrules/{reconciliationrulereference}", 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/receivables/v1/reconciliationrules/{reconciliationrulereference}") https = net http new(url host, url port) https use ssl = true request = net http patch 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/receivables/v1/reconciliationrules/{reconciliationrulereference}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("patch", url, headers=headers, data=payload) print(response text) responses // successful validation { "durationms" 12, "status" "ok", "statusdescription" "operation completed successfully" }// bad request the request was invalid or could not be processed { "durationms" 8, "status" "fail", "statusdescription" "one or more validation errors occurred ", "errors" \[ { "code" "invalidrequest", "message" "the field 'bsb' is invalid " } ] }// unauthorized authentication failed or was not provided { "durationms" 8, "status" "fail", "statusdescription" "one or more validation errors occurred ", "errors" \[ { "code" "invalidrequest", "message" "the field 'bsb' is invalid " } ] }// internal server error an unexpected error occurred while processing the request { "durationms" 8, "status" "fail", "statusdescription" "one or more validation errors occurred ", "errors" \[ { "code" "invalidrequest", "message" "the field 'bsb' is invalid " } ] }