Attribute | Description |
---|---|
id | Unique identifier of the object. |
address | Unique identifier of the associated shipping Address. expandable |
plan | Unique identifier of the associated Plan. expandable |
coupon | Unique identifier of the associated Coupon. expandable |
default_source | Unique identifier of the default Source used to pay for this specific subscription. If not set, the default payment method set on Customer will be used instead. expandable |
latest_invoice | Unique identifier of the most recent Invoice. expandable |
address_required | Based on current product configuration or if taxes module is enabled, this will either be |
billing | The collection method of this subscription. Possible values are either |
cancel_at | If non-null, this is the Unix timestamp at which the subscription was requested to be cancelled. |
cancel_at_period_end | A boolean on whether the subscription will be canceled or not at the end of the current period. For subscriptions with multiple phases, please refer to the auto_renew attribute which denotes the final autorenewal behavior for the subscription, considering all future phases. |
canceled_at | If non-null, this is the Unix timestamp at which the subscription was requested to be canceled. |
canceled_by | If non-null, this will either contain the customer id or the collaborator id who requested the cancellation. |
canceled_by_type | Depending on how the cancellation was initiated, this will contain either: |
created | The Unix timestamp at which the subscription was created in the system. |
current_period_end | The end of the current period that the subscription has been invoiced for. At the end of this period, a new invoice will be created. |
current_period_start | Unix timestamp representing the start of the current period that the subscription has been invoiced for. |
days_until_due | Number of days a customer has to pay invoices generated by this subscription. This value will be |
ended_at | If non-null, this is the Unix timestamp at which the subscription has ended. |
quantity | |
status | Indicates the current status of the subscription. Possible values are
For Once the first invoice is paid, the subscription moves into an
A subscription having this status moves to
If subscription |
trial_end | If non-null, this is the Unix timestamp at which the subscription's trial period will end. |
trial_start | If non-null, this is the Unix timestamp at which the subscription's trial period started. |
is_gift_donor | A boolean on whether this subscription related to a gift donor. |
is_gift_recipient | A boolean on whether this subscription related to a gift recipient. |
gift_code | The gift code. |
is_redeemed | A boolean on whether the recipient's gift was redeemed or not. |
cancel_reason | If non-null, the reason provided when the cancellation request was received. |
shipments_remaining | The number of shipments remaining on this subscription. This value is initiated with a 0 amount. Once an invoice is created, the shipments_per_interval from the plan is added to the shipments_remaining amount, this occurs on the first invoice of the plan but also on all subsequent invoices that are created automatically by the subscription. For more information, please read the Shipments guide. |
schedule | Always expanded, this represents the active Schedule object related to that subscription. |
metadata | Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. |
expires_at | If non-null, this is the Unix timestamp at which the subscription will expire. This also takes into account any active schedule in place. |
renews_at | If non-null, this is the Unix timestamp at which the subscription will renew. This also takes into account any active schedule in place. |
shipments_undeliverable | A boolean on whether shipments is undeliverable or deliverable. |
shipments_suspended_until | Unix timestamp representing the exact time until the subscription's shipments are suspended. |
auto_renew | A boolean that determines whether the subscription will auto-renew or not at the end of the last phase. (overrides the plan configuration when set) |
source | Subscription source (Phone, Email, Web). |
start_date | Unix timestamp representing the exact time when the subscription was first created. This date might differ from the creation date due to backdating. |
is_imported | Define if the subscription is imported or not. |