Skip to main content
id
string

Unique identifier for the subscription.

Example:

"sub_1a2b3c4d5e6f"

customer
object

The customer billed on each renewal, expanded inline so you can show who is being charged without a second call.

payment_method_id
string | null

The saved payment method billed on each renewal. null until a payment method is attached.

Example:

"pm_7h8i9j0k"

status
enum<string>

Status of the subscription. Set automatically by Bachs as payments succeed or fail. trialing: In a free trial. No payment has been collected yet. trial_end marks when billing begins. active: Active and paid. Bachs is billing this subscription automatically each cycle. past_due: A cycle payment failed. Bachs is retrying the payment while access continues. unpaid: Payment retries have been exhausted. Access should be restricted. canceled: Canceled and will not renew. This is a terminal state. paused: Temporarily suspended. Billing is halted until the subscription resumes.

Available options:
trialing,
active,
past_due,
unpaid,
canceled,
paused
Example:

"active"

collection_method
string

How renewals are collected. charge_automatically bills the saved card each cycle.

Example:

"charge_automatically"

currency
string

The currency the subscription is billed in, as an ISO 4217 code. Subscriptions are USD only today.

Example:

"USD"

amount
string

Recurring amount as a decimal string

Example:

"10.00"

billing_cycle
object

How often the subscription renews, as an interval unit and a frequency, for example month with a frequency of 1 for monthly billing.

quantity
integer

Total billable quantity across the subscription's line items.

Example:

1

current_period_start
string<date-time>

Start of the period currently being billed for, in UTC.

Example:

"2026-04-01T00:00:00Z"

current_period_end
string<date-time>

End of the period currently being billed for, in UTC. The next charge lands at this time unless the subscription is canceled first.

Example:

"2026-05-01T00:00:00Z"

previously_billed_at
string<date-time> | null

Start of the period that was last billed

Example:

"2026-04-01T00:00:00Z"

next_billed_at
string<date-time> | null

Next scheduled charge date

Example:

"2026-05-01T00:00:00Z"

trial_end
string<date-time> | null

When the free trial ends and billing begins, in UTC. null if the subscription is not trialing.

Example:

"2026-04-15T00:00:00Z"

cancel_at_period_end
boolean

When true, the subscription stays active until current_period_end and is not renewed. When false, it renews normally.

Example:

false

canceled_at
string<date-time> | null

When the subscription was canceled, in UTC. null if it has not been canceled.

Example:

null

created_at
string<date-time>

When the subscription was created, in UTC.

Example:

"2026-03-01T12:00:00Z"

product
object | null

The catalog product this subscription bills for, or null when the subscription is not tied to a single product.

items
object[]

The line items that make up the subscription. Each item ties a product and its price to a billed quantity.

metadata
object

Your own key-value data attached to the subscription at creation, returned unchanged.

Example: