update_code_discount_basic
Update an existing basic discount code by specifying only the fields to change—title, code, value, eligibility, or combine rules.
Instructions
Update an existing basic (amount-off) code discount. Only provided fields are changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | GID of the discount node (e.g. 'gid://shopify/DiscountCodeNode/123'). | |
| title | No | ||
| code | No | New code for the discount. | |
| startsAt | No | ||
| endsAt | No | ||
| usageLimit | No | ||
| appliesOncePerCustomer | No | ||
| discountType | No | ||
| discountValue | No | ||
| appliesOnEachItem | No | ||
| appliesToAll | No | ||
| productIds | No | ||
| collectionIds | No | ||
| variantIds | No | ||
| minimumSubtotal | No | ||
| minimumQuantity | No | ||
| combinesWith | No | Discount classes this discount can combine with. |