Create a voucher payment

Create a transaction with a voucher

ℹ️

Learn more about this feature in the documentation.

EnvironmentMethodEndpoint
Sandboxhttps://apisandbox.braspag.com.br/v2/sales/
Productionhttps://api.braspag.com.br/v2/sales/

Currently, the supported providers are Alelo and Ticket. For testing in a Sandbox environment, use the Simulado provider.

ProviderCharacteristics
Alelo
  • Automatic capture when PaymentCapture = true or not informed;
  • Does not allow posterior capture;
  • Allow total canceling;
Ticket
  • Automatic capture when PaymentCapture = true or posterior capture (pre-authorization) when PaymentCapture = false.
  • Allows total and partial canceling/refund.

Guidelines for cancellation with Alelo voucher

  • Partial cancellation is not allowed;
  • Full cancellation can only be performed on the transaction day (D0);
  • To cancel after the transaction day (from D+1 onwards), you must contact Alelo.
Body Params
Payment
object
Headers
string
required

Store identifier at Braspag. Size: 36.

string
required

Public key for dual authentication at Braspag. Size: 40.

string

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

Response

Language
LoadingLoading…
Response
Choose an example:
application/json