Requires the stores.coupons.update permission.
Your API key goes here
The ID of the store that the coupon belongs to
The ID of the coupon to update
The coupon data to replace the existing coupon with
The data-transfer object for a coupon, used for creating or updating a coupon and returned by the API.
The case-insensitive code the customer will enter to redeem the coupon.
3 - 32The maximum number of times the coupon may be used. Set to –1 for unlimited uses.
-1 <= x <= 100000000Whether the coupon is active and may be used at checkout.
The percentage to subtract from the order total when the coupon is applied.
1 <= x <= 100A fixed amount to subtract from the order total when the coupon is applied.
0.01 <= x <= 100000The list of variant IDs this coupon applies to; null or empty for all variants.
The object was successfully updated.
Represents a default generic response for API endpoints.
Indicates whether the operation or response was successful.
A descriptive message providing additional context or information about the response.
The error code (if there was an error) to use when referencing the error
A coupon code can be used to reduce the cost of an order with a store for a specified percentage