Subscription Discount
Requires the or
scope.
Subscription draft discount types.
Anchor to Possible typesPossible types
- •OBJECT
Represents an applied code discount.
- •ID!non-null
The unique ID.
- Anchor to redeemCoderedeem•String!
Code non-null The redeem code of the discount that applies on the subscription.
- Anchor to rejectionReasonrejection•Subscription
Reason Discount Rejection Reason The reason that the discount on the subscription draft is rejected.
- •ID!
- •OBJECT
Custom subscription discount.
- Anchor to entitledLinesentitled•Subscription
Lines Discount Entitled Lines! non-null Entitled line items used to apply the subscription discount on.
- •ID!non-null
The unique ID.
- Anchor to recurringCycleLimitrecurring•Int
Cycle Limit The maximum number of times the subscription discount will be applied on orders.
- Anchor to rejectionReasonrejection•Subscription
Reason Discount Rejection Reason The reason that the discount on the subscription draft is rejected.
- Anchor to targetTypetarget•Discount
Type Target Type! non-null Type of line the discount applies on.
- Anchor to titletitle•String
The title associated with the subscription discount.
- Anchor to typetype•Discount
Type! non-null The type of the subscription discount.
- Anchor to usageCountusage•Int!
Count non-null The number of times the discount was applied.
- Anchor to valuevalue•Subscription
Discount Value! non-null The value of the subscription discount.
Anchor to Fields with this unionFields with this union
- •OBJECT
Represents what a particular discount reduces from a line price.
- •CONNECTION
An auto-generated type for paginating through multiple SubscriptionDiscounts.
- •OBJECT
An auto-generated type which holds one SubscriptionDiscount and a cursor during pagination.
- •OBJECT
The
object represents a draft version of a subscription contract before it's committed. It serves as a staging area for making changes to an existing subscription or creating a new one. The draft allows you to preview and modify various aspects of a subscription before applying the changes.
Use the
object to:
- Add, remove, or modify subscription lines and their quantities
- Manage discounts (add, remove, or update manual and code-based discounts)
- Configure delivery options and shipping methods
- Set up billing and delivery policies
- Manage customer payment methods
- Add custom attributes and notes to generated orders
- Configure billing cycles and next billing dates
- Preview the projected state of the subscription
Each
object maintains a projected state that shows how the subscription will look after the changes are committed. This allows you to preview the impact of your modifications before applying them. The draft can be associated with an existing subscription contract (for modifications) or used to create a new subscription.
The draft remains in a draft state until it's committed, at which point the changes are applied to the subscription contract and the draft is no longer accessible.
Learn more about how subscription contracts work and how to build, update, and combine subscription contracts.
- •OBJECT
The
object represents a draft version of a subscription contract before it's committed. It serves as a staging area for making changes to an existing subscription or creating a new one. The draft allows you to preview and modify various aspects of a subscription before applying the changes.
Use the
object to:
- Add, remove, or modify subscription lines and their quantities
- Manage discounts (add, remove, or update manual and code-based discounts)
- Configure delivery options and shipping methods
- Set up billing and delivery policies
- Manage customer payment methods
- Add custom attributes and notes to generated orders
- Configure billing cycles and next billing dates
- Preview the projected state of the subscription
Each
object maintains a projected state that shows how the subscription will look after the changes are committed. This allows you to preview the impact of your modifications before applying them. The draft can be associated with an existing subscription contract (for modifications) or used to create a new subscription.
The draft remains in a draft state until it's committed, at which point the changes are applied to the subscription contract and the draft is no longer accessible.
Learn more about how subscription contracts work and how to build, update, and combine subscription contracts.
- •OBJECT
The
object represents a draft version of a subscription contract before it's committed. It serves as a staging area for making changes to an existing subscription or creating a new one. The draft allows you to preview and modify various aspects of a subscription before applying the changes.
Use the
object to:
- Add, remove, or modify subscription lines and their quantities
- Manage discounts (add, remove, or update manual and code-based discounts)
- Configure delivery options and shipping methods
- Set up billing and delivery policies
- Manage customer payment methods
- Add custom attributes and notes to generated orders
- Configure billing cycles and next billing dates
- Preview the projected state of the subscription
Each
object maintains a projected state that shows how the subscription will look after the changes are committed. This allows you to preview the impact of your modifications before applying them. The draft can be associated with an existing subscription contract (for modifications) or used to create a new subscription.
The draft remains in a draft state until it's committed, at which point the changes are applied to the subscription contract and the draft is no longer accessible.
Learn more about how subscription contracts work and how to build, update, and combine subscription contracts.
- •OBJECT
The
object represents a draft version of a subscription contract before it's committed. It serves as a staging area for making changes to an existing subscription or creating a new one. The draft allows you to preview and modify various aspects of a subscription before applying the changes.
Use the
object to:
- Add, remove, or modify subscription lines and their quantities
- Manage discounts (add, remove, or update manual and code-based discounts)
- Configure delivery options and shipping methods
- Set up billing and delivery policies
- Manage customer payment methods
- Add custom attributes and notes to generated orders
- Configure billing cycles and next billing dates
- Preview the projected state of the subscription
Each
object maintains a projected state that shows how the subscription will look after the changes are committed. This allows you to preview the impact of your modifications before applying them. The draft can be associated with an existing subscription contract (for modifications) or used to create a new subscription.
The draft remains in a draft state until it's committed, at which point the changes are applied to the subscription contract and the draft is no longer accessible.
Learn more about how subscription contracts work and how to build, update, and combine subscription contracts.