Anchor | ||||
---|---|---|---|---|
|
Cancel Transactions
POST /pay/v1/transactions/{transaction_id}/cancels
Headers
Content-Typestring
Content type.
Authorizationstring
Access token generated from create token request.
Attributes
referencestring (optional)
Cancellation note (if any).
Request
Code Block |
---|
POST https://secure.blinkpayment.co.uk/api/pay/v1/transactions/BL-2349AGB/cancels HTTP/1.1 Content-Type: application/json Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG... { "reference": "cancel note" } |
Response
Code Block |
---|
HTTP/1.1 200 OK Content-Type: application/json { "success": true, "message": "Cancelled successfully", "amount" : "1.01", "reference": "cancel note", "transaction_id": "BL-2349AGB" } |