UpdateVendorCouponInput
Update a coupon the calling vendor owns. A coupon cannot be widened to another storefront or handed to another owner.
Fields
codeStringcolorStringdescriptionStringdiscountDecimalexpiresOnDateTimeforDeliveryBooleanisActiveBooleanmaxCouponAmountDecimalminOrderAmountDecimalpercentageBooleanproductIds[Int!]RequiredtimesIntvendorLocationIds[Int!]Required
New code customers type at checkout. Omit to leave it unchanged.
New hex colour for display (e.g. #FF5733). Omit to leave it unchanged.
New terms or explanation. Omit to leave it unchanged.
Never negative, for the same reason as on create: the order paths
subtract it.
New expiry (UTC). Omit to leave it unchanged.
Whether the discount applies to the delivery fee. Omit to leave it unchanged.
Whether the coupon can still be redeemed. Omit to leave it unchanged.
New cap on a percentage discount. Omit to leave it unchanged.
New order minimum, in the vendor's currency. Omit to leave it unchanged.
Whether discount is a percentage. Omit to leave it unchanged.
Replaces the product restriction outright. An empty list clears it.
New total redemption limit. Omit to leave it unchanged.
Replaces the location restriction outright. Some(vec![]) clears it.
Built with