Endpoint responsible for retrieving the Pix QR Code of a specific charge.
This request returns the QR Code as a Base64 image, the Pix Copy and Paste payload, and the expiration date corresponding to the QR Code generated for the charge.
Supported charges
The Pix QR Code can be retrieved for charges with:
PIXBOLETOUNDEFINED
In these scenarios, Pix is enabled as a payment method for the charge.
Characteristics of the returned QR Code
The QR Code generated by this endpoint has the following characteristics:
- it is dynamic
- it has an expiration date
- it can only be paid once
- it can be printed or displayed in documents
- it expires up to 12 months after the due date when linked to the regular flow with a Pix key
Pix key and temporary behavior
At the moment, it is still possible to obtain a dynamic QR Code for immediate Pix payment even without having a Pix key registered in Asaas.
In this scenario, the QR Code is linked to a partner institution and can be paid until 23:59 on the same day. Each time the charge is updated, a new QR Code must be retrieved.
Since this possibility will be discontinued in the future, the recommendation is that the account have a Pix key registered in Asaas in order to keep the flow stable and aligned with the platform's definitive behavior.
Request parameter
id— Unique identifier of the charge in Asaas
AttentionGET requests must be sent with an empty body.
Otherwise, the API may return a 403 Forbidden error.
403Forbidden. Occurs when the request body is filled, GET method calls must have an empty body.
404Not found
