put
https://apisandbox.cieloecommerce.cielo.com.br/1/sales//void
Cancel the total or partial amount of a credit transaction by providing the PaymentId.
| Environment | Method | Endpoint |
|---|---|---|
| Sandbox | put | https://apisandbox.cieloecommerce.cielo.com.br/1/sales/{PaymentId}/void?amount={Amount} |
| Production | put | https://api.cieloecommerce.cielo.com.br/1/sales/{PaymentId}/void?amount={Amount} |
See the Void return codes.
It is not possible to partially void a transaction that was not captured.To partially void a transaction, the
Capturefield must be "true" when creating the payment with a credit card.