update_discount_code
Update an existing Shopify discount code by modifying its title, schedule, status, usage limit, or per-customer restriction using its discount ID.
Instructions
Update an existing discount code
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Discount ID (e.g., 'gid://shopify/DiscountCodeNode/123456789') | |
| title | No | Discount title | |
| endsAt | No | End date (ISO 8601 format) | |
| status | No | Discount status | |
| startsAt | No | Start date (ISO 8601 format) | |
| usageLimit | No | Total number of times this code can be used | |
| appliesOncePerCustomer | No | Limit to one use per customer |