Revenue Traceability
List revenue items
Lists the revenue that the revenue traceabilities tag in a period of up to three months, ordered by the start date of the revenue traceability, the most recent first. Each revenue traceability whose dates overlap the period gives one item for each month and billing account of the invoices of its contract that were issued and are not canceled, in the status issued, synced, pending, paid, overdue or failed, and dated both in the period and inside the dates of the revenue traceability. The item sums, in cents, the line items of the product of the revenue traceability on those invoices. A revenue traceability with no such invoice gives one item with an amount of zero.
Requires the role contracts:admin.
GET
/
v1
/
revenue-items
/
List revenue items
curl --request GET \
--url https://api.useaira.com/v1/revenue-items/ \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.useaira.com/v1/revenue-items/"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.useaira.com/v1/revenue-items/', 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.useaira.com/v1/revenue-items/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$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.useaira.com/v1/revenue-items/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
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.useaira.com/v1/revenue-items/")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.useaira.com/v1/revenue-items/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"items": [
{
"period": "2026-02",
"proposal": "PROP-2026-014",
"amountCents": 123,
"customer": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Padaria Central Ltda",
"externalId": "705faf65-9c8b-4053-8c0b-2021281ce83f",
"taxId": "01234567000195",
"taxIdType": "cnpj"
},
"product": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Platform subscription",
"customFields": {
"customField1": "value1",
"customField2": [
"value2",
"value3"
]
}
}
}
],
"hasMore": true
}
Query Parameters
⌘I
List revenue items
curl --request GET \
--url https://api.useaira.com/v1/revenue-items/ \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.useaira.com/v1/revenue-items/"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.useaira.com/v1/revenue-items/', 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.useaira.com/v1/revenue-items/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$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.useaira.com/v1/revenue-items/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
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.useaira.com/v1/revenue-items/")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.useaira.com/v1/revenue-items/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"items": [
{
"period": "2026-02",
"proposal": "PROP-2026-014",
"amountCents": 123,
"customer": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Padaria Central Ltda",
"externalId": "705faf65-9c8b-4053-8c0b-2021281ce83f",
"taxId": "01234567000195",
"taxIdType": "cnpj"
},
"product": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Platform subscription",
"customFields": {
"customField1": "value1",
"customField2": [
"value2",
"value3"
]
}
}
}
],
"hasMore": true
}