This guide shows how to accept PIX payments, buy/sell USDC using Virtual Account (VA) balances, and query bills/transactions. All examples are minimal and easy to copy.
1.1 Create a Static QR Code/Dynamic QR Code/PIX KEY (Create Virtual Account)#
When opening a virtual account, you can generate Static QR Codes, Dynamic QR Codes, and Static Pix Keys through the same API(create virtaul account). Please note:
1.
A Dynamic QR Code has a maximum validity of 6 hours (custom validity periods will be supported in the future).
2.
Before creating a Pix Key: • If using an email as the key, the email must first be validated through the OTP verification API(send email verify code). • If using a random key, no validation is required.
3.
When creating a Pix Key, the system will also generate a corresponding Static QR Code together with it.
1.2 Receive Funds via Webhook (Real-time Notifications)#
After buyers pay the PIX QR, subscribe to our webhook to get instant updates. Use the virtual account payment status payload.Useful Link: virtual account payment status
1.3 Refund to Original Route (Refund Virtual Account Order)#
You can use VA balances to buy USDC. The flow is: (1) Get quote (price + fees) → returns a quote_id (2) Create order (confirm buy/sell/transfer) with that quote_idNote • The quote & order APIs are shared across transfer, buy, and sell. • Distinguish by type when placing the order. • For sell orders, you must first add a bank account (or list an existing one).