The invoice object
string
Unique identifier with
inv_ prefix (e.g., inv_abc123def456).string
The customer’s ID associated with this invoice.
string
The associated subscription ID.
null for standalone invoices.string
Invoice status:
pending, paid, overdue, or canceled.string
The invoice due date (format:
YYYY-MM-DD).string
Total amount for the invoice.
array
Array of line items on the invoice.
string
When the invoice was created (ISO 8601).
string
When the invoice was last updated (ISO 8601).
List invoices
integer
default:"1"
Page number for pagination. Results are returned 25 items per page.
Response
Get invoice
string
required
The invoice’s ID (e.g.,
inv_abc123def456).Response
Create invoice
string
required
The customer’s ID (e.g.,
cus_xyz789). Must belong to your account.string
required
The invoice due date (format:
YYYY-MM-DD).string
default:"pending"
Invoice status. One of:
pending, paid, overdue, canceled.string
Associated subscription ID.
array
Array of line item objects.
Response
Error responses
Customer not found
Price not found
Update invoice
string
required
The invoice’s ID.
string
Invoice status. One of:
pending, paid, overdue, canceled.string
The invoice due date (format:
YYYY-MM-DD).Response
Delete invoice
string
required
The invoice’s ID.
204 No Content on successful deletion.
Invoice status values
Usage flow
- Create a customer using the Customers API.
- Create products and prices using the Products and Prices APIs.
- Create an invoice with line items referencing your prices.
- Send the invoice to your customer (via your application).
- Update status to paid when payment is received.
- Track overdue invoices and follow up as needed.
Integration example
Sandbox support
The API respects sandbox scoping. If your API token is associated with a sandbox, you can only access invoices created in that sandbox. Invoices created in sandbox mode will be isolated from production data.