Subscription represents the recurring items a customer has subscribed to. The recurring items can be - plan, addons. It may also contain the discount items like coupons.
Subscriptions are invoiced at the start of every term based on the recurring items and charged immediately against the customer's credit card if 'auto_collection' is turned 'on', otherwise the resulting invoice will be created as 'Payment Due'.
Sample SubscriptionJSON
API Index URL
Subscriptions attributes
A unique and immutable identifier for the subscription. If not provided, it is autogenerated.
Applicable only for 'future' subscriptions. The scheduled start time of the subscription.
End of the trial period for the subscription. Presence of this value for 'future' subscription implies the subscription will go into 'in_trial' state when it starts.
- When the subscription is not on a contract term: this value is the number of billing cycles remaining after the current cycle, at the end of which, the subscription cancels.
- When the subscription is on a contract term: this value is the number of billing cycles remaining in the contract term after the current billing cycle.
Current state of the subscription
The subscription is scheduled to start at a future date.
The subscription is in trial.
The subscription is active and will be charged for automatically based on the items in it.
The subscription will be canceled at the end of the current term.
The subscription has been canceled and is no longer in service.
The transferred
status will be reflected on the source business entity's subscription attribute once the customer transfer
activity is completed successfully. This status is only valid for product catalog 2.0
as the Multiple Business Entity features can only be enabled for product catalog 2.0.
Start of the trial period for the subscription. Presence of this value for future
subscription implies the subscription will go into in_trial
state when it starts.
Start of the current billing period of the subscription.
End of the current billing period of the subscription. Subscription is renewed immediately after this
Time at which the subscription was started. Is null
for future
subscriptions as it is yet to be started.
Time at which the subscription status
last changed to
active.
For example, this value is updated when an in_trial
or
cancelled
subscription activates.
Time at which subscription was cancelled or is set to be cancelled.
The reason for canceling the subscription. Set by Chargebee automatically.
Not Paid
No Card
Fraud Review Failed
Non Compliant EU Customer
The IP address of the user. Used primarly in Refersion integration. Refersion uses this field to track/log affiliate subscription.
If true
, there are subscription changes scheduled on next renewal.
Total number of invoices that are due for payment against the subscription.
Note:
Not supported if consolidated invoicing
is enabled, or when the subscription is for the customer who is in hierarchy
, and the parent of this customer owns and pays for the invoices of the subscription. It is also worth noting that the consolidated invoice amount is not included in the calculation of due_invoices_count
.
Time since this subscription has unpaid invoices. Note: Not supported if consolidated invoicing is enabled, or when the subscription is for the customer who is in hierarchy , and the parent of this customer owns and pays for the invoices of the subscription.
Total invoice due amount for this subscription. The value depends on the type of currency
.
Note:
Not supported if consolidated invoicing
is enabled, or when the subscription is for the customer who is in hierarchy
, and the parent of this customer owns and pays for the invoices of the subscription. It is also worth noting that the consolidated invoice amount is not included in the calculation of total_dues
.
A customer-facing note added to all invoices associated with this subscription. This note is one among all the notes displayed on the invoice PDF.
A set of key-value pairs stored as additional information for the subscription. Learn more .