User can capture a delay capture transaction earlier then the set day. Authenticate this request using HTTP Basic Auth by adding a bearer token to the header, e.g. Authentication: Bearer {{access_token}}
. You can get the {{access_token}}
from the create token request.
The previous transaction
must have delay_capture_days
set to be greater than 0 in the intent.
Capture Transactions
POST /pay/v1/transactions/{transaction_id}/captures
Headers
Content-Typestring
Content type.
Authorizationstring
Access token generated from create token request.
Attributes
amountfloat
Transaction amount.
transaction_uniquestring
Transaction unique.
Request
Code Block |
---|
POST https://secure.blinkpayment.co.uk/api/pay/v1/transactions/BL-2349AGB/captures HTTP/1.1 Content-Type: application/json Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG... { "amount": 1.01, "transaction_unique": "ref7ng8rif7ng8" } |
Response
Code Block |
---|
HTTP/1.1 200 OK Content-Type: application/json { "success": true, "message": "CapturedsuccessfullyCaptured successfully", "amount" : "1.01", "reference": "ref7ng8rif7ng8", "transaction_id": "BL-2349AGB" } |