put https://apisandbox.cieloecommerce.cielo.com.br/1/sales//capture
Perform the partial or total capture of a credit card transaction.
Environment | Method | Endpoint |
---|---|---|
Sandbox | put | https://apisandbox.cieloecommerce.cielo.com.br/1/sales/{paymentId}/capture?amount={Valor}&serviceTaxAmount={Valor} |
Production | put | https://api.cieloecommerce.cielo.com.br/1/sales/{paymentId}/capture?amount={Valor}&serviceTaxAmount={Valor} |
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
Amount
field in the capture request with the desired amount to be captured; - For total capture, do not send the
Amount
field. The total authorized amount will be considered.
Warning
Transactions 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
ServiceTaxAmount
value to be captured.