subscriptionDraftDiscountCodeApply mutation
Applies a code discount on the subscription draft.
Required access
write_own_subscription_contracts
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
draftId
(
ID!
)
required
|
The gid of the subscription contract draft to apply a subscription code discount on. |
redeemCode
(
String!
)
required
|
Code discount redeem code. |
Return fields
-
appliedDiscount (
SubscriptionAppliedCodeDiscount
)The added subscription discount.
-
draft (
SubscriptionDraft
)The subscription contract draft object.
-
userErrors (
[SubscriptionDraftUserError!]!
)List of errors that occurred executing the mutation.
Applies a code discount on the subscription draft.
Required access
write_own_subscription_contracts
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
draftId
(
ID!
)
required
|
The gid of the subscription contract draft to apply a subscription code discount on. |
redeemCode
(
String!
)
required
|
Code discount redeem code. |
Return fields
-
appliedDiscount (
SubscriptionAppliedCodeDiscount
)The added subscription discount.
-
draft (
SubscriptionDraft
)The subscription contract draft object.
-
userErrors (
[SubscriptionDraftUserError!]!
)List of errors that occurred executing the mutation.
Applies a code discount on the subscription draft.
Required access
write_own_subscription_contracts
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
draftId
(
ID!
)
required
|
The gid of the subscription contract draft to apply a subscription code discount on. |
redeemCode
(
String!
)
required
|
Code discount redeem code. |
Return fields
-
appliedDiscount (
SubscriptionAppliedCodeDiscount
)The added subscription discount.
-
draft (
SubscriptionDraft
)The subscription contract draft object.
-
userErrors (
[SubscriptionDraftUserError!]!
)List of errors that occurred executing the mutation.