Resource List

Check out the available resources in the Gateway de Pagamento API below

Transactional API

URL sandbox: https://apisandbox.braspag.com.br/

URL production: https://api.braspag.com.br/

MethodEndpointDescription
/v2/verifycardValidates the card with Zero Auth and returns the card information based on the BIN query or card token.
/v2/sales/- Creates payments (for each payment method);
- Creates recurring payments;
- Saves cards during authorization;
- Creates payments with Antifraude.
/v2/sales/{PaymentId}/captureCaptures credit card transaction.
/v2/sales/{PaymentId}/void- Cancels or refunds a credit or debit card transaction via PaymentId;
- Requests a Pix refund.
/v2/RecurrentPayment/{RecurrentPaymentId}/CustomerChanges shopper's data in a recurring payment.
/v2/RecurrentPayment/{RecurrentPaymentId}/PaymentChanges recurring payment data.
/v2/RecurrentPayment/{RecurrentPaymentId}/AmountChanges recurring payment amount.
/v2/RecurrentPayment/{RecurrentPaymentId}/RecurrencyDayChanges recurring payment date.
/v2/RecurrentPayment/{RecurrentPaymentId}/NextPaymentDateChanges next recurring payment date.
/v2/RecurrentPayment/{RecurrentPaymentId}/IntervalChanges recurring payment interval.
/v2/RecurrentPayment/{RecurrentPaymentId}/EndDateChanges end date of recurring payment.
/v2/RecurrentPayment/{RecurrentPaymentId}/DeactivateDeactivates a recurring payment.
/v2/RecurrentPayment/{RecurrentPaymentId}/ReactivateReactivates a recurring payment.

Query API

URL sandbox: https://apiquerysandbox.braspag.com.br/

URL production: https://apiquery.braspag.com.br/

MethodEndpointDescription
/v2/sales/{PaymentId}Queries transaction by PaymentId.
/v2/sales?merchantOrderId={merchantOrderId}Queries transaction byMerchantOrderId.
/v2/RecurrentPayment/{RecurrentPaymentId}Queries recurring transaction.

API authentication Cartão Protegido

URL sandbox: https://authsandbox.braspag.com.br/_oauth2/token
URL production: https://auth.braspag.com.br/_oauth2/token

MétodoEndpointDescrição
oauth2/tokenGets the API access token from the Cartão Protegido.

API Cartão Protegido

URL sandbox: https://cartaoprotegidoapisandbox.braspag.com.br/
URL production: https://cartaoprotegidoapi.braspag.com.br/

MétodoEndpointDescrição
/v1/TokenCreate card token (token reference)
/v1/Token/{TokenReference}Obtain information related to a token reference, such as status, masked card, expiration date, and cardholder name.
/v1/Alias/{Alias}/TokenReferenceGet the token reference from a previously informed alias.
/v1/Token/{TokenReference}/suspendSuspend a token reference temporarily.
/v1/Token/{TokenReference}/unsuspendReactivate a token reference that was temporarily suspended.
/v1/Token/{TokenReference}Delete token reference permanently from data base.