{ "order": { "invoice_number": "INV-20210118-0001" }, "payment": { "original_request_id": "b266c265-3d61-4708-9860-c0d5b9a98f8c" }, "refund": { "amount": 11 } }
curl --location '/cancellation/credit-card/refund' \ --header 'Client-Id: 10791114622547' \ --header 'Request-Id: e71fe02a-bfef-4af9-a6f6-2cf1f03b00e7' \ --header 'Request-Timestamp: 2020-11-18T08:45:42Z' \ --header 'Signature: HMACSHA256=vl9DBTX5KhEiXmnpOD0TSm8PYQknuHPdyHSTSc3W6Ps=' \ --header 'Content-Type: application/json' \ --data '{ "order": { "invoice_number": "INV-20210118-0001" }, "payment": { "original_request_id": "b266c265-3d61-4708-9860-c0d5b9a98f8c" }, "refund": { "amount": 11 } }'
{ "order": { "invoice_number": "INV-20210118-0001" }, "payment": { "original_request_id": "b266c265-3d61-4708-9860-c0d5b9a98f8c" }, "refund": { "amount": 11, "type": "FULL_REFUND", "status": "SUCCESS", "message": "Approved", "approval_code": "12321" } }