List invoices
Read your account data with a system access token
Note for users in mainland China: Please use https://toapis.cn as the API endpoint (Base URL). Replace https://toapis.com with https://toapis.cn in the examples in this document.
See Getting started for authentication, pagination, and errors.
Behavior
Only a main account can read its own billing. Subaccounts receive HTTP 403. A main account cannot read member billing through this endpoint.
Defaults to 31 days with a 366-day maximum. Only the currently verified Customer is covered: meta.coverage=current_customer_only. A Customer mapping change invalidates old cursors. Amounts are decimal strings converted using Stripe currency rules: two decimals for USD/CNY, zero for JPY, three for KWD, and two for ISK/UGX compatibility. subtotal/total are invoice subtotal/total; amount_due/amount_paid/amount_remaining are due/paid/outstanding amounts. Without a reliable local order link, platform_trade_no=null; number and paid_at can also be null. No Customer ID, email, address, invoice download URL, or portal link is returned. Missing Customer mapping returns 409/15045, read failures 503/15046, and mapping conflicts 503/15047, rather than a fabricated empty list. Invoices are not local credit ledger entries.
Authentication
AuthorizationstringheaderrequiredUse Bearer YOUR_SYSTEM_ACCESS_TOKEN. Model API keys are not accepted. X-User-Id is not required.
Parameters
fromstringqueryInclusive start in RFC 3339 with a timezone. Provide together with to.
Constraints: date-time.
tostringqueryExclusive end in RFC 3339 with a timezone. Must be later than from.
Constraints: date-time.
cursorstringqueryPass the previous next_cursor unchanged and keep the same filters. Restart when filters change.
Constraints: maxLength=2048.
limitintegerquerydefault: 20Maximum number of items per page.
Constraints: minimum=1; maximum=100; Default: 20.
requestExample
curl --request GET \
--url 'https://toapis.com/api/v1/account/billing/invoices?from=2026-11-01T00:00:00Z&to=2026-11-02T00:00:00Z&limit=20' \
--header 'Authorization: Bearer YOUR_SYSTEM_ACCESS_TOKEN'import requests
response = requests.get(
"https://toapis.com/api/v1/account/billing/invoices",
headers={"Authorization": "Bearer YOUR_SYSTEM_ACCESS_TOKEN"},
params={
"from": "2026-11-01T00:00:00Z",
"to": "2026-11-02T00:00:00Z",
"limit": "20"
},
timeout=30,
)
response.raise_for_status()
print(response.json())const url = new URL("https://toapis.com/api/v1/account/billing/invoices");
url.search = new URLSearchParams({
"from": "2026-11-01T00:00:00Z",
"to": "2026-11-02T00:00:00Z",
"limit": "20"
}).toString();
const response = await fetch(url, {
headers: { Authorization: "Bearer YOUR_SYSTEM_ACCESS_TOKEN" },
signal: AbortSignal.timeout(30_000),
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}: ${await response.text()}`);
}
console.log(await response.json());Response fields
Examples use fictional data and assume credits_per_usd="100". Use the conversion rate returned by the API.
Results are in data.items. Paginate with has_more and next_cursor; the final cursor is null. No total count is returned.
codeintegerNumeric result code; 0 means success.
messagestringResponse message; empty on success. Error messages are localized.
dataobjectResult object for this query.
data.itemsobject[]Records on this page; [] when empty.
data.items[].idstringStripe invoice ID used to retrieve invoice details.
data.items[].providerstringPayment service provider. Fixed value: "stripe".
data.items[].numberstring | nullStripe invoice number, distinct from the invoice ID. null when unknown or inapplicable.
data.items[].statusstringInvoice status returned by Stripe.
data.items[].created_atstring | nullCreation time. RFC 3339 timestamp with a timezone. null when unknown or inapplicable.
data.items[].currencystringOriginal currency used by the amounts.
data.items[].subtotalstringInvoice subtotal in the original currency specified by currency. Returned as a decimal string to preserve precision.
data.items[].totalstringInvoice total in the original currency specified by currency. Returned as a decimal string to preserve precision.
data.items[].amount_duestringInvoice amount due in the original currency specified by currency. Returned as a decimal string to preserve precision.
data.items[].amount_paidstringInvoice amount paid in the original currency specified by currency. Returned as a decimal string to preserve precision.
data.items[].amount_remainingstringOutstanding invoice amount in the original currency specified by currency. Returned as a decimal string to preserve precision.
data.items[].paid_atstring | nullInvoice payment-completion time recorded by Stripe. RFC 3339 timestamp with a timezone. null when unknown or inapplicable.
data.items[].platform_trade_nonullReliably linked local top-up order number; null if the link cannot be confirmed.
data.has_morebooleanWhether another page is available.
data.next_cursorstring | nullPass this cursor unchanged with the same filters. It is null on the last page.
data.metaobjectMetadata describing the source, query scope, and accounting basis.
data.meta.sourcestringData source. Local configuration or ledger snapshots do not imply live Stripe state.
data.meta.coveragestringInvoice coverage: only the currently verified Stripe Customer, not all history.
data.meta.scopestringOwnership scope of the query: the authenticated account itself.
data.meta.fetched_atstringTime this query fetched invoice data from Stripe, not the invoice creation time.
data.meta.fromstringInclusive start of the query time range.
data.meta.tostringExclusive end of the query time range.
responseExample
{
"code": 0,
"message": "",
"data": {
"items": [
{
"id": "in_example_01",
"provider": "stripe",
"number": "EXAMPLE-0001",
"status": "paid",
"created_at": "2026-11-01T08:00:00Z",
"currency": "USD",
"subtotal": "10",
"total": "10",
"amount_due": "10",
"amount_paid": "10",
"amount_remaining": "0",
"paid_at": "2026-11-01T08:01:00Z",
"platform_trade_no": null
}
],
"has_more": false,
"next_cursor": null,
"meta": {
"source": "stripe",
"coverage": "current_customer_only",
"scope": "self",
"fetched_at": "2026-11-02T01:00:00Z",
"from": "2026-11-01T00:00:00Z",
"to": "2026-11-02T00:00:00Z"
}
}
}