Update a coupon
Update an existing discount coupon in the store. Requires the WRITE_DISCOUNTS scope.
Authorizations
Installed-app access token (prefix app_), issued by the OAuth install flow. The store is bound to the token server-side — never send a shop id.
Path Parameters
The coupon's unique id.
Body
Fields accepted when updating a coupon. At least one field must be supplied.
New coupon code (alphanumeric only). Stored uppercase; must be unique within the store.
Discount type: fixed or percentage.
fixed, percentage Discount amount. Must be greater than 0.
Maximum total redemptions. Minimum 1.
x >= 1Maximum redemptions per customer. Minimum 1.
x >= 1Minimum order subtotal required. Cannot be negative.
x >= 0Date the coupon becomes valid (ISO 8601).
Date the coupon expires (ISO 8601). Must be on or after startDate.
Whether the coupon is active.
Response
The updated coupon.

