subscriptionDraftDiscountCodeApply - admin-graphql - MUTATION
Version: 2024-07
Description:
Applies a code discount on the subscription draft.
Access Scopes
`write_own_subscription_contracts` access scope. Also: The user must have manage_orders_information permission.
Arguments
-
draftId:
ID! -
The gid of the subscription contract draft to apply a subscription code discount on.
-
redeemCode:
String! -
Code discount redeem code.
Returns
-
appliedDiscount:
SubscriptionAppliedCodeDiscount
The added subscription discount.
-
draft:
SubscriptionDraft
The subscription contract draft object.
-
userErrors:
SubscriptionDraftUserError!
The list of errors that occurred from executing the mutation.
Examples