Every invoice has a status. An invoice starts as a draft and ends as paid or void:
Use the status query parameter of List invoices in the API reference to get the invoices in one status.
You can still change a draft invoice: its line items, its customer, and its due date. A draft already has its invoice number, such as INV-2049, but Acme does not send it to the customer. When you finalize a draft, the invoice becomes open.
An open invoice is final, but Acme has not sent it to the customer yet. Acme sends it on its issueDate, and the invoice then becomes unpaid. You cannot change an open invoice. To correct it, void it and create a new one.
An unpaid invoice was sent to the customer, and Acme is waiting for the payment.
- An invoice stays unpaid until a payment is captured or the invoice is voided.
- When the due date passes, the invoice stays unpaid, and
pastDuebecomestrue. - A failed card payment keeps the invoice unpaid and starts the payment retries.
- Acme retries the payment 1, 3, and 7 days after the first failed attempt.
nextRetryAton the invoice, and on the failed payment attempt, is the date of the next retry.- After the last failed retry, the invoice stays unpaid, and the
invoice.payment_failedwebhook fires.
To see why an invoice is still unpaid, list its payment attempts with List payment attempts for an invoice in the API reference. Each failed attempt has a failureReason, such as card_declined.
Acme captured a payment for the full amountDue, so amountDue is 0 and paidAt has the capture time. The invoice.paid webhook fires. A paid invoice cannot be voided: to return money, refund the payment in the dashboard.
A void invoice is cancelled. Acme does not collect it, cancels the scheduled payment retries, and sets amountDue to 0. You can void an open or an unpaid invoice with Void an invoice in the API reference. The invoice.voided webhook fires. Voiding is permanent, and voiding a paid invoice returns 409, see Errors.