Create Invoice
| Parameter | Type | Required | Description |
|---|---|---|---|
customer | string | Yes | Customer ID to bill |
auto_advance | boolean | No | Auto-finalize after 1 hour (default: true) |
collection_method | string | No | charge_automatically or send_invoice |
days_until_due | integer | No | Days until payment is due |
description | string | No | Invoice description |
List Invoices
| Parameter | Type | Description |
|---|---|---|
customer | string | Filter by customer ID |
status | string | Filter by status (draft, open, paid, void) |
subscription | string | Filter by subscription ID |
Finalize Invoice
Transitions invoice from draft to open, making it ready for payment.Pay Invoice
Attempt to collect payment on an open invoice.Void Invoice
Permanently void an invoice. Cannot be undone.Invoice Statuses
| Status | Description |
|---|---|
draft | Invoice is being prepared, not yet sent |
open | Invoice has been finalized and sent |
paid | Invoice has been paid in full |
void | Invoice was canceled and is invalid |
uncollectible | Payment attempts exhausted |
Invoice Lifecycle
Node.js SDK
Webhooks
Listen for invoice events:invoice.created- New invoice createdinvoice.finalized- Invoice finalized and ready for paymentinvoice.paid- Invoice paid successfullyinvoice.payment_failed- Payment attempt failedinvoice.voided- Invoice was voided