Cancel Device Sale
Cancel Device Sale API allows partners to cancel and in-process on device sale transaction.
post
https://<PayEngine-host>
/api/payment/cancel-device-sale
Request
Response
1
{
2
"merchant_id": "c03ce6ad-1e78-4bd7-ad35-e0d46b6b765d",
3
"data": {
4
"deviceId": "d9a63ebe-3036-4657-ba47-a4ad6e401b7c"
5
}
Copied!
1
{
2
"data": {
3
"ID": "d764f5a1-d269-43c8-bdeb-d3d469b2ada5",
4
"TransactionID": "9732e3bd-008a-454e-b201-1d600ec95c3e",
5
"MerchantID": "e6803b29-68a4-4c2a-b3ee-019dfad86c61",
6
"CancelDeviceSaleResponse": {
7
"status": "PASS",
8
"responseMessage": "Transaction cancellation requested. If the transaction cannot be cancelled, you must process a void/refund request once the transaction is complete."
9
}
10
}
11
}
Copied!
Webhook event: DEVICE_SALE_CANCEL

Webhook Payload Example

1
{
2
event_uid: 'f1b19120cb0b1d9dcf14c27fa59ea227',
3
event: 'DEVICE_SALE_CANCEL',
4
data: {
5
account_id: '3cab79a6-31bd-43e6-9a0c-e5870b18fa38',
6
payment_id: '8840e087-1083-412e-95f3-691c60957353',
7
merchant_id: 'e6803b29-68a4-4c2a-b3ee-019dfad86c61',
8
transaction_id: '0a73ef84-f969-4c8e-9a1f-5539deba84fc',
9
cancel_device_sale_response: {
10
status: 'PASS',
11
responseMessage: 'Transaction cancellation requested. If the transaction cannot be cancelled, you must process a void/refund request once the transaction is complete.'
12
}
13
}
14
}
15
​
Copied!
Copy link
Contents
post