Get
Retrieve a single invoice with real-time aggregates (for ACTIVE/CLOSING/CLOSED) or cached aggregates (for finalized invoices). Optionally include line items with expand=lineItems.
Authorizations
API key authentication
Path Parameters
The unique identifier of the invoice
Query Parameters
Comma-separated list of fields to expand. Currently supports: lineItems
Page size for line items when expand=lineItems
1 <= x <= 1000Pagination token for line items when expand=lineItems
Response
Invoice details
The invoice ID
The object type
invoice Whether this invoice auto-approves after calculation
The billing anchor date used for period calculations
ISO 8601 duration string for billing frequency
When the invoice was created
ISO 4217 currency code (e.g., USD, EUR)
The end of the grace period for accepting usage events
Grand total (subtotal + tax) in decimal dollars (real-time for ACTIVE/CLOSING/CLOSED, cached otherwise)
Number of billing items (real-time for ACTIVE/CLOSING/CLOSED, cached otherwise)
The merchant organization ID
Amount already paid via wallet (account_type='main') in decimal dollars
The end of the billing period
The start of the billing period
The sequence number of this invoice period
The current status of the invoice
ACTIVE, CLOSING, CLOSED, CALCULATING, DRAFT, ISSUED, PAYMENT_FAILED, PAID, CANCELLED, WRITTEN_OFF, FAILED The subscription ID this invoice belongs to
Subtotal in decimal dollars (real-time for ACTIVE/CLOSING/CLOSED, cached otherwise)
Total tax in decimal dollars (real-time for ACTIVE/CLOSING/CLOSED, cached otherwise)
Amount accrued as liability (account_type='usage') in decimal dollars
When the invoice was last updated
Machine-readable reason code for the most recent failure (e.g. CALCULATION_FAILED). Present only when status is FAILED or PAYMENT_FAILED.
The invoice number
Line items (only present if expand=lineItems query parameter is provided)
Additional metadata including transition history
When the next scheduled action should occur
When the invoice was paid (null if not yet paid)
Payment due date snapshotted at invoice-create time as the issue date + subscription.paymentTermDays, anchored to midnight UTC. Null only for invoices created before this feature shipped (no backfill).
Payment URL for completing payment (only present when status is ISSUED and unpaidAmount > 0)
Direct PDF download link for tax invoice
Public URL to view tax invoice
Tax reconciliation metadata (only present when plan has taxEnabled)