put https://apisandbox.braspag.com.br/v2/sales//void?amount=xxx
Cancel or refund a credit card transaction.
Environment | Method | Endpoint |
---|---|---|
Sandbox | put | https://apisandbox.braspag.com.br//v2/sales/{PaymentId}/void?amount=xxx |
Production | put | https://api.braspag.com.br//v2/sales/{PaymentId}/void?amount=xxx |
Total void
To totally void a transaction, it is not necessary to send the Amount
field.
Partial void
To partially void a transaction, include in the Amount
field the amount in cents that you wish to void.
It is not possible to partially void a transaction that was not captured.
To partially void a transaction, the
Capture
field must be "true" when creating the payment with a credit card.