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
⚠️

New mandatory field for voiding transactions due to fraud risk

As of 04/17/2026, it will be mandatory to provide the Reason field when the void reason is fraud risk identified by the merchant.

Set Reason = "HighRisk" in the request body, as shown in the example below:

{
  "Reason": "HighRisk"
}

Total void

To totally void a transaction, it is not necessary to send the Amount field.

Partial void

EnvironmentMethodEndpoint
Sandboxhttps://apisandbox.braspag.com.br/v2/sales/{PaymentId}/void?amount={Amount}
Productionhttps://api.braspag.com.br/v2/sales/{PaymentId}/void?amount={Amount}

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.

The API allows you to void transactions individually.

To void a group of transactions, use the e-commerce portal. Learn more at:

Path Params
string
required

Order identifier field.

Query Params
string

Amount to be canceled/refunded, in cents. Note: 1. Check if your acquirer supports the cancelling or refunding of operations.
2. If the value for Amount is "0" (zero), or if Amount is not sent, the refund will consider the total captured amount.

Body Params
string
required

Indicates that the transaction was voided due to a fraud risk identified by the merchant. Possible value: "HighRisk". Size: 8.
Required if the transaction is voided because there is a fraud risk.
Valid for full or partial void.
Warning: This parameter will be available as of 04/17/2026.

Headers
string
required

Store identifier in the API.

string
required

Public key for dual authentication in the API.

string

Store-defined request identifier used when the merchant uses different servers for each GET/POST/PUT.

Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json