Decline Transaction

Use the following request to decline a transaction:

PUT /logs/:id/decline.xml
PUT /logs/:id/decline.json

XML Request example

curl -i -X PUT -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml' --url http://onapp.test/logs/:id/decline.xml


JSON Request example

curl -i -X PUT -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json' --url http://onapp.test/logs/:id/decline.json

Where you need to specify the ID of the log related to the transaction which you wish to decline.