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 PIX QR (Create Virtual Account)#
Before accepting PIX, create a seller-specific static QR via the create virtual account API. The response contains the static QR and VA details.Create Virtual Account API link:create virtaul accountReceive Open Virtual Account Status:Open Virtual Account Status
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).