Anchor to discountCodeBasicUpdatediscount
discount Code Basic Update
mutation
Requires Apps must have access scope.
Updates an amount off discount that's applied on a cart and at checkout when a customer enters a code. Amount off discounts can be a percentage off or a fixed amount off.
Anchor to Arguments
Arguments
- Anchor to basicCodeDiscountbasic•
Code Discount DiscountCode Basic Input!required The input data used to update the discount code.
- •ID!required
The ID of the discount code to update.
Was this section helpful?
- Anchor to codeDiscountNodecode•
Discount Node The discount code that was updated.
- Anchor to userErrorsuser•
Errors [DiscountUser Error!]!non-null The list of errors that occurred from executing the mutation.
Was this section helpful?