Void a credit card payment

Cancel or refund a credit card transaction.

EnvironmentMethodEndpoint
Sandboxhttps://apisandbox.braspag.com.br//v2/sales/{PaymentId}/void?amount=xxx
Productionhttps://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.

Language
Click Try It! to start a request and see the response here!