CommerceSubscriptionResource
The CommerceSubscriptionResource
type represents a subscription to a plan.
Properties
- Name
id
- Type
string
- Description
The unique identifier for the subscription.
- Name
activeAt
- Type
Date
- Description
The date when the subscription became active.
- Name
createdAt
- Type
Date
- Description
The date when the subscription was created.
- Name
nextPayment
- Type
{ amount: CommerceMoney; date: Date } | null
- Description
Information about the next payment, including the amount and the date it's due. Returns
null
if there is no upcoming payment.
- Name
pastDueAt
- Type
Date | null
- Description
The date when the subscription became past due, or
null
if it's not past due.
- Name
status
- Type
'active' | 'past_due'
- Description
The current status of the subscription.
- Name
subscriptionItems
- Type
[]
- Description
The list of items (plans/features) included in this subscription.
- Name
updatedAt
- Type
Date | null
- Description
The date when the subscription was last updated, or
null
if it hasn't been updated.
Feedback
Last updated on