Overview
Subscriptions automatically generate invoices every cycle.
For one-tiem products invoices are created manually, unless the customer is using a payment link to make a payment.
Invoices can be emailed to customers or charged to a payment method on file. If automatic charge fails, it is tried again the next day. After three attempts, the invoice is emailed to customer.
Invoice Drafts
To be able to edit an invoice, create it as a draft. Invoices with the Open status cannot be edited.
To edit an invoice draft, use the Edit invoice draft endpoint.
A draft invoice cannot be paid. To be paid, an invoice must be open.
Invoice Items
An invoice can contain one or more items. To manage the items, use the Invoice items endpoints.
Pending items
Pending items can only be one-time products added to a subscription invoice.
To work with pending items, use the Pending invoice items endpoints.
Invoice Objects
Some endpoints in this section return a Detailed Invoice object, and others return a smaller Invoice object with a subset of the properties.