Perform the partial or total capture of a credit card transaction.
Environment | Method | Endpoint |
|---|---|---|
Sandbox | put |
|
Production | put |
|
It is possible to capture a partial amount or the total amount of the transaction.
Partial capture is the act of capturing an amount less than the authorized amount. This capture model can occur only once per transaction.
After a capture, it is not possible to perform additional captures on the same order.
- For partial capture, send the
Amountfield in the capture request with the desired amount to be captured; - For total capture, do not send the
Amountfield. The total authorized amount will be considered.
WarningTransactions with a value of less than 20 cents in the financial schedule are not settled. We do not recommend capturing amounts less than 20 cents.
Important: airlines
- The ServiceTaxAmount field is exclusive to airlines;
- To capture the boarding fee, simply add the
ServiceTaxAmountvalue to be captured.
Return codes for capture
When the capture is successful, the API will return the ReturnCode "6" with ReturnMessage "Operation Succesful".
{
...
"ReturnCode": "6",
"ReturnMessage": "Operation Successful",
...
}If there is an error, the API will return the HTTP error and the Code and Message:
[
{
"Code": 308,
"Message": "Transaction not available to capture"
}
]Please refer to API Errors to see the complete list.