Get QR Code for Pix payments

Retrieves the Pix QR Code of a payment by ID.

Use this operation to get the QR Code image in Base64, the Pix Copy and Paste code and the expiration date associated with the payment. The QR Code is dynamic, has an expiration date and can be paid only once.

The operation is compatible with PIX, BOLETO and UNDEFINED payments when Pix is available as a payment method.

In the regular flow with a registered Pix key, the QR Code expires 12 months after the payment due date.

⚠️

Payments without a Pix key

Currently, it is still possible to get a dynamic Pix QR Code without 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.

If the payment is updated, get a new QR Code.

This behavior is transitional and will be discontinued in the future. For the regular flow, keep a Pix key registered in the account.

Related content

Guides

Path Params
string
required

Unique payment identifier in Asaas

Responses

403

Forbidden. Occurs when the request body is filled, GET method calls must have an empty body.

404

Not found

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json