Skip to main content
This API allows you to create and manage invoices for your account. Invoices represent billing documents sent to customers with line items for products and services.

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

Retrieves a paginated list of all invoices in your account.
integer
default:"1"
Page number for pagination. Results are returned 25 items per page.
Response

Get invoice

Retrieves a specific invoice by ID with all line items.
string
required
The invoice’s ID (e.g., inv_abc123def456).
Response

Create invoice

Creates a new invoice with optional line items.
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

Updates an existing invoice’s status or due date.
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

Deletes an invoice from your account.
string
required
The invoice’s ID.
Returns 204 No Content on successful deletion.

Invoice status values

Usage flow

  1. Create a customer using the Customers API.
  2. Create products and prices using the Products and Prices APIs.
  3. Create an invoice with line items referencing your prices.
  4. Send the invoice to your customer (via your application).
  5. Update status to paid when payment is received.
  6. 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.