Captures
Capture a pre-authorised transaction
API to capture a previously pre-authorised transaction. <br><br><strong>Usage notes:</strong>
<ul> <li>The capture amount must be less than or equal to the original authorisation amount.</li> <li>Only one capture is allowed per pre-authorised transaction. Once captured (fully or partially), the transaction cannot be captured again.</li> </ul> <br><strong>Access Token Required scope:</strong> captures/createpost/v1/transactions/{id}/capture
Request
- Base URLhttps://docs.teya.com (the document declares no server; this is the origin it was published from)
- AuthOAuth 2Authorization codehttps://id.teya.com/oauth/v2/oauth-authorizeClient credentialsToken URLhttps://id.teya.com/oauth/v2/oauth-token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
The transaction ID of the pre-authorisation to capture
Example:tr_5f7b1a3a-3b7a-4b1a-9b1a-3a3b7a4b1a9b
Headers
Idempotency-Keystring
A unique key to identify the request. If the request is repeated with the same key, the same response will be returned. If the request is repeated with a different key or without a key, a new capture will be created.
User-Agentstring required
Example:YourCompany-Integration/1.0
Identifies your integration, for example YourCompany-Integration/1.0. Requests without a User-Agent can be blocked by our firewall before they reach the API.
Request body
Example request
{
"amount": 1000
}Response
Capture processed
Example response
{
"transaction_id": "tr_5f7b1a3a-3b7a-4b1a-9b1a-3a3b7a4b1a9b",
"card_acceptor_id": "50001325",
"status": "SUCCESS",
"issuer_result": {
"approval_code": "123456",
"response_code": "00"
},
"processed_at": "2021-01-01T00:00:00.000Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.