Anchor to DiscountCodeBasicUpdatePayloadDiscount
payloadDiscount Code Basic Update Payload
Return type for mutation.
Anchor to FieldsFields
- codeDiscountNode (DiscountCodeNode)
- userErrors ([DiscountUserError!]!)
- Anchor to codeDiscountNodecode•Discount
Discount Node Code Node The discount code that was updated.
- Anchor to userErrorsuser•[Discount
Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?
Anchor to Mutations with this payloadMutations with this payload
- discountCodeBasicUpdate (DiscountCodeBasicUpdatePayload)
- •mutation
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.
Note: To update discounts that are automatically applied on a cart and at checkout, use the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/discountAutomaticBasicUpdate"><code><span class="PreventFireFoxApplyingGapToWBR">discount<wbr/>Automatic<wbr/>Basic<wbr/>Update</span></code></a> mutation.
- •ID!required
The ID of the discount code to update.
- Anchor to basicCodeDiscountbasic•Discount
Code Discount Code Basic Input! required The input data used to update the discount code.
Arguments
- •ID!
Was this section helpful?