Attributes:
Name | Type | Description |
---|---|---|
id | string | V7 UUID generated when the subscription is created. |
account_id | string | The id of the account that owns this subscription. |
parent_id | string | The id of the parent subscription, if this subscription is a child of another subscription. |
resumed_from_id | string | The id of the subscription that this subscription was resumed from (if any). |
timezone | string | The timezone of the subscription (immutable once created). |
starts_at | integer | Unix timestamp of when the subscription starts (in seconds since the Unix epoch). This is an inclusive value. |
ends_at | integer | Unix timestamp of when the subscription ends (in seconds since the Unix epoch). This is an exclusive value. A value of 0 means this subscription is not set to expire. |
cancel_type | string | The type of cancellation that was performed on this subscription. This field is only set if the subscription has been canceled. One of: admin , dunning , hard-failure , pause , plan-change , or user . |
past_due_since | integer | Unix timestamp of when the subscription became past due (in seconds since the Unix epoch). This field is only set if the subscription is past due. |
entitlements | array | Array of strings containing the full list of all entitlements granted by this subscription. |
plan_group_id | string | The id of the associated plan group. |
plan | object | The plan associated with the subscription. |
processor | string | Who runs the actual billing. One of: stripe , apple . |
manageable | boolean | If the subscription can be managed programmatically via API. Most IAP subscriptions are not manageable. |
discount_periods | array | The discount periods associated with this subscription. |
current_period | object | The current billing period. |
referral | object | The referral object at the time the subscription was created. |
payments | array | Array of all payments that have been made for this subscription. |
cancelled_at | integer | Unix timestamp of when the subscription was canceled (in seconds since the Unix epoch). This field is only set if the subscription has been canceled. |
created_at | integer | Unix timestamp of when the subscription was created (in seconds since the Unix epoch). |
updated_at | integer | Unix timestamp of when the subscription was last updated (in seconds since the Unix epoch). |