Pix is a Brazilian payment method created by the Central Bank of Brazil. With pix, resources are transferred between accounts in just seconds securely with 24/7 availability.

Only available in Brazil


Payment


Pix is one of the payment methods available in the create payment service. The debt gets published in the bank to be paid by the customer using the QR code.


Status

StatusDescription
OpenedThe order was created but not yet published in the bank.
PublishedThe order was published and is now awaiting payment.
CollectedThe order was created and paid for.
CancelledThe order was either canceled or expired.
FailedSomething went wrong and the order wasn't created.

When the order status changes a webhook notification will be sent.


Workflow

In this section you can find information about pix workflow for different scenarios.


Successful:


644

Expired:


612

Delayed:


651

The API responds "Opened" status if the payment creation gets delayed, and in these cases, the response will lack locations data. Merchants can retry the payment order using the same request body.


Failed:


617

Testing environment

In order to test all scenarios in a testing environment, you can use the order amount to force the order status in the create payment response. For example, if the order amount is less than 5001, the order status will be "Published" and after a couple of minutes, it will change to "Collected". In the table below you can find other options.

AmountResponse statusStatus change
Amount <= 5.000PublishedCollected
5.000 < Amount < 10.000Published-
10.000 <= Amount < 15.000Failed-

When the order status changes a webhook notification will be sent.


Refund


Pix is also available in the refund service. It can be used to reimburse totally or partially previously collected orders.

Status

StatusDescription
OpenedRefund order in process.
RefundedRefund order completed.
DeniedRefund order denied.
FailedSomething went wrong the refund order failed.