Invoices
Get Invoice
Use when loading an invoice for display or editing (e.g. portal or reconciliation). Supports group_by for usage breakdown and force_runtime_recalculation.
GET
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/flexprice/flexprice/llms.txt
Use this file to discover all available pages before exploring further.
Path Parameters
The unique identifier of the invoice to retrieve
Query Parameters
Group usage breakdown by specified fields (e.g., source, feature_id, properties.org_id)Can be provided multiple times to group by multiple dimensions:
?group_by=source?group_by=source&group_by=feature_id?group_by=properties.org_id(for nested properties)
Force recalculation of usage breakdown at runtime instead of using cached values
Response
Unique identifier for the invoice
ID of the customer this invoice belongs to
ID of the subscription (if applicable)
Human-readable invoice number
Type of invoiceValues:
SUBSCRIPTION, ONE_TIME, CREDIT, PRORATIONCurrent status of the invoiceValues:
DRAFT, FINALIZED, VOIDED, UNCOLLECTIBLEPayment statusValues:
PENDING, PAID, UNPAID, PARTIALLY_PAID, OVERPAID, FAILEDThree-letter ISO currency code (e.g., USD, EUR)
Total amount due
Amount already paid
Remaining amount to be paid
Subtotal before taxes and discounts
Total tax amount
Total discount amount
Final total amount
Total prepaid credits applied to this invoice
Date when payment is due (ISO 8601 format)
Start of billing period (ISO 8601 format)
End of billing period (ISO 8601 format)
Billing period (MONTHLY, YEARLY, etc.)
Reason for invoice creation
Array of line items included in the invoice
Customer information
Subscription information (if applicable)
Tax records applied to this invoice
Coupon applications for this invoice
Custom metadata key-value pairs
URL where customers can download the PDF version of this invoice
Timestamp when invoice was created
Timestamp when invoice was last updated
Timestamp when invoice was finalized
Timestamp when invoice was paid