Interface: SubscriptionBase
Extended by
Properties
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?
optional
include:object
Additional information as requested
address?
optional
address:Address
bundle_product?
optional
bundle_product:BundleProduct
bundle_selections?
optional
bundle_selections:BundleSelection
customer?
optional
customer:Customer
metafields?
optional
metafields:Metafield
[]
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.
order_interval_frequency
order_interval_frequency:
number
The number of units (specified in order_interval_unit) between each order. For example, order_interval_unit=month and order_interval_frequency=3, indicate order every 3 months. Max value: 1000
order_interval_unit
order_interval_unit:
IntervalUnit
The frequency unit used to determine when a subscription’s order is created.
presentment_currency
presentment_currency:
string
The presentment currency of the subscription.
price
price:
string
The price of the item before discounts, taxes, or shipping have been applied.
product_title
product_title:
string
The name of the product in a store’s catalog.
properties
properties:
Property
[]
A list of line item objects, each one containing information about the subscription. Custom key-value pairs can be installed here, they will appear on the connected queued charge and after it is processed on the order itself.
quantity
quantity:
number
The number of items in the subscription.
sku
sku:
string
A unique identifier of the item in the fulfillment. In cases where SKU is blank, it will be dynamically pulled whenever it is used.
sku_override
sku_override:
boolean
Flag that is automatically updated to true when SKU is passed on create or update. When sku_override is true, the SKU on the subscription will be used to generate charges and orders. When sku_override is false, Recharge will dynamically fetch the SKU from the corresponding external platform variant.
status
status:
SubscriptionStatus
The status of the subscription. expired - This status occurs when the maximum number of charges for a product has been reached.
updated_at
updated_at:
string
The date time at which the purchase_item record was last updated.
variant_title
variant_title:
string
The name of the variant in a shop’s catalog.