Capture Transactions

 

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-Type string
Content type.

Authorization string
Access token generated from create token request.

 

Attributes

amount float
Transaction amount.

transaction_unique string
Transaction unique.

Request

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": "rif7ng8" }

Response

HTTP/1.1 200 OK Content-Type: application/json { "success": true, "message": "Captured successfully", "amount" : "1.01", "reference": "rif7ng8", "transaction_id": "BL-2349AGB" }