Bills
Understand how bills are generated and processed within a subscription.
Overview
A bill represents a single payment within a subscription. Each billing cycle, a new bill is automatically created and a payment is attempted against the customer's stored payment method. Bills provide a complete record of each payment attempt, including the amount, due date, and any associated transactions.
How bills are generated
When a subscription becomes active, the first bill is created automatically. From that point, each time a bill is successfully paid, the next bill is created for the following billing cycle. This continues until the subscription's cycle limit is reached or the subscription is cancelled.
The bill generation process follows this sequence:
- Subscription is activated — the first bill is created with a status of
draft. - At the bill's due date, a payment is automatically attempted.
- If the payment succeeds, the bill transitions to
paidand the next bill is created. - If the payment fails, the bill transitions to
openand remains available for manual action. - When the cycle limit is reached, the subscription is automatically cancelled and no further bills are created.
Bill status
Each bill transitions through the following statuses:
| Status | Description |
|---|---|
draft | The bill has been created but payment has not yet been attempted. This is the initial status for all bills. |
open | A payment attempt was made but was not successful. The bill remains open for further action. |
paid | The bill has been successfully paid. This status is irreversible. |
void | The bill has been voided and no payment will be collected. This status is irreversible. |
The allowed status transitions are:
draft→open,paid, orvoidopen→paidorvoidpaid→ no further transitionsvoid→ no further transitions
NoteWhen a payment attempt fails, the bill transitions to
openrather thanvoid. This allows you to take further action, such as retrying the payment or manually marking the bill as paid or void via the API.
To learn how to retrieve and update bills, see Managing Bills.
Updated about 6 hours ago