# Get Bank Account Source: https://docs.trio.com.br/api-reference/banking-api/bank-accounts/get-bank-account api-reference/banking-api/openapi.json GET /banking/bank_accounts/{id} Get a bank account by ID # Get Bank Account Balances Source: https://docs.trio.com.br/api-reference/banking-api/bank-accounts/get-bank-account-balances api-reference/banking-api/openapi.json GET /banking/bank_accounts/{id}/balances Get balances for a bank account # List Bank Account Transactions Source: https://docs.trio.com.br/api-reference/banking-api/bank-accounts/list-bank-account-transactions api-reference/banking-api/openapi.json GET /banking/bank_accounts/{id}/transactions List transactions for a bank account # List Bank Accounts Source: https://docs.trio.com.br/api-reference/banking-api/bank-accounts/list-bank-accounts api-reference/banking-api/openapi.json GET /banking/bank_accounts List all bank accounts # Block Card Source: https://docs.trio.com.br/api-reference/banking-api/cards/block-card api-reference/banking-api/openapi.json POST /banking/cards/{id}/block Block an existing card # Cancel Card Source: https://docs.trio.com.br/api-reference/banking-api/cards/cancel-card api-reference/banking-api/openapi.json POST /banking/cards/{id}/cancel Cancel an existing card # Create Card Source: https://docs.trio.com.br/api-reference/banking-api/cards/create-card api-reference/banking-api/openapi.json POST /banking/cards Create a new card # Generate Card Invoice Statement CSV URL Source: https://docs.trio.com.br/api-reference/banking-api/cards/generate-card-invoice-statement-csv-url api-reference/banking-api/openapi.json GET /banking/cards/invoices/{id}/export Generate Card Invoice Statement CSV URL for an invoice # Get Card Source: https://docs.trio.com.br/api-reference/banking-api/cards/get-card api-reference/banking-api/openapi.json GET /banking/cards/{id} Get an existing card # Get Card Current Invoice Source: https://docs.trio.com.br/api-reference/banking-api/cards/get-card-current-invoice api-reference/banking-api/openapi.json GET /banking/cards/invoices/current Get Card current Invoice # Get Card Details Source: https://docs.trio.com.br/api-reference/banking-api/cards/get-card-details api-reference/banking-api/openapi.json GET /banking/cards/{id}/info Card sensitive information: holder name, card number, expiration date and cvv # List Card Invoice Lines Source: https://docs.trio.com.br/api-reference/banking-api/cards/list-card-invoice-lines api-reference/banking-api/openapi.json GET /banking/cards/invoices/{id}/lines List lines for a specific Card Invoice # List Card Invoices Source: https://docs.trio.com.br/api-reference/banking-api/cards/list-card-invoices api-reference/banking-api/openapi.json GET /banking/cards/invoices List Card Invoices # List Card Purchase Documents Source: https://docs.trio.com.br/api-reference/banking-api/cards/list-card-purchase-documents api-reference/banking-api/openapi.json GET /banking/cards/purchases List Card purchase documents # List Cards Source: https://docs.trio.com.br/api-reference/banking-api/cards/list-cards api-reference/banking-api/openapi.json GET /banking/cards List cards # Show card purchase document by end to end id Source: https://docs.trio.com.br/api-reference/banking-api/cards/show-card-purchase-document-by-end-to-end-id api-reference/banking-api/openapi.json GET /banking/cards/purchases/e2e/{id} Show card purchase document by end to end id # Show Card Purchase Document by ID Source: https://docs.trio.com.br/api-reference/banking-api/cards/show-card-purchase-document-by-id api-reference/banking-api/openapi.json GET /banking/cards/purchases/{id} Show Card purchase document by id # Top Up Card Balance Source: https://docs.trio.com.br/api-reference/banking-api/cards/top-up-card-balance api-reference/banking-api/openapi.json POST /banking/cards/{id}/topup Top Up card balance # Transfer Card Balance Source: https://docs.trio.com.br/api-reference/banking-api/cards/transfer-card-balance api-reference/banking-api/openapi.json POST /banking/cards/{id}/transfer_balance Transfer card balance to another card # Unblock Card Source: https://docs.trio.com.br/api-reference/banking-api/cards/unblock-card api-reference/banking-api/openapi.json POST /banking/cards/{id}/unblock Unblock an existing card # Update Card Source: https://docs.trio.com.br/api-reference/banking-api/cards/update-card api-reference/banking-api/openapi.json PUT /banking/cards/{id} Update card display name # Create Counterparty Source: https://docs.trio.com.br/api-reference/banking-api/counterparties/create-counterparty api-reference/banking-api/openapi.json POST /banking/counterparties Create a new counterparty # Create Counterparty Bank Account Source: https://docs.trio.com.br/api-reference/banking-api/counterparties/create-counterparty-bank-account api-reference/banking-api/openapi.json POST /banking/counterparties/{counterparty_id}/bank_accounts Create a bank account for a counterparty # Create Counterparty Split Recipient Source: https://docs.trio.com.br/api-reference/banking-api/counterparties/create-counterparty-split-recipient api-reference/banking-api/openapi.json POST /banking/counterparties/{counterparty_id}/split_recipients Create a split recipient for a counterparty # Get Counterparty Source: https://docs.trio.com.br/api-reference/banking-api/counterparties/get-counterparty api-reference/banking-api/openapi.json GET /banking/counterparties/{id} Get a counterparty by ID # Get Counterparty Bank Account Source: https://docs.trio.com.br/api-reference/banking-api/counterparties/get-counterparty-bank-account api-reference/banking-api/openapi.json GET /banking/counterparties/{counterparty_id}/bank_accounts/{counterparty_bank_account_id} Get a counterparty bank account # Get Counterparty Split Recipient Source: https://docs.trio.com.br/api-reference/banking-api/counterparties/get-counterparty-split-recipient api-reference/banking-api/openapi.json GET /banking/counterparties/{counterparty_id}/split_recipients/{counterparty_split_recipient_id} Get a counterparty split recipient # List Counterparties Source: https://docs.trio.com.br/api-reference/banking-api/counterparties/list-counterparties api-reference/banking-api/openapi.json GET /banking/counterparties List counterparties # List Counterparty Bank Accounts Source: https://docs.trio.com.br/api-reference/banking-api/counterparties/list-counterparty-bank-accounts api-reference/banking-api/openapi.json GET /banking/counterparties/{counterparty_id}/bank_accounts List bank accounts for a counterparty # List Counterparty Split Recipients Source: https://docs.trio.com.br/api-reference/banking-api/counterparties/list-counterparty-split-recipients api-reference/banking-api/openapi.json GET /banking/counterparties/{counterparty_id}/split_recipients List split recipients for a counterparty # Update Counterparty Source: https://docs.trio.com.br/api-reference/banking-api/counterparties/update-counterparty api-reference/banking-api/openapi.json PUT /banking/counterparties/{id} Update a counterparty # Create Webhook Source: https://docs.trio.com.br/api-reference/banking-api/developers/webhooks/create-webhook api-reference/banking-api/openapi.json POST /webhooks Create a new webhook # Delete Webhook Source: https://docs.trio.com.br/api-reference/banking-api/developers/webhooks/delete-webhook api-reference/banking-api/openapi.json DELETE /webhooks/{webhook_id} Delete a webhook # Get Webhook Source: https://docs.trio.com.br/api-reference/banking-api/developers/webhooks/get-webhook api-reference/banking-api/openapi.json GET /webhooks/{webhook_id} Get a webhook by ID # List Webhooks Source: https://docs.trio.com.br/api-reference/banking-api/developers/webhooks/list-webhooks api-reference/banking-api/openapi.json GET /webhooks List all registered webhooks # Update Webhook Source: https://docs.trio.com.br/api-reference/banking-api/developers/webhooks/update-webhook api-reference/banking-api/openapi.json PUT /webhooks/{webhook_id} Update a webhook # Get Bank Account Metrics Source: https://docs.trio.com.br/api-reference/banking-api/documents/metrics/get-bank-account-metrics api-reference/banking-api/openapi.json GET /banking/metric Get settled and failed totals for collecting and payment documents # Get Payment Refund Source: https://docs.trio.com.br/api-reference/banking-api/documents/payments-refunds/get-payment-refund api-reference/banking-api/openapi.json GET /banking/cashout/refunds/{id} Get a payment refund # List Payment Refunds Source: https://docs.trio.com.br/api-reference/banking-api/documents/payments-refunds/list-payment-refunds api-reference/banking-api/openapi.json GET /banking/cashout/refunds List payment refunds # Search Payment Refunds Source: https://docs.trio.com.br/api-reference/banking-api/documents/payments-refunds/search-payment-refunds api-reference/banking-api/openapi.json GET /banking/cashout/refunds/search Search payment refunds # Get Payment Source: https://docs.trio.com.br/api-reference/banking-api/documents/payments/get-payment api-reference/banking-api/openapi.json GET /banking/cashout/documents/{id} Get a payment document # List Payments Source: https://docs.trio.com.br/api-reference/banking-api/documents/payments/list-payments api-reference/banking-api/openapi.json GET /banking/cashout/documents List payment documents # Search Payments Source: https://docs.trio.com.br/api-reference/banking-api/documents/payments/search-payments api-reference/banking-api/openapi.json GET /banking/cashout/documents/search Search payment documents # Get Receivable Refund Source: https://docs.trio.com.br/api-reference/banking-api/documents/receivables-refunds/get-receivable-refund api-reference/banking-api/openapi.json GET /banking/cashin/refunds/{id} Get a receivable refund # List Receivable Refunds Source: https://docs.trio.com.br/api-reference/banking-api/documents/receivables-refunds/list-receivable-refunds api-reference/banking-api/openapi.json GET /banking/cashin/refunds List receivable refunds # Search Receivable Refunds Source: https://docs.trio.com.br/api-reference/banking-api/documents/receivables-refunds/search-receivable-refunds api-reference/banking-api/openapi.json GET /banking/cashin/refunds/search Search receivable refunds # Get Receivable Source: https://docs.trio.com.br/api-reference/banking-api/documents/receivables/get-receivable api-reference/banking-api/openapi.json GET /banking/cashin/documents/{id} Get a receivable document # List Receivables Source: https://docs.trio.com.br/api-reference/banking-api/documents/receivables/list-receivables api-reference/banking-api/openapi.json GET /banking/cashin/documents List receivable documents # Search Receivables Source: https://docs.trio.com.br/api-reference/banking-api/documents/receivables/search-receivables api-reference/banking-api/openapi.json GET /banking/cashin/documents/search Search receivable documents # Get Transfer Source: https://docs.trio.com.br/api-reference/banking-api/documents/transfers/get-transfer api-reference/banking-api/openapi.json GET /banking/cashout/transfer/{id} Get a transfer document # List Transfers Source: https://docs.trio.com.br/api-reference/banking-api/documents/transfers/list-transfers api-reference/banking-api/openapi.json GET /banking/cashout/transfer List transfer documents # Create entity Source: https://docs.trio.com.br/api-reference/banking-api/entities/create api-reference/banking-api/openapi.json POST /banking/entities Create a new entity # Get entity by ID Source: https://docs.trio.com.br/api-reference/banking-api/entities/get api-reference/banking-api/openapi.json GET /banking/entities/{id} Get an entity by ID # List entities Source: https://docs.trio.com.br/api-reference/banking-api/entities/list api-reference/banking-api/openapi.json GET /banking/entities Returns all entities from current organization # List institutions Source: https://docs.trio.com.br/api-reference/banking-api/institutions/list api-reference/banking-api/openapi.json GET /banking/institutions Returns all institutions # Check boleto Source: https://docs.trio.com.br/api-reference/banking-api/payments/boleto/check-boleto api-reference/banking-api/openapi.json POST /banking/cashout/boleto/check Check a boleto barcode or line code # Pay boleto Source: https://docs.trio.com.br/api-reference/banking-api/payments/boleto/pay-boleto api-reference/banking-api/openapi.json POST /banking/cashout/boleto/pay Generate a boleto payment # Pay boleto v2 Source: https://docs.trio.com.br/api-reference/banking-api/payments/boleto/pay-boleto-v2 api-reference/banking-api/openapi.json POST /banking/cashout/boleto/pay/v2 Generate a boleto payment using the v2 endpoint # Check Pix BR Code Source: https://docs.trio.com.br/api-reference/banking-api/payments/brcode/check-brcode api-reference/banking-api/openapi.json POST /banking/cashout/pix/brcodes/check Validate a Pix BR Code before creating a payment # Generate a Pix Payment (BR Code) Source: https://docs.trio.com.br/api-reference/banking-api/payments/brcode/generate-pix-payment-brcode api-reference/banking-api/openapi.json POST /banking/cashout/pix Generate a Pix payment using a BR Code # Check DARF Source: https://docs.trio.com.br/api-reference/banking-api/payments/darf/check-darf api-reference/banking-api/openapi.json POST /banking/cashout/darf/check Check a DARF # Pay DARF (v1) Source: https://docs.trio.com.br/api-reference/banking-api/payments/darf/pay-darf-v1 api-reference/banking-api/openapi.json POST /banking/cashout/darf/pay Generate a DARF payment using the v1 endpoint # Pay DARF (v2) Source: https://docs.trio.com.br/api-reference/banking-api/payments/darf/pay-darf-v2 api-reference/banking-api/openapi.json POST /banking/cashout/darf/pay/v2 Generate a DARF payment using the v2 endpoint # Check Tax Source: https://docs.trio.com.br/api-reference/banking-api/payments/tax/check-tax api-reference/banking-api/openapi.json POST /banking/cashout/tax/check Check a tax barcode or line code # Pay Tax (v1) Source: https://docs.trio.com.br/api-reference/banking-api/payments/tax/pay-tax-v1 api-reference/banking-api/openapi.json POST /banking/cashout/tax/pay Generate a tax payment using the v1 endpoint # Pay Tax (v2) Source: https://docs.trio.com.br/api-reference/banking-api/payments/tax/pay-tax-v2 api-reference/banking-api/openapi.json POST /banking/cashout/tax/pay/v2 Generate a tax payment using the v2 endpoint # Check Pix Key Source: https://docs.trio.com.br/api-reference/banking-api/payments/transfer-pix/check-key api-reference/banking-api/openapi.json POST /banking/cashout/pix/keys/check Validate a Pix key before creating a payment (v1) # Generate a Pix Payment (v1) Source: https://docs.trio.com.br/api-reference/banking-api/payments/transfer-pix/generate-pix-payment-v1 api-reference/banking-api/openapi.json POST /banking/cashout/pix Generate a Pix payment using the v1 endpoint after using Check Key Endpoint # Generate a Pix Payment (v2) Source: https://docs.trio.com.br/api-reference/banking-api/payments/transfer-pix/generate-pix-payment-v2 api-reference/banking-api/openapi.json POST /banking/cashout/pix/v2 Generate a Pix payment using the v2 endpoint, pix key direct # Check Utility Source: https://docs.trio.com.br/api-reference/banking-api/payments/utility/check-utility api-reference/banking-api/openapi.json POST /banking/cashout/utility/check Check a utility barcode or line code # Pay Utility (v1) Source: https://docs.trio.com.br/api-reference/banking-api/payments/utility/pay-utility-v1 api-reference/banking-api/openapi.json POST /banking/cashout/utility/pay Generate a utility payment using the v1 endpoint # Pay Utility (v2) Source: https://docs.trio.com.br/api-reference/banking-api/payments/utility/pay-utility-v2 api-reference/banking-api/openapi.json POST /banking/cashout/utility/pay/v2 Generate a utility payment using the v2 endpoint # Authorize payment Source: https://docs.trio.com.br/api-reference/banking-api/receivables/biometrics/authorize-payment api-reference/banking-api/receivables/biometrics/openapi.json POST /banking/cashin/pix/biometrics/enrollments/{enrollment_id}/payments/{payment_id}/authorize Authorizes a payment using a FIDO assertion. # Create enrollment Source: https://docs.trio.com.br/api-reference/banking-api/receivables/biometrics/create-enrollment api-reference/banking-api/receivables/biometrics/openapi.json POST /banking/cashin/pix/biometrics/enrollments Creates a biometrics enrollment for a device in a participant. # Create payment from enrollment Source: https://docs.trio.com.br/api-reference/banking-api/receivables/biometrics/create-payment api-reference/banking-api/receivables/biometrics/openapi.json POST /banking/cashin/pix/biometrics/enrollments/{enrollment_id}/payments Creates a payment initiation for a biometrics enrollment. # Find or create device Source: https://docs.trio.com.br/api-reference/banking-api/receivables/biometrics/find-or-create-device api-reference/banking-api/receivables/biometrics/openapi.json POST /banking/cashin/pix/biometrics/devices Finds or creates a biometrics device associated with a counterparty. # Get payment authorization options Source: https://docs.trio.com.br/api-reference/banking-api/receivables/biometrics/get-authorization-options api-reference/banking-api/receivables/biometrics/openapi.json GET /banking/cashin/pix/biometrics/enrollments/{enrollment_id}/payments/{payment_id}/credentials Returns FIDO authorization options for a payment. # Get payment status Source: https://docs.trio.com.br/api-reference/banking-api/receivables/biometrics/get-payment api-reference/banking-api/receivables/biometrics/openapi.json GET /banking/cashin/pix/biometrics/enrollments/{enrollment_id}/payments/{payment_id} Returns the current status of a biometric payment. # Get enrollment registration options Source: https://docs.trio.com.br/api-reference/banking-api/receivables/biometrics/get-registration-options api-reference/banking-api/receivables/biometrics/openapi.json GET /banking/cashin/pix/biometrics/enrollments/{enrollment_id}/credentials Returns FIDO registration options for the enrollment. # List enrollments Source: https://docs.trio.com.br/api-reference/banking-api/receivables/biometrics/list-enrollments api-reference/banking-api/receivables/biometrics/openapi.json GET /banking/cashin/pix/biometrics/enrollments Retrieves a list of biometrics enrollments for a given device. # List participants Source: https://docs.trio.com.br/api-reference/banking-api/receivables/biometrics/list-participants api-reference/banking-api/receivables/biometrics/openapi.json GET /banking/cashin/pix/biometrics/participants Lists participants for a device with optional enrollment info. # Register enrollment credential Source: https://docs.trio.com.br/api-reference/banking-api/receivables/biometrics/register-credential api-reference/banking-api/receivables/biometrics/openapi.json POST /banking/cashin/pix/biometrics/enrollments/{enrollment_id}/register Registers a FIDO credential for the enrollment. # Cancel boleto Source: https://docs.trio.com.br/api-reference/banking-api/receivables/boletos/cancel api-reference/banking-api/openapi.json PUT /banking/cashin/boletos/{id}/cancel Cancel a boleto # Get boleto Source: https://docs.trio.com.br/api-reference/banking-api/receivables/boletos/get api-reference/banking-api/openapi.json GET /banking/cashin/boletos/{id} Get a boleto by ID # List boletos Source: https://docs.trio.com.br/api-reference/banking-api/receivables/boletos/list api-reference/banking-api/openapi.json GET /banking/cashin/boletos List all boletos # Create boleto Source: https://docs.trio.com.br/api-reference/banking-api/receivables/boletos/post api-reference/banking-api/openapi.json POST /banking/cashin/boletos Creates a boleto # Update boleto Source: https://docs.trio.com.br/api-reference/banking-api/receivables/boletos/update api-reference/banking-api/openapi.json PUT /banking/cashin/boletos/{id} Updates a boleto # Get dynamic QR code Source: https://docs.trio.com.br/api-reference/banking-api/receivables/qrcode-dynamic/get api-reference/banking-api/openapi.json GET /banking/cashin/pix/qrcodes/{id} Gets a dynamic QR code by ID # Get dynamic QR code hash Source: https://docs.trio.com.br/api-reference/banking-api/receivables/qrcode-dynamic/get-hash api-reference/banking-api/openapi.json GET /banking/cashin/pix/qrcodes/{id}/hash Gets a dynamic QR code hash by ID # Get dynamic QR code image Source: https://docs.trio.com.br/api-reference/banking-api/receivables/qrcode-dynamic/get-image api-reference/banking-api/openapi.json GET /banking/cashin/pix/qrcodes/{id}/image Gets a dynamic QR code image by ID # Create dynamic QR code Source: https://docs.trio.com.br/api-reference/banking-api/receivables/qrcode-dynamic/post api-reference/banking-api/openapi.json POST /banking/cashin/pix/qrcodes Creates a dynamic QR code # Get static QR code Source: https://docs.trio.com.br/api-reference/banking-api/receivables/qrcode-static/get api-reference/banking-api/openapi.json GET /banking/cashin/pix/qrcodes/static/{id} Gets a static QR code by ID # Get static QR code hash Source: https://docs.trio.com.br/api-reference/banking-api/receivables/qrcode-static/get-hash api-reference/banking-api/openapi.json GET /banking/cashin/pix/qrcodes/static/{id}/hash Gets a static QR code hash by ID # Get static QR code image Source: https://docs.trio.com.br/api-reference/banking-api/receivables/qrcode-static/get-image api-reference/banking-api/openapi.json GET /banking/cashin/pix/qrcodes/static/{id}/image Gets a static QR code image by ID # Create static QR code Source: https://docs.trio.com.br/api-reference/banking-api/receivables/qrcode-static/post api-reference/banking-api/openapi.json POST /banking/cashin/pix/qrcodes/static Creates a static QR code # Cancel Collection Source: https://docs.trio.com.br/api-reference/banking-api/receivables/recurrences/cancel-collection api-reference/banking-api/openapi.json POST /banking/cashin/pix/recurrences/collections/{id}/cancel Cancel recurrence collection # Cancel Recurrence Source: https://docs.trio.com.br/api-reference/banking-api/receivables/recurrences/cancel-recurrence api-reference/banking-api/openapi.json POST /banking/cashin/pix/recurrences/{id}/cancel Cancel recurrence by ID # Create Next Collection Source: https://docs.trio.com.br/api-reference/banking-api/receivables/recurrences/create-next-collection api-reference/banking-api/openapi.json POST /banking/cashin/pix/recurrences/collections/create_next_collection Create the next recurrence collection # Generate a Recurrence Source: https://docs.trio.com.br/api-reference/banking-api/receivables/recurrences/generate-recurrence api-reference/banking-api/openapi.json POST /banking/cashin/pix/recurrences Generate a recurrence # Get Collection Source: https://docs.trio.com.br/api-reference/banking-api/receivables/recurrences/get-collection api-reference/banking-api/openapi.json GET /banking/cashin/pix/recurrences/collections/{id} Get recurrence collection # Get Collection Attempt Source: https://docs.trio.com.br/api-reference/banking-api/receivables/recurrences/get-collection-attempt api-reference/banking-api/openapi.json GET /banking/cashin/pix/recurrences/collections/attempts/{id} Get recurrence collection attempt # Get Recurrence Source: https://docs.trio.com.br/api-reference/banking-api/receivables/recurrences/get-recurrence api-reference/banking-api/openapi.json GET /banking/cashin/pix/recurrences/{id} Get recurrence with stages # Get Recurrence Request Source: https://docs.trio.com.br/api-reference/banking-api/receivables/recurrences/get-recurrence-request api-reference/banking-api/openapi.json GET /banking/cashin/pix/recurrences/requests/{id} Get recurrence request # List Collection Attempts Source: https://docs.trio.com.br/api-reference/banking-api/receivables/recurrences/list-collection-attempts api-reference/banking-api/openapi.json GET /banking/cashin/pix/recurrences/collections/attempts List recurrence collection attempts with parameters # List Recurrence Collections Source: https://docs.trio.com.br/api-reference/banking-api/receivables/recurrences/list-recurrence-collections api-reference/banking-api/openapi.json GET /banking/cashin/pix/recurrences/collections List recurrence collections with parameters # List Recurrences Source: https://docs.trio.com.br/api-reference/banking-api/receivables/recurrences/list-recurrences api-reference/banking-api/openapi.json GET /banking/cashin/pix/recurrences List recurrences with parameters # Schedule Collection Source: https://docs.trio.com.br/api-reference/banking-api/receivables/recurrences/schedule-collection api-reference/banking-api/openapi.json POST /banking/cashin/pix/recurrences/collections/{id}/schedule Schedule collection # Update Collection Source: https://docs.trio.com.br/api-reference/banking-api/receivables/recurrences/update-collection api-reference/banking-api/openapi.json PUT /banking/cashin/pix/recurrences/collections/{id} Update recurrence collection # Refund Pix Source: https://docs.trio.com.br/api-reference/banking-api/receivables/refunds/post api-reference/banking-api/openapi.json POST /banking/cashin/documents/{id}/refund Refund a collecting document # Transfer Source: https://docs.trio.com.br/api-reference/banking-api/transfers/transfer api-reference/banking-api/openapi.json POST /banking/cashout/transfer Transfer amount between virtual accounts # Get Virtual Account Source: https://docs.trio.com.br/api-reference/banking-api/virtual-accounts/get-virtual-account api-reference/banking-api/openapi.json GET /banking/virtual_accounts/{id} Get a virtual account by ID # Get Virtual Account Balances Source: https://docs.trio.com.br/api-reference/banking-api/virtual-accounts/get-virtual-account-balances api-reference/banking-api/openapi.json GET /banking/virtual_accounts/{id}/balances Get balances for a virtual account # List Virtual Account Transactions Source: https://docs.trio.com.br/api-reference/banking-api/virtual-accounts/list-virtual-account-transactions api-reference/banking-api/openapi.json GET /banking/virtual_accounts/{id}/transactions List transactions for a virtual account # List Virtual Accounts Source: https://docs.trio.com.br/api-reference/banking-api/virtual-accounts/list-virtual-accounts api-reference/banking-api/openapi.json GET /banking/virtual_accounts List all virtual accounts # Update Virtual Account Source: https://docs.trio.com.br/api-reference/banking-api/virtual-accounts/update-virtual-account api-reference/banking-api/openapi.json PUT /banking/virtual_accounts/{id} Update a virtual account # Authentication Source: https://docs.trio.com.br/developers/authentication Trio uses [basic authentication](https://en.wikipedia.org/wiki/Basic_access_authentication) to authenticate the API. You can create `sandbox` and `production` client secret keys in the developer console. We're also offering a company unique identifier to be used as username in the authentication process. Use your company unique identifier (client\_id) as username and generated secret key (client\_secret) as password to authenticate: ```text theme={null} curl https://api.sandbox.trio.com.br/banking/entities \ -H "Content-Type: application/json" \ -u {client_id}:{client_secret} ``` # Concepts Source: https://docs.trio.com.br/developers/concepts Before we get into on how to programmatically move money, it's important that you learn some core concepts and aspects of our API and how your business could fit within our solution. ### **Company** A company object represents a top-level structure from your business and can be composed by one or more legal entities. As a company, you are able to add multiple users with varying permissions, monitor API logs and so on. ### **Entity** The entity object represents a legal entity from your company, it represents a Brazilian entity with their own CNPJ. Each entity may hold one or more bank accounts. ### **Bank account** A bank account is a valid account that holds and moves money. Throughout our bank accounts, it is possible to look at balances, transactions and movement in real time. In order to move money within a bank account. ### **Virtual account** A virtual account is the core of everything we do at Trio. It's a layer below the standard bank account. It can receive incoming payments in place of a bank account, and divide up the balance of the linked bank account. Moreover, a virtual account reports its own balance and transactions. ### **Documents** A document can be interpreted as a transaction inside Trio. It can be a payment or collecting document. Every time that there is money movement in your account, this transaction will have a document representing it. # Date & Time Source: https://docs.trio.com.br/developers/date-and-time All dates and times managed and returned by our API are represented in the Coordinated Universal Time (UTC) timezone and adhere to the ISO 8601 format. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) is an internationally recognized standard for representing date and time in a human-readable and machine-parsable manner. ### **Format** The ISO 8601 format for date and time representation follows this pattern: `YYYY-MM-DDTHH:mm:ssZ` Where: * YYYY represents the 4-digit year * MM represents the 2-digit month (01-12) * DD represents the 2-digit day of the month (01-31) * T is the separator between the date and time components * HH represents the 2-digit hour (00-23) * mm represents the 2-digit minute (00-59) * ss represents the 2-digit second (00-59) * Z indicates that the date and time are in the Coordinated Universal Time (UTC) #### **Example** An example of a date and time represented in the ISO 8601 format: `2023-03-21T14:30:00Z` This represents the date and time: March 21, 2023, 14:30:00 (UTC). # Environments Source: https://docs.trio.com.br/developers/environments In order to better serve your development team and facilitate a smooth development and testing process, we offer two distinct environments: `production` and `sandbox`. Each environment has its own base URL, which is used when making API requests. ### **Production Environment** The `production` environment is the live environment where your application will interact with our API when it is deployed and running for end users. This environment provides access to real data and should be used with care to prevent unintended actions or data manipulation. #### **Base URL:** > [https://api.trio.com.br](https://api.trio.com.br) ### **Sandbox Environment** The `sandbox` environment is a separate, isolated environment designed specifically for development, testing, and experimentation purposes. This environment allows your development team to work with our API without affecting real data or causing unintended consequences in the production environment. #### **Base URL:** > [https://api.sandbox.trio.com.br](https://api.sandbox.trio.com.br) ### **Switching Between Environments** When developing your application, it is crucial to ensure that the appropriate base URL is used for each environment. Typically, this can be achieved by using environment-specific configuration files or environment variables. When transitioning from development and testing to deployment, make sure to update your application's configuration to use the production environment's base URL. This ensures that your application interacts with the correct environment and real data when it is live. # Error table Source: https://docs.trio.com.br/developers/error-table We try to handle the errors and mistakes beautifully as possible. So we use HTTP codes convention to group the errors: * `2xx` status codes confirm that your request worked as expected * `4xx` status codes indicate that the request failed due some invalid information or a validation error * `5xx` status codes are use when something went wrong at Trio servers and systems. To better error handling during the integration, we always return the errors in the response body using the following fields: Example for credentials erros ```json theme={null} { "error": "Invalid credentials" } ``` All erros example ```json theme={null} { "error": { "error_code": "UNAUTHORIZED_RESOURCE", "error_message": "Resource being accessed is unauthorized." } } ``` ### HTTP status codes summary
| Code | Type | Description |
|---|---|---|
| 200 | Success | Everything worked as expected. |
| 201 | Success | Resource created successfully. |
| 204 | Success | Everything worked as expected with empty body |
| 400 | Bad request | Request returned an error, detail in content. |
| 401 | Unauthorized | Invalid authentication credentials. |
| 404 | Not Found | The requested resource was not found. |
| 408 | Timeout | The request timed out and was terminated by the server. |
| 429 | Too Many Requests | Too many concurrent requests |
| 500 | Server Error | Something went wrong in Trio's infrastructure. |
| Code | Status | Message |
|---|---|---|
| TRIO\_SERVICE\_UNAVAILABLE | 503 | Serviço indisponível |
| TRIO\_SERVICE\_REQUEST\_TIMED\_OUT | 408 | Timeout |
| TRIO\_SERVICE\_REQUEST\_METHOD\_FORBIDDEN | 405 | Método não permitido |
| ALREADY\_EXISTS\_RESOURCE | 400 | Já existe um para a referência informada. |
| INVALID\_RESOURCE | 400 | é inválido. |
| NOT\_FOUND\_RESOURCE | 404 | não foi encontrado. |
| INVALID\_PARAMETER | 400 | Campo é inválido. |
| REQUIRED\_PARAMETER | 400 | Campo é obrigatório. |
| Code | Status | Message |
|---|---|---|
| INTEGRATION\_ERROR | 500 | Ocorreu um erro inesperado na integração bancária. |
| INTEGRATION\_TIMEOUT | 408 | O tempo de integração bancária foi maior que o esperado. |
| Code | Status | Message |
|---|---|---|
| ENTITY\_IN\_ANALYSIS | 404 | Entidade está em análise, aguarde a aprovação. Referência: #. |
| ENTITY\_INVALID\_CURRENCY | 400 | Moeda da transação diferente da informada na entidade. Utilize a moeda #. |
| ENTITY\_INVALID\_ADDRESS | 404 | Entidade não possui endereço válido. Referência: #. |
| BANK\_ACCOUNT\_IN\_ANALYSIS | 404 | Conta bancária está em análise, aguarde a aprovação. Referência: #. |
| BANK\_ACCOUNT\_DAILY\_TRANS\_LIMIT\_REACHED | 400 | Limite diário de transações atingido. |
| BANK\_ACCOUNT\_DAILY\_AMOUNT\_LIMIT\_REACHED | 400 | Limite diário de valor de transações atingido. |
| BANK\_ACCOUNT\_OVERNIGHT\_TRANS\_LIMIT\_REACHED | 400 | Limite noturno de transações atingido. |
| BANK\_ACCOUNT\_OVERNIGHT\_AMOUNT\_LIMIT\_REACHED | 400 | Limite noturo de valor de transações atingido. |
| BANK\_ACCOUNT\_MIN\_SINGLE\_TRANS\_AMOUNT\_REACHED | 400 | Limite mínimo do valor da transação não foi atingido. |
| BANK\_ACCOUNT\_MAX\_SINGLE\_TRANS\_AMOUNT\_REACHED | 400 | Limite máximo do valor da transação atingido. |
| BANK\_ACCOUNT\_MAX\_COUNTERPARTY\_TRANS\_REACHED | 400 | Limite diário de transações para uma contrapartida atingido. |
| BANK\_ACCOUNT\_MAX\_COUNTERPARTY\_AMOUNT\_REACHED | 400 | Limite diário de valor de transações para uma contrapartida atingido. |
| PIX\_KEY\_CANCELED | 400 | Chave Pix está cancelada. Referência: #. |
| PIX\_KEY\_CONFIRMED | 400 | Chave Pix já foi confirmada. Referência: #. |
| PIX\_KEY\_ALREADY\_EXISTS | 400 | Já existe uma chave Pix criada ou confirmada. Referência: #. |
| PIX\_KEY\_INVALID\_KEY | 400 | -- |
| PIX\_KEY\_REQUIRED | 400 | A chave deve ser informada quando o tipo é 'random\_key'. |
| PIX\_KEY\_INVALID\_TYPE | 400 | O tipo deve ser: 'tax\_number', 'email', 'phone' ou 'random\_key.' |
| PIX\_KEY\_CONFIRMATION\_TYPE\_INVALID | 400 | Confirmação com código deve ser executada somente para chaves Pix do tipo: 'email' ou 'phone'. |
| PIX\_KEY\_PENDING | 404 | Chave Pix não foi confirmada. Referência: #. |
| COLLECTING\_DOCUMENT\_NOT\_SETTLED | 400 | Documento de recebimento não está liquidado. Referência: #. |
| COLLECTING\_DOCUMENT\_WITHOUT\_BALANCE | 400 | Valor da devolução #, maior que o saldo # do documento de recebimento. |
| PAYMENT\_BRCODE\_ALREADY\_USED | 400 | Brcode #, já possui um documento vinculado #. |
| PAYMENT\_AMOUNT\_ERROR | 400 | Valor de pagamento # deve ser igual ao valor do brcode #, valor #. |
| PAYMENT\_ACCOUNT\_WITHOUT\_BALANCE | 400 | Saldo insuficiente para executar o pagamento. Saldo atual #. |
| QUERY\_LIMIT\_REACHED | 400 | Limite de consultas atingido. Tente novamente em 1 minuto. |
| KEY\_NOT\_FOUND | 404 | Chave Pix não foi encontrada. Referência: . |
| BRCODE\_NOT\_FOUND | 404 | Brcode não foi encontrado. Referência: . |
| KEY\_NOT\_FOUND\_MULTI\_ATTEMPTS | 404 | Chave Pix não foi encontrada. Crie a chave e tente novamente em 1 hora. Referência: . |
| VIRTUAL\_TRANSFER\_DIFFERENT\_BANK\_ACCOUNT | 400 | Conta bancária das contas virtuais origem e destino são diferentes. Para transferências virtuais devem ser a mesma. |
| Compliance rule | Editable? | Possible situation |
|---|---|---|
| Unidentified deposits | Yes | When a payment is done via the bank account directly or via the bank account's Pix key, we block the payment so you can know exactly who the money came from. |
| Deposits from duplicated QR code payments | Yes | When a payment is done twice to the same QR Code, we block the payment, so each payment can be received separately in order to avoid confusion. |
| Deposits with value different from dynamic QR code | Yes | When a payment is done with an amount different from the initially stated in the QR Code. Useful for controlling the exact amount of transactions, and avoiding the need to create two QR Codes for the same transaction. We tend to recommend clients to always leave this parameter on. |
| Deposits with tax number different from dynamic QR code | Yes | When a payment is done by an individual with a tax number different from the tax number initially set in the QR Code creation. |
| Deposits with bank accounts different from dynamic QR code | Yes | When a payment is done by a bank account different from the bank accounts initially set in the QR Code creation. |
| Deposits from legal entities | Yes | When a payment is not done by an individual with a natural person tax number (CPF in Brazil), but from a legal entity with a legal tax number (CNPJ in Brazil). |
| Deposits from unauthorized participants | Yes | When payment is done by an institution that is not authorized by the Central Bank of Brazil |
| Compliance rule | Editable? | Possible situation |
|---|---|---|
| Unidentified deposits | Yes | When a payment is done via the bank account directly or via the bank account's Pix key, we block the payment so you can know exactly who the money came from. |
| Deposits from duplicated QR code payments | Yes | When a payment is done twice to the same QR Code, we block the payment, so each payment can be received separately in order to avoid confusion. |
| Deposits with value different from dynamic QR code | Yes | When a payment is done with an amount different from the initially stated in the QR Code. Useful for controlling the exact amount of transactions, and avoiding the need to create two QR Codes for the same transaction. We tend to recommend clients to always leave this parameter on. |
| Deposits with tax number different from dynamic QR code | Yes | When a payment is done by an individual with a tax number different from the tax number initially set in the QR Code creation. |
| Deposits with bank accounts different from dynamic QR code | Yes | When a payment is done by a bank account different from the bank accounts initially set in the QR Code creation. |
| Deposits from legal entities | Yes | When a payment is not done by an individual with a natural person tax number (CPF in Brazil), but from a legal entity with a legal tax number (CNPJ in Brazil). |
| Deposits from unauthorized participants | Yes | When payment is done by an institution that is not authorized by the Central Bank of Brazil |
| Compliance rule | Editable? | Possible situation |
|---|---|---|
| Block payouts to legal entities | Yes | When attempting to make a payment to an account that belongs to a legal entity represented by a legal tax number (CNPJ in Brasil). |
| Block payouts to different tax number | Yes | When attempting to pay out an account that not belongs to the tax number informed on the payload field: reference\_tax\_number |
| Block payouts to different bank accounts | Yes | When attempting to pay out an account that not informed on the payload field: reference\_bank\_accounts |
| Compliance rule | Editable? | Possible situation |
|---|---|---|
| Unidentified deposits | Yes | When a payment is done via the bank account directly or via the bank account's Pix key, we block the payment so you can know exactly who the money came from. |
| Deposits from duplicated QR code payments | Yes | When a payment is done twice to the same QR Code, we block the payment, so each payment can be received separately in order to avoid confusion. |
| Deposits with value different from dynamic QR code | Yes | When a payment is done with an amount different from the initially stated in the QR Code. Useful for controlling the exact amount of transactions, and avoiding the need to create two QR Codes for the same transaction. We tend to recommend clients to always leave this parameter on. |
| Deposits with tax number different from dynamic QR code | Yes | When a payment is done by an individual with a tax number different from the tax number initially set in the QR Code creation. |
| Deposits with bank accounts different from dynamic QR code | Yes | When a payment is done by a bank account different from the bank accounts initially set in the QR Code creation. |
| Deposits from legal entities | Yes | When a payment is not done by an individual with a natural person tax number (CPF in Brazil), but from a legal entity with a legal tax number (CNPJ in Brazil). |
| Deposits from unauthorized participants | Yes | When payment is done by an institution that is not authorized by the Central Bank of Brazil |
| Compliance rule | Editable? | Possible situation |
|---|---|---|
| Block payouts to legal entities | Yes | When attempting to make a payment to an account that belongs to a legal entity represented by a legal tax number (CNPJ in Brasil). |
| Block payouts to different tax number | Yes | When attempting to pay out an account that not belongs to the tax number informed on the payload field: reference\_tax\_number |
| Block payouts to different bank accounts | Yes | When attempting to pay out an account that not informed on the payload field: reference\_bank\_accounts |
| Compliance rule | Editable? | Possible situation |
|---|---|---|
| Block payouts to legal entities | Yes | When attempting to make a payment to an account that belongs to a legal entity represented by a legal tax number (CNPJ in Brasil). |
| Block payouts to different tax number | Yes | When attempting to pay out an account that not belongs to the tax number informed on the payload field: reference\_tax\_number |
| Block payouts to different bank accounts | Yes | When attempting to pay out an account that not informed on the payload field: reference\_bank\_accounts |
| Compliance rule | Editable? | Possible situation |
|---|---|---|
| Block payouts to legal entities | Yes | When attempting to make a payment to an account that belongs to a legal entity represented by a legal tax number (CNPJ in Brasil). |
| Block payouts to different tax number | Yes | When attempting to pay out an account that not belongs to the tax number informed on the payload field: reference\_tax\_number |
| Block payouts to different bank accounts | Yes | When attempting to pay out an account that not informed on the payload field: reference\_bank\_accounts |
| Type | Description |
|---|---|
| created | A collecting document refund was created. |
| settled | A collecting document refund was successfully settled and registered. |
| failed | A collecting document refund has failed due to an error. |
| Type | Description |
|---|---|
| created | A biometrics payment has been created. |
| awaiting\_consent | The payment is waiting for the customer to authorize via biometrics (WebAuthn). |
| awaiting\_payment | Biometric authorization completed, the bank is processing the payment. |
| settled | The payment was completed successfully. |
| rejected | The payment was rejected by the participant. |
| failed | The payment failed due to an error. |
| Type | Description |
|---|---|
| created | A payment document has been created. |
| settled | A payment document was confirmed and successfully registered. |
| failed | A payment document was sent and not processed due to invalid information or declined by the bank. |
| Type | Description |
|---|---|
| settled | A refund payment document was successfully settled. |
| Type | Description |
|---|---|
| created | A recurrence was created. |
| approved | A recurrence was approved. |
| rejected | A recurrence was rejected. |
| expired | A recurrence was expired. |
| cancelled | A recurrence was cancelled. |
| Type | Description |
|---|---|
| requested | A recurrence collection's attempt was created. |
| scheduled | A recurrence collection's attempt was scheduled. |
| settled | A recurrence collection's attempt was settled. |
| cancelled | A recurrence collection's attempt was cancelled. |
| rejected | A recurrence collection's attempt was rejected. |
| expired | A recurrence collection's attempt was expired. |
| failed | A recurrence collection's attempt was failed. |
| Type | Description |
|---|---|
| created | A recurrence's collection was created. |
| active | A recurrence's collection was active. |
| settled | A recurrence's collection was settled. |
| expired | A recurrence's collection was expired. |
| rejected | A recurrence's collection was rejected. |
| cancelled | A recurrence's collection was cancelled. |
| Type | Description |
|---|---|
| settled | A transfer document was confirmed and successfully registered. |