List invoices
/billing/invoice
Billing history for one team: every Stripe invoice mirrored into Truto, newest first. Includes invoices raised by hand in Stripe once they have been backfilled by Truto staff.
Query Parameters
05daecaf-4365-42e8-8370-8127de5dd717Filter by Stripe invoice status.
draftopenpaidvoiduncollectible
Opaque cursor from the previous page.
Response Body
25820008200001usdStripe-hosted page to view and pay the invoice.
Truto's id for the mirrored invoice row.
1ba1f401-7183-47c5-9e39-e8e257e3c795TRUTO-0042automated when Truto generated it from a plan; stripe_manual when it was raised by hand in Stripe.
automatedstripe_manual
Raw Stripe invoice status.
draftopenpaidvoiduncollectible
cus_QgZ1XkKl2m3n4oin_1PqWq2LkdIwHu7ix05daecaf-4365-42e8-8370-8127de5dd717Errors
| Status | Description |
|---|---|
403 | Forbidden if the caller is not an admin of the team |
curl -X GET 'https://api.truto.one/billing/invoice' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json'const response = await fetch('https://api.truto.one/billing/invoice', {
method: 'GET',
headers: {
'Authorization': 'Bearer <your_api_token>',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);import requests
url = "https://api.truto.one/billing/invoice"
headers = {
"Authorization": "Bearer <your_api_token>",
"Content-Type": "application/json",
}
params = {
}
response = requests.get(url, headers=headers, params=params)
print(response.json())