Concepts
Immediate charge
ThePOST /v1/pix/in/qrcode operation creates the charge. The amount (amountInCents) and the identification of the payer (customer.documentType and customer.document) are required.
Charge with due date
ThePOST /v1/pix/in/cob operation accepts the same fields as the immediate charge, plus the cob block. The cob.expirationDate field is required, uses the YYYY-MM-DD format and cannot be earlier than the current date.
In the charge blocks, the
type field takes the value fixed, for an amount in cents, or percent, for a percentage.
Validation rules
The payer’s registration number is validated according to the type provided, with verification of the check digits of the CPF or CNPJ. The phone number is optional and, when provided, must contain the area code and the number. When the list of items (items) is sent, the sum of amountInCents × quantity must be exactly equal to amountInCents. Validation failures result in a 400 response.
Idempotency
Both operations accept theIdempotency-Key header. Repeating the request with the same key returns the charge already created, without generating a new BR Code.
Payment confirmation
Settlement of the Pix is communicated by thetransaction_paid event, which contains the endToEndId of the payment. It is recommended to store this identifier, as it is the reference used by the participating institutions in any infraction report.