Anchor to subscriptionDraftDiscountCodeApplysubscription
mutationsubscription Draft Discount Code Apply
Requires access scope. Also: The user must have manage_orders_information permission.
Applies a code discount on the subscription draft.
Anchor to Arguments
Arguments
- Anchor to draftIddraft•ID!
Id required The gid of the subscription contract draft to apply a subscription code discount on.
- Anchor to redeemCoderedeem•String!
Code required Code discount redeem code.
Was this section helpful?
Anchor to SubscriptionDraftDiscountCodeApplyPayload returnsSubscription Draft Discount Code Apply Payload returns
- Anchor to appliedDiscountapplied•Subscription
Discount Applied Code 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.
Was this section helpful?