BolePix
Does Trio's boleto have a Pix QR code?
Does Trio's boleto have a Pix QR code?
Is the BR code returned when the boleto is created?
Is the BR code returned when the boleto is created?
POST /v2/in/boletos, the creation response does not include the Pix QR code hash.To get the Pix data, use the id returned in data.id and make a follow-up request:data.hash. See the Get dynamic QR code reference.How do I identify if a boleto was paid via Pix?
How do I identify if a boleto was paid via Pix?
type set to pix_boleto, which distinguishes it from a traditional boleto payment (type: boleto). The payment is sent through the in_document webhook with the same type:Payer data
Is the address provided in counterparty validated by Trio?
Is the address provided in counterparty validated by Trio?
address, district, city, state and postal_code.Even though the address is not validated, send real, accurate data whenever it is available.Boleto status
What are the main statuses of a boleto?
What are the main statuses of a boleto?
expired when it reaches its final payment deadline.onhold, refunded, failed and cancelled; a boleto canceled with POST /v2/in/boletos/{id}/cancel is cancelled.Which status indicates the boleto was paid?
Which status indicates the boleto was paid?
settled indicates the boleto has been paid and settled. Do not treat created or confirmed alone as payment confirmation.What happens when the boleto reaches expiration_date?
What happens when the boleto reaches expiration_date?
expiration_date is reached, the boleto moves to expired and no longer accepts payments.Webhooks
Which webhook reports a boleto payment?
Which webhook reports a boleto payment?
in_document webhook. When the boleto is paid via the Pix QR code, the type received is pix_boleto.Does the external_id provided at boleto creation appear in the webhook?
Does the external_id provided at boleto creation appear in the webhook?
external_id you send when creating the boleto is returned in the webhooks related to the document.Use external_id as the reference to your own system: it makes it easier to reconcile the transaction at Trio with the order or charge in your platform.Is there a specific webhook for when the boleto becomes due?
Is there a specific webhook for when the boleto becomes due?
due_date. Handle that according to your own business needs. When the boleto reaches expiration_date, its status changes to expired.Do I need to track boleto expiration in my system?
Do I need to track boleto expiration in my system?
GET /v2/in/boletos/{id} when needed.Due date and expiration
What is the difference between due_date and expiration_date?
What is the difference between due_date and expiration_date?
due_date: the boleto’s due date.expiration_date: the final date by which the boleto can still be paid.
Can I pay a boleto after its due_date?
Can I pay a boleto after its due_date?
expiration_date. After due_date, the charges configured for the boleto may apply, such as interest and fines.What happens after expiration_date?
What happens after expiration_date?
expiration_date the boleto becomes expired and can no longer be paid.Changing the due date
Can I change a boleto's due date?
Can I change a boleto's due date?
PUT /v2/in/boletos/{id}, sending the new due_detail.due_date:204 No Content. Read the boleto back with GET /v2/in/boletos/{id} to see the new due_detail.PUT /banking/cashin/boletos/{id} returned the updated boleto. On V2 the update returns no body.Does the barcode change when I update the due date?
Does the barcode change when I update the due date?
due_detail, but the barcode does not change. The Pix QR code also stays the same.Can I change the due date of an overdue boleto?
Can I change the due date of an overdue boleto?
due_date but has not expired yet can have its due date updated.Can I change a boleto that has already expired?
Can I change a boleto that has already expired?
expired status cannot have its due date updated. If your operation allows renegotiation, make the update before the boleto reaches its expiration_date.Refunds and returns
Can I use the refund endpoint for a boleto?
Can I use the refund endpoint for a boleto?
POST /v2/documents/in/{id}/refund is intended for transactions originated via Pix:How does a refund work when the boleto is paid via Pix?
How does a refund work when the boleto is paid via Pix?
id in data.in_refund_id.Boleto URL
Does the boleto URL require authentication?
Does the boleto URL require authentication?
boleto_url returned by the API is public and does not require authentication to access the document, so you can use the link directly in emails, checkouts, applications and order tracking pages. For example:boleto_url along with the boleto data to make it easier to access the document later.Costs
Is there a charge for a boleto that was issued but not paid?
Is there a charge for a boleto that was issued but not paid?
Installment books (carnês) and batch issuance
Can I issue multiple boletos for the same purchase?
Can I issue multiple boletos for the same purchase?
What is the rate limit for creating boletos?
What is the rate limit for creating boletos?
Does each boleto in a carnê need a different external_id?
Does each boleto in a carnê need a different external_id?
external_id. For example:external_id, so relating the boleto to the order in your system is simple.Integration best practices
What information should I store after creating a boleto?
What information should I store after creating a boleto?
- the boleto
idat Trio (the sameididentifies its embedded QR code); external_id;due_date;expiration_date;boleto_url.
What should I consider when implementing boleto?
What should I consider when implementing boleto?
- Consider both payment methods: typeable line/barcode and Pix.
- Treat
settledas a paid boleto. - Treat
expiredas a boleto that can no longer be paid. - Do not confuse
due_datewithexpiration_date. - Track due date and expiration in your system when you need to trigger specific actions.
- Use a unique
external_idfor each boleto. - Respect the rate limit of 60 requests per second.
- Reconcile using the identifiers received in webhooks.
- Store the
boleto_urlto make it easier to access the document. - Identify payments with
type = pix_boletowhen the boleto is paid via Pix.
Next steps
- Create a boleto: the full request, with due date, discounts, fine and interest.
- Boleto types: every invoice type and wallet type value.
- Receivables: every way to receive money on Trio.
- Create boleto API reference: every field of the request and response.

