https://api.sandbox.trio.com.br.
1
Create a second bank account
In the Trio App, open the menu and go to Account > Virtual Accounts. At the top right of the list, click Create Virtual Account..png?fit=max&auto=format&n=x8bS2HzNhei2b1vu&q=85&s=490d10fb6e1c6d29429cc338df1358ba)
Select your real bank account (typically there is only one) and give the new account a short description..png?fit=max&auto=format&n=x8bS2HzNhei2b1vu&q=85&s=66af13a2d0071a2c8b0ea19d878b5010)
The new account appears in the list with its own
.png?fit=max&auto=format&n=x8bS2HzNhei2b1vu&q=85&s=490d10fb6e1c6d29429cc338df1358ba)
.png?fit=max&auto=format&n=x8bS2HzNhei2b1vu&q=85&s=66af13a2d0071a2c8b0ea19d878b5010)
id and balance. Your first account starts with BRL 1,000,000.00; the new one starts with BRL 0.00.Through the API, create the second account with POST /v2/bank_accounts (group_id and description) and list both, with their ids and balances, with GET /v2/bank_accounts.2
Create a QR code that points to the new account
Send a Keep the
POST to Create a dynamic QR code with the new account’s id in bank_account_id. The amount is in cents (BRL 100.00 = 10000), so 5000 is a BRL 50.00 deposit.hash from the response: it is the BR code (the Pix copy-and-paste code) you pay in the next steps.3
Open Pix in the Trio App
The account with BRL 0.00 receives the deposit; your first account, which holds the balance, pays it. Go to Move your account > Pix..png?fit=max&auto=format&n=x8bS2HzNhei2b1vu&q=85&s=bba9bf0639c316d4564427404351ea0f)
.png?fit=max&auto=format&n=x8bS2HzNhei2b1vu&q=85&s=bba9bf0639c316d4564427404351ea0f)
4
Select the origin account
Choose the first account, the one with the full balance..png?fit=max&auto=format&n=x8bS2HzNhei2b1vu&q=85&s=70838aaf6170e85a485151ea092f32b6)
.png?fit=max&auto=format&n=x8bS2HzNhei2b1vu&q=85&s=70838aaf6170e85a485151ea092f32b6)
5
Paste the BR code
Paste the .png?fit=max&auto=format&n=x8bS2HzNhei2b1vu&q=85&s=77fb6780b206be68baa7dac6354a4289)
hash returned by the API..png?fit=max&auto=format&n=x8bS2HzNhei2b1vu&q=85&s=77fb6780b206be68baa7dac6354a4289)
6
Confirm the payment
Follow the remaining confirmation screens. The deposit settles, Trio sends the webhook event, and the transaction appears in your transaction list and in .png?fit=max&auto=format&n=x8bS2HzNhei2b1vu&q=85&s=c2101a6bb4358e2c8856b8aa80d7c170)
GET /v2/documents/in..png?fit=max&auto=format&n=x8bS2HzNhei2b1vu&q=85&s=c2101a6bb4358e2c8856b8aa80d7c170)
Next steps
- Simulate deposit failures: reproduce rejected and refunded deposits with the same two accounts.
- Document lifecycle: the statuses the settled in document went through.
- Creating your first webhook: receive the settlement event in your system.

