Anchor to subscriptionDraftDiscountUpdatesubscription
mutationsubscription Draft Discount Update
Requires access scope. Also: The user must have manage_orders_information permission.
Deprecated.
Use the SubscriptionContractCalculation API instead.
Updates a subscription discount on a subscription draft.
Anchor to Arguments
Arguments
- discountId (ID!)
- draftId (ID!)
- input (SubscriptionManualDiscountInput!)
- Anchor to discountIddiscount•ID!
Id required The gid of the Subscription Discount to update.
- Anchor to draftIddraft•ID!
Id required 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.
Show input fields
Was this section helpful?
Anchor to SubscriptionDraftDiscountUpdatePayload returnsSubscription Draft Discount Update Payload returns
- discountUpdated (SubscriptionManualDiscount)
- draft (SubscriptionDraft)
- userErrors ([SubscriptionDraftUserError!]!)
- Anchor to discountUpdateddiscount•Subscription
Updated Manual Discount The updated Subscription Discount.
Show fields
- Anchor to draftdraft•Subscription
Draft The Subscription Contract draft object.
Show fields
- Anchor to userErrorsuser•[Subscription
Errors Draft User Error!]! non-null The list of errors that occurred from executing the mutation.
Show fields
Was this section helpful?