Get lifetime or current-period usage and entitlement status
const url = 'https://api.invogi.com/v1/billing/usage';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.invogi.com/v1/billing/usage \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”For a Clerk session, selects a workspace in which the user has an active membership. If omitted, the remembered accessible workspace is used. API keys remain bound to their own workspace and cannot select another tenant.
Responses
Section titled “Responses”Usage summary
object
Owner-set ceiling on invoice units above the included volume per billing period; null means overage is automatic and uncapped
True once included volume plus the overage limit is used; new invoices are then refused with USAGE_LIMIT_EXCEEDED
Free plans - rows remain; paid plans - the 60-day historical-onboarding window is open
Free plan only - rows left in the 500-invoice lifetime history allowance; null on paid plans
Paid plans - earliest invoice date included in historical onboarding
Paid plans - invoices must be dated before this subscription-activation date
Paid plans - deadline for importing included onboarding history
True while a free workspace has invoice units left (kept for existing clients)
Free plan only - of the 500 invoice units in total
Example
{ "currency_code": "GBP", "reference_validation_mode": "OFF"}Missing or invalid API key