curl --request GET \
--url https://api.sandbox.trio.com.br/v2/documents/in \
--header 'Authorization: Basic <encoded-value>' \
--header 'Trio-Version: <trio-version>'import requests
url = "https://api.sandbox.trio.com.br/v2/documents/in"
headers = {
"Trio-Version": "<trio-version>",
"Authorization": "Basic <encoded-value>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Trio-Version': '<trio-version>', Authorization: 'Basic <encoded-value>'}
};
fetch('https://api.sandbox.trio.com.br/v2/documents/in', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.trio.com.br/v2/documents/in",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Trio-Version: <trio-version>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.trio.com.br/v2/documents/in"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Trio-Version", "<trio-version>")
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.trio.com.br/v2/documents/in")
.header("Trio-Version", "<trio-version>")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.trio.com.br/v2/documents/in")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Trio-Version"] = '<trio-version>'
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"data": [
{
"amount": {
"amount": 100,
"currency": "BRL"
},
"bank_account_id": "019ddfe9-e64b-b642-36fd-efdaef77d05e",
"counterparty": {
"bank_account_id": "0008d49c-e6d5-a58e-a742-449e9b38f795",
"id": "0008d49c-e6d5-4d86-232a-a6f4b9138f10",
"name": "John Doe",
"tax_number": "***982247**"
},
"description": "",
"end_to_end_id": "E60746948202610072016A0049Tfmiks",
"external_id": "01M4C040NGQ5VKGKZRR3SXRZ7E",
"id": "01a11802-3da7-052e-3f8f-19cfe127e4b8",
"inserted_at": "2026-10-07T20:16:02.471297Z",
"origin": {
"id": "d4abaabe-5ebf-4628-ba34-5a1b17da4c6b",
"type": "console_user"
},
"receipt_url": "https://receipts.trio.com.br/019489e6-f64f-5cfe-770b-79b671ec66f0/in/01a11802-3da7-052e-3f8f-19cfe127e4b8",
"reconciliation_id": "01a11802-3da7-09df-060e-0ca0747a1876",
"reference": {
"id": "01a11802-b618-fcd7-94f4-88f533fe41cc",
"type": "pix_qrcode"
},
"refunds": [],
"stages": [
{
"error_code": null,
"error_message": null,
"id": "01a11802-3da7-2381-58a7-54b90a2ffa9a",
"inserted_at": "2026-10-07T20:17:02.479108Z",
"status": "created"
},
{
"error_code": null,
"error_message": null,
"id": "01a11802-3da7-af9b-756c-9522bbd3b87f",
"inserted_at": "2026-10-07T20:17:03.475249Z",
"status": "settled"
}
],
"status": "settled",
"transaction_date": "2026-10-07T20:17:02.795000Z",
"type": "pix",
"updated_at": "2026-10-07T20:17:03.475249Z"
}
],
"metadata": {
"after": null,
"before": null,
"has_more": false
}
}{
"error": {
"error_code": "INVALID_PARAMETER",
"error_message": "Invalid parameters: /amount: Invalid integer. Got: string",
"errors": [
{
"field": "/amount",
"message": "Invalid integer. Got: string"
}
]
}
}{
"error": {
"error_code": "INVALID_PARAMETER",
"error_message": "Invalid parameters: /amount: Invalid integer. Got: string",
"errors": [
{
"field": "/amount",
"message": "Invalid integer. Got: string"
}
]
}
}{
"error": {
"error_code": "INVALID_PARAMETER",
"error_message": "Invalid parameters: /amount: Invalid integer. Got: string",
"errors": [
{
"field": "/amount",
"message": "Invalid integer. Got: string"
}
]
}
}{
"error": {
"error_code": "INVALID_PARAMETER",
"error_message": "Invalid parameters: /amount: Invalid integer. Got: string",
"errors": [
{
"field": "/amount",
"message": "Invalid integer. Got: string"
}
]
}
}{
"error": {
"error_code": "INVALID_PARAMETER",
"error_message": "Invalid parameters: /amount: Invalid integer. Got: string",
"errors": [
{
"field": "/amount",
"message": "Invalid integer. Got: string"
}
]
}
}List Receivables
List all in documents
curl --request GET \
--url https://api.sandbox.trio.com.br/v2/documents/in \
--header 'Authorization: Basic <encoded-value>' \
--header 'Trio-Version: <trio-version>'import requests
url = "https://api.sandbox.trio.com.br/v2/documents/in"
headers = {
"Trio-Version": "<trio-version>",
"Authorization": "Basic <encoded-value>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Trio-Version': '<trio-version>', Authorization: 'Basic <encoded-value>'}
};
fetch('https://api.sandbox.trio.com.br/v2/documents/in', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.trio.com.br/v2/documents/in",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Trio-Version: <trio-version>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.trio.com.br/v2/documents/in"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Trio-Version", "<trio-version>")
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.trio.com.br/v2/documents/in")
.header("Trio-Version", "<trio-version>")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.trio.com.br/v2/documents/in")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Trio-Version"] = '<trio-version>'
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"data": [
{
"amount": {
"amount": 100,
"currency": "BRL"
},
"bank_account_id": "019ddfe9-e64b-b642-36fd-efdaef77d05e",
"counterparty": {
"bank_account_id": "0008d49c-e6d5-a58e-a742-449e9b38f795",
"id": "0008d49c-e6d5-4d86-232a-a6f4b9138f10",
"name": "John Doe",
"tax_number": "***982247**"
},
"description": "",
"end_to_end_id": "E60746948202610072016A0049Tfmiks",
"external_id": "01M4C040NGQ5VKGKZRR3SXRZ7E",
"id": "01a11802-3da7-052e-3f8f-19cfe127e4b8",
"inserted_at": "2026-10-07T20:16:02.471297Z",
"origin": {
"id": "d4abaabe-5ebf-4628-ba34-5a1b17da4c6b",
"type": "console_user"
},
"receipt_url": "https://receipts.trio.com.br/019489e6-f64f-5cfe-770b-79b671ec66f0/in/01a11802-3da7-052e-3f8f-19cfe127e4b8",
"reconciliation_id": "01a11802-3da7-09df-060e-0ca0747a1876",
"reference": {
"id": "01a11802-b618-fcd7-94f4-88f533fe41cc",
"type": "pix_qrcode"
},
"refunds": [],
"stages": [
{
"error_code": null,
"error_message": null,
"id": "01a11802-3da7-2381-58a7-54b90a2ffa9a",
"inserted_at": "2026-10-07T20:17:02.479108Z",
"status": "created"
},
{
"error_code": null,
"error_message": null,
"id": "01a11802-3da7-af9b-756c-9522bbd3b87f",
"inserted_at": "2026-10-07T20:17:03.475249Z",
"status": "settled"
}
],
"status": "settled",
"transaction_date": "2026-10-07T20:17:02.795000Z",
"type": "pix",
"updated_at": "2026-10-07T20:17:03.475249Z"
}
],
"metadata": {
"after": null,
"before": null,
"has_more": false
}
}{
"error": {
"error_code": "INVALID_PARAMETER",
"error_message": "Invalid parameters: /amount: Invalid integer. Got: string",
"errors": [
{
"field": "/amount",
"message": "Invalid integer. Got: string"
}
]
}
}{
"error": {
"error_code": "INVALID_PARAMETER",
"error_message": "Invalid parameters: /amount: Invalid integer. Got: string",
"errors": [
{
"field": "/amount",
"message": "Invalid integer. Got: string"
}
]
}
}{
"error": {
"error_code": "INVALID_PARAMETER",
"error_message": "Invalid parameters: /amount: Invalid integer. Got: string",
"errors": [
{
"field": "/amount",
"message": "Invalid integer. Got: string"
}
]
}
}{
"error": {
"error_code": "INVALID_PARAMETER",
"error_message": "Invalid parameters: /amount: Invalid integer. Got: string",
"errors": [
{
"field": "/amount",
"message": "Invalid integer. Got: string"
}
]
}
}{
"error": {
"error_code": "INVALID_PARAMETER",
"error_message": "Invalid parameters: /amount: Invalid integer. Got: string",
"errors": [
{
"field": "/amount",
"message": "Invalid integer. Got: string"
}
]
}
}Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Headers
Version of the v2 contract the client is written against. Each breaking change publishes a new version.
2026-10-19.v2 ID of another org to act on instead of the API key's own org. The key's org must have been granted access to it, and the request is refused with 403 FORBIDDEN otherwise. When that access or the API key is read-only, only GET and HEAD requests may carry it. When the target org requires mTLS, so does the request. Leave it out to act on the key's own org.
Query Parameters
Bank account ID Unique identifier
From datetime Datetime schema
To datetime Datetime schema
Counterparty tax number (CPF/CNPJ). Filters to documents whose counterparty has this tax number.
Reconciliation ID Unique identifier
How the document was initiated, as reference.type renders it
How the in document was initiated
boleto, initiation_document, manual, pix_automatic, pix_automatic_qrcode, pix_automatic_static_qrcode, pix_key, pix_payment_qrcode, pix_qrcode, pix_static_qrcode In document status
created, confirmed, kyc, settled, refunded, reversed, failed In document type
pix, boleto, ted, tef, utility, tax, internal, card, pix_internal, pix_automatic, pix_initiation, receivable, pix_boleto Parameter used for pagination. It is a base64 encoded param used to access the previous page of results. It is provided alongside a metadata section if there is a previous page.
Parameter used for pagination. It's a base64 encoded param used to access the previous page of results. Provided along with the data in the metadata section if there is a previous page.

