Export costs as FOCUS 1.2 rows
Returns the account’s costs as FOCUS 1.2 rows, one per resource, meter and day, plus one row per plan fee, add-on, tax, discount and credit.
Rows for a finalized invoice add up to that invoice. The billing cycle that has not been invoiced yet is estimated: those rows carry x_Estimated: "true" and the response has complete: false. Request the same window again after the invoice is finalized to get the final rows.
A row belongs to the window that contains its ChargePeriodStart, so consecutive windows never repeat or drop a row.
An API key reads the account it was issued for. A signed-in user reads their own account, or a team with teamId.
API key scope: billing.read
Team role permission: billing.manage
Authorizations
API key created in the dashboard under Settings → API keys. Each key carries permission scopes; every endpoint lists the scope it needs.
Query Parameters
Start of the window, ISO 8601. Required unless invoice_id is sent.
End of the window, exclusive. At most 366 days after the start. Required unless invoice_id is sent.
Export a single finalized invoice instead of a window.
Team to read. Ignored for a team API key, which always reads its own team.