Capture a credit card payment

EnvironmentMethodEndpoint
Sandboxhttps://apisandbox.braspag.com.br//v2/sales/{PaymentId}/capture
Productionhttps://api.braspag.com.br/v2/sales/{PaymentId}/capture

Full capture

To fully capture a transaction, it is not necessary to send the Amount field.

Partial capture

To partially capture a transaction, send in the Amount field the value in cents you wish to capture.

EnvironmentMethodEndpoint
Sandboxapisandbox.braspag.com.br/v2/sales/{PaymentId}/capture?amount={Amount}
Productionapi.braspag.com.br/v2/sales/{PaymentId}/capture?amount={Amount}

The API allows you to capture transactions individually.

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


⚠️

Warning

  • After about 50 capture attempts, the authorizer blocks new captures and returns code 841 (excessive attempts). In this case, it is not possible to capture the transaction; it is necessary to generate a new transaction.
ℹ️

Important: airlines

  • The ServiceTaxAmount field is exclusive to airlines;
  • To capture the boarding fee, simply add the ServiceTaxAmount value to be captured.
Path Params
string
required

Order identifier field.

Query Params
int32

Amount to be captured, in cents. The support for partial capture must be verified with the acquirer.

int32

Applicable to airlines only. Amount of the authorized value that must be allocated to the service fee. The ServiceTaxAmount will be paid in full along with the first installment. Size: 15.

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