Interface: SubscriptionBase
Extended by
Properties
addon_parent_subscription_id?
optionaladdon_parent_subscription_id:number
The id of the parent subscription. When present, this subscription will be created as a child and linked to the parent.
address_id
address_id:
number
Unique numeric identifier for the address the subscription is associated with.
analytics_data
analytics_data:
AnalyticsData
An object used to contain analytics data such as utm parameters.
cancellation_reason
cancellation_reason:
string
Reason provided for cancellation.
cancellation_reason_comments
cancellation_reason_comments:
string
Additional comment for cancellation.
cancelled_at
cancelled_at:
string
The time the subscription was cancelled.
charge_interval_frequency
charge_interval_frequency:
number
The number of units (specified in order_interval_unit) between each Charge. For example, order_interval_unit=month and charge_interval_frequency=3, indicate charge every 3 months. Charges must use the same unit types as orders. Max: 1000
created_at
created_at:
string
The time the subscription was created.
customer_id
customer_id:
number
Unique numeric identifier for the customer the subscription is tied to.
expire_after_specific_number_of_charges
expire_after_specific_number_of_charges:
number
Set the number of charges until subscription expires.
external_product_id
external_product_id:
ExternalId
An object containing the product id as it appears in external platforms.
external_variant_id
external_variant_id:
ExternalId
An object containing the variant id as it appears in external platforms.
has_queued_charges
has_queued_charges:
boolean
Retrieves true if there is queued charge. Otherwise, retrieves false.
id
id:
number
Unique numeric identifier for the subscription.
include?
optionalinclude:object
Additional information as requested
addons?
optionaladdons:Addon[]
address?
optionaladdress:Address
bundle_product?
optionalbundle_product:BundleProduct
bundle_selections?
optionalbundle_selections:BundleSelection
customer?
optionalcustomer:Customer
customer_entitlements?
optionalcustomer_entitlements:CustomerEntitlement[]
metafields?
optionalmetafields:Metafield[]
is_digital
is_digital:
boolean
Value is set to true if it is a digital item.
is_prepaid
is_prepaid:
boolean
Value is set to true if it is a prepaid item.
is_skippable
is_skippable:
boolean
Value is set to true if it is not a prepaid item
is_swappable
is_swappable:
boolean
Value is set to true if it is not a prepaid item and if in Customer portal settings swap is allowed for customers.
max_retries_reached
max_retries_reached:
boolean
Retrieves true if charge has an error max retries reached. Otherwise, retrieves false.
next_charge_scheduled_at
next_charge_scheduled_at:
string
Date of the next charge for the subscription.
order_day_of_month
order_day_of_month:
number
The set day of the month order is created. Default is that there isn’t a strict day of the month when the order is created. This is only applicable to subscriptions with order_interval_unit:“month”.
order_day_of_week
order_day_of_week:
number
The set day of the week order is created. Default is that there isn’t a strict day of the week order is created. This is only applicable to subscriptions with order_interval_unit = “week”. Value of 0 equals to Monday, 1 to Tuesday etc.