Skip to main content
Accept payments from Brazilian customers using PIX, the Central Bank of Brazil’s instant payment system. Customers pay by scanning a QR code or copying a payment code into their banking app — no card details required.
This payment method only supports one-time (non-recurring) payments. It is available for BRL transactions to customers in Brazil.

Payment flow

Several steps occur between creating the order and completing the PIX charge.
  1. Create an order, setting the customer’s CPF/CNPJ as their mobile number.
  2. Encrypt and send the pay order request.
  3. Redirect the customer to complete the PIX payment.
  4. Confirm the payment and inform the customer of its outcome.

Creating the Order

Follow the standard create order flow. For PIX, set the customer’s mobile field to their CPF or CNPJ (Brazil’s individual/business taxpayer ID) — this is what we forward to PIX as the transaction’s document number.
Need to charge a different document number than the one on the order? Pass apm.documentNumber in the pay order request below to override it for this transaction only.

Initiating the Payment

Encrypt the order reference and paymentoption before sending it to the pay order endpoint.
Upon receiving your request, we will return a successful response with a redirect URL for our hosted PIX payment page.
200 OK

Completing the Payment

Redirect the customer to paymentDetail.redirectUrl. This takes them to our hosted PIX payment page, where we render the QR code (and a copy-paste “PIX copia e cola” code) and monitor the payment for you. The customer completes the transfer from their own banking app, and we’ll notify you once it’s confirmed.

Verifying the Payment

Read the transaction verification section to learn how to verify your PIX transactions.

Testing your integration

Kindly contact the support team to enable PIX testing on your account.
Follow these guidelines to successfully test your PIX integration:
  1. Use a BRL order currency — PIX is only available for BRL transactions.
  2. Set the customer’s mobile field to a valid-format CPF (e.g. 241.390.720-32) or CNPJ when creating the order.
  3. Set customer.country to BR.