Update Transaction
code examples curl request patch \\ \ url https //sand api monoova com/au/card/ccm/creditcardtransaction/{clienttransactionuniquereference} \\ \ header 'accept application/json' \\ \ header 'content type application/json patch+json' \\ \ data '{ "ledgeraccountnumber" "" }'var options = new restclientoptions("https //sand api monoova com") { maxtimeout = 1, }; var client = new restclient(options); var request = new restrequest("/au/card/ccm/creditcardtransaction/{clienttransactionuniquereference}", method patch); request addheader("accept", "application/json"); request addheader("content type", "application/json patch+json"); var body = @"{" + "\n" + @" ""ledgeraccountnumber"" """"" + "\n" + @"}"; request addstringbody(body, dataformat json); restresponse response = await client executeasync(request); console writeline(response content);var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json patch+json"); var raw = json stringify({ "ledgeraccountnumber" "" }); var requestoptions = { method 'patch', headers myheaders, body raw, redirect 'follow' }; fetch("https //sand api monoova com/au/card/ccm/creditcardtransaction/{clienttransactionuniquereference}", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));\<?php $curl = curl init(); curl setopt array($curl, array( curlopt url => 'https //sand api monoova com/au/card/ccm/creditcardtransaction/{clienttransactionuniquereference}', curlopt returntransfer => true, curlopt encoding => '', curlopt maxredirs => 10, curlopt timeout => 0, curlopt followlocation => true, curlopt http version => curl http version 1 1, curlopt customrequest => 'patch', curlopt postfields =>'{ "ledgeraccountnumber" "" }', curlopt httpheader => array( 'accept application/json', 'content type application/json patch+json' ), )); $response = curl exec($curl); curl close($curl); echo $response; responses // ok { "traceid" "" }// bad request { "traceid" "", "errors" \[ { "errorcode" "", "errormessage" "", "sourceerrorcode" "", "sourceerrormessage" "" } ] }// forbidden { "traceid" "", "errors" \[ { "errorcode" "", "errormessage" "", "sourceerrorcode" "", "sourceerrormessage" "" } ] }// not found { "traceid" "", "errors" \[ { "errorcode" "", "errormessage" "", "sourceerrorcode" "", "sourceerrormessage" "" } ] }// internal server error // bad gateway // gateway timeout