Skip to content

Account and usage

Two read-only calls tell an integration which organization and key it uses, and how much of the month's volume is left.

GET /v1/account

Works with any valid key; no scope needed.

curl https://einvoiceengine.com/v1/account -H "Authorization: Bearer $EINV_KEY"
{
  "object": "account",
  "organization": { "id": "…", "name": "Example GmbH", "plan": "developer", "storeDocuments": true, "retentionDays": 30, "createdAt": "…" },
  "apiKey": { "id": "…", "livemode": false, "scopes": ["validate", "parse", "convert", "invoices:read", "invoices:delete", "usage:read", "mcp"] },
  "limits": { "id": "developer", "name": "Developer", "priceMonthlyEurCents": 4900, "includedDocuments": 500, "overageCentsPerDocument": 10,
              "sandboxDocuments": 2000, "liveKeys": true, "mcp": true, "batch": false, "retentionDaysMax": 30, "requestsPerMinute": 120 }
}
Field Meaning
organization.storeDocuments, retentionDays whether documents are stored and for how many days (see data retention)
apiKey.livemode false for a test key (sandbox), true for a live key
apiKey.scopes what the key may do (see authentication)
limits the plan the key works under: included live documents, sandbox documents, overage price in euro cents (null = hard stop), whether live keys, MCP and batches are available, the longest retention, requests per minute. A partner's customer works under its partner's plan.

limits shows the plan. If your organization has a contract, its included volume and price are in GET /v1/usage.

GET /v1/usage

Needs the usage:read scope. Shows the current calendar month (UTC).

{
  "object": "usage",
  "livemode": false,
  "period": { "start": "2026-11-01", "end": "2026-11-30" },
  "plan": { "id": "developer", "name": "Developer", "includedDocuments": 500, "sandboxDocuments": 2000, "overageCentsPerDocument": 10, "contract": false },
  "live": { "billableDocuments": 120, "remaining": 380, "overage": 0 },
  "sandbox": { "documents": 37, "remaining": 1963 },
  "byOperation": [ { "livemode": true, "operation": "validate", "billable": true, "n": 112, "bytes": 2310455 } ]
}
Field Meaning
livemode the mode of the key you asked with; the counts cover both modes
plan included documents and overage price; with a contract (contract: true) these are the contract's included volume and base price per document
live.billableDocuments live documents that count this month
live.remaining, live.overage documents left before overage, and documents above the included volume
sandbox.documents, sandbox.remaining test-key documents this month and what is left of the sandbox quota
byOperation counts and bytes per mode, operation (validate, parse, convert, generate, fix, compare, mcp_tool) and billable flag, including calls that are recorded but not billed

A partner's call counts its own documents and those of all its customers. A customer's key sees only that customer's documents.

What counts as a document is explained in usage and billing.