Links

Deferred Settlement

The Settlement request is often also referred to as “Capture” or “Clearing”. It can be used for the settlement of previously authorized transactions. The transactionId is needed to settle an authorization. Note: This API call is not needed if "autoSettle": true was used when authorizing a transaction.
This service requires HTTP basic authentication. The required credentials can be found in our dashboard. Please refer to API authentication data for more information.
post
https://api.sandbox.datatrans.com
/v1/transactions/{transactionId}/settle
Deferred Settlement

Example

Request
Response (success)
Response (error)
curl -X POST \
https://api.sandbox.datatrans.com/v1/transactions/191023125905647521/settle \
-H 'Authorization: Basic MTAwMDAwMTExMTpwWUU4bFE2TlBiM2thRXpR' \
-H 'Content-Type: application/json; charset=UTF-8' \
-d '{
"amount": 1000,
"currency": "EUR",
"refno": "49raer8TC"
}'
204 Transaction successfully settled
{
"error": {
"code": "INVALID_PROPERTY",
"message": "exceeded authorization amount"
}
}

Error table

If the settlement failed, you receive one of the following error codes.
"UNKNOWN_ERROR", "UNRECOGNIZED_PROPERTY", "INVALID_PROPERTY", "INVALID_TRANSACTION_STATUS", "TRANSACTION_NOT_FOUND", "INVALID_JSON_PAYLOAD", "UNAUTHORIZED", "EXPIRED_CARD", "INVALID_CARD", "UNSUPPORTED_CARD", "DUPLICATED_REFNO", "DECLINED", "BLOCKED_BY_VELOCITY_CHECKER", "CLIENT_ERROR" , "SERVER_ERROR"