Cancel Transactions
POST /pay/v1/transactions/{transaction_id}/cancels
Headers
Content-Type string
Content type.
Authorization string
Access token generated from create token request.
Attributes
amount float (optional)
Amount is required if transaction cannot be fully cancelled. The amount must not be greater than the original received amount. If amount is not present, then it will cancel the full transaction amount.
reference string (optional)
Cancellation note (if any).
Request
POST https://secure.blinkpayment.co.uk/api/pay/v1/transactions/BL-2349AGB/cancels HTTP/1.1 Content-Type: application/json Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG... { "amount": 1.01, "reference": "cancel note" }
Response
HTTP/1.1 200 OK Content-Type: application/json { "success": true, "message": "Cancelled successfully", "amount" : "1.01", "reference": "cancel note", "transaction_id": "BL-2349AGB" }