Description
Topic: Subscriptions
Fields
billing_address: SubscriptionParam!
Which billing address to use
Custom billing address identifier
The date and time when the subscription was created
Example: "2014-09-04T12:23:34Z"
Timestamp (RFC 3339)
custom_billing_address: Address
custom_shipping_address: Address
customer: StorefrontCustomer
Customer this subscription belongs to
Expandable
Permission bit: "customers.read"
error: SubscriptionError!
Error state of the subscription
Example: ok
How many errors happened as a result of retry attempts
Example: 3
Unique subscription identifier. See also: Unique Identifiers
Example: "ss_EQzGqWoY"
last_order: StorefrontOrder
Last order this subscription created
Expandable
Permission bit: "orders.read"
When this subscription is due to update
Example: "2014-09-04T12:23:34Z"
Timestamp (RFC 3339)
Seconds offset from "next_at" to accommodate for the business logic. Negative for pre-paid subscriptions, because scheduled fulfillment is created ahead of time. Positive for subscriptions in error state, this is a retry logic.
Example: 3600
origin_order: StorefrontOrder
Order this subscription originates from
Expandable
Permission bit: "orders.read"
payment_source: SubscriptionParam!
Which payment source to use
Custom shipping address identifier
The number of items customer subscribed to
Example: 0
shipping_address: SubscriptionParam!
Which shipping address to use
Custom shipping address identifier
state: SubscriptionState!
State of the subscription
subscription_plan: SubscriptionPlan!
A subscription plan customer picked for this subscription
How many successful ticks (billing and fulfillment events) happened for this subscription
Example: 5
variant: StorefrontProductVariant
Product variant the customer subscribed to
Expandable
Permission bit: "product_variants.read"
Used By
Mutations
storefrontSubscriptionsCancel, storefrontSubscriptionsEdit, storefrontSubscriptionsPause, storefrontSubscriptionsResume, storefrontSubscriptionsSkipNext
Queries
Types
StorefrontOrderLineItem, StorefrontSubscriptionPage
Preview (typescript)
Loading module