Cancel Payment API
Path Attributes
id
Integer
Mandatory
Unique identifier of the Payment to be cancelled
Example
curl -X PUT \
https://api.durianpay.id/v1/payments/pay_wA2X2Mvm2d4965/cancel \
-H 'authorization: [Base64({Your_Server_Key}:)]' \
-H 'content-type: application/json' \
Response Code
200 - Success
1 2 3 4 5 6 7 8 9
{ "data": { "id": "pay_ohXLNm2fPw6868", "status": "cancelled", "order_id": "ord_Dg0Dz9wwKP1602", "created_at": "2020-11-19T22:09:48Z", "updated_at": "2020-11-26T20:02:24.561169Z" } }
400 - Bad Request
401 - Unauthorized Access
500 - Internal Server Error