Subscription Manual Discount
Requires the or
scope.
Custom subscription discount.
Anchor to FieldsFields
- 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!non-null
Count The number of times the discount was applied.
- Anchor to valuevalue•Subscription
Discount Value!non-null The value of the subscription discount.
Anchor to MutationsMutations
- •mutation
Adds a subscription discount to a subscription draft.
- Anchor to draftIddraft•ID!required
Id The ID of the Subscription Contract draft to add a subscription discount to.
- Anchor to inputinput•Subscription
Manual Discount Input!required The properties of the new Subscription Discount.
Arguments
- Anchor to discountAddeddiscount•Subscription
Added Manual Discount The added Subscription Discount.
- Anchor to draftdraft•Subscription
Draft The Subscription Contract draft object.
- Anchor to userErrorsuser•[Subscription
Errors Draft User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Updates a subscription discount on a subscription draft.
- Anchor to discountIddiscount•ID!required
Id The gid of the Subscription Discount to update.
- Anchor to draftIddraft•ID!required
Id The ID of the Subscription Contract draft to update a subscription discount on.
- Anchor to inputinput•Subscription
Manual Discount Input!required The properties to update on the Subscription Discount.
Arguments
- Anchor to discountUpdateddiscount•Subscription
Updated Manual Discount The updated Subscription Discount.
- Anchor to draftdraft•Subscription
Draft The Subscription Contract draft object.
- Anchor to userErrorsuser•[Subscription
Errors Draft User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Adds a subscription free shipping discount to a subscription draft.
- Anchor to draftIddraft•ID!required
Id The ID of the subscription contract draft to add a subscription free shipping discount to.
- Anchor to inputinput•Subscription
Free Shipping Discount Input!required The properties of the new subscription free shipping discount.
Arguments
- Anchor to discountAddeddiscount•Subscription
Added Manual Discount The added subscription free shipping discount.
- Anchor to draftdraft•Subscription
Draft The subscription contract draft object.
- Anchor to userErrorsuser•[Subscription
Errors Draft User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Updates a subscription free shipping discount on a subscription draft.
- Anchor to discountIddiscount•ID!required
Id The gid of the Subscription Discount to update.
- Anchor to draftIddraft•ID!required
Id The ID of the Subscription Contract draft to update a subscription discount on.
- Anchor to inputinput•Subscription
Free Shipping Discount Input!required The properties to update on the Subscription Free Shipping Discount.
Arguments
- Anchor to discountUpdateddiscount•Subscription
Updated Manual Discount The updated Subscription Discount.
- Anchor to draftdraft•Subscription
Draft The Subscription Contract draft object.
- Anchor to userErrorsuser•[Subscription
Errors Draft User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Removes a subscription line from a subscription draft.
- Anchor to draftIddraft•ID!required
Id The gid of the Subscription Contract draft to remove a subscription line from.
- Anchor to lineIdline•ID!required
Id The gid of the Subscription Line to remove.
Arguments
- Anchor to discountsUpdateddiscounts•[Subscription
Updated Manual Discount!] The list of updated subscription discounts impacted by the removed line.
- Anchor to draftdraft•Subscription
Draft The Subscription Contract draft object.
- Anchor to lineRemovedline•Subscription
Removed Line The removed Subscription Line.
- Anchor to userErrorsuser•[Subscription
Errors Draft User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields