API
POSTRequest#
The payload of reversal must contain details of the original checkout request. For the full list of parameters, refer our API Reference section.
Reversal Request
Reversal URL Parameters
** Refer the “authkey” construction details in Authentication section(Part B)
*** Refer below table for reversal transaction types to be sent in request. If the transtype is sent, the actual reveral request will be processed, if the transtype not sent system will process either void or refund based on the transaction state and response will be sent with the processed reversal type. If partial refund is being attempted, then transtype is mandatory.
Reversal can be used for transaction which has been authorised successfully. It can also be used for transactions for which no response has been received, in that case transactionid can be omittied. In this scenario, if the transaction was successful , then the reversal will be attempted. If the transaction was not successful, then the reversal will fail.
Try it
· RequestThe payload is not valid JSON. Requests are relayed through this site to https://lateralpayments.com/checkout-staging. Use sandbox credentials only; nothing is stored.
Response#
The response to reversal API indicates the status of transaction whether it was successfully reversed and also will contain unique transaction and order id’s.
Reversal Response
Reversal URL Parameters
** Refer the “responsekey” details in Authentication section(Part B)
Sample:
{
"accountid":"test_pos",
"transactionid":"5175",
"amount": "0.12",
"currency": "AUD",
"reference": "lpstest123",
"status": {
"responsetype": "0",
"statuscode": "2",
"errorcode": "",
"errordesc": "",
"original_code":""
},
"reversaldetails":
{
"type":"standard",
"reason":"Customer doesnt want the service - so requesting cancellation"
"refundid":"112357"
},
"responsekey":"c39edcd12c5c6d10a4b28afeae21d44631e503c9bcd4a547b027d70fc1835c7759c28aa47e35adbba6e7f36141c899034823eb743495ec8bb16079dba0c6502a",
"transtype":"3"
}