CreateVendorCouponInput
Create a coupon owned by the calling vendor. The owner is taken from the caller's own credentials, and the coupon is valid on their storefront only.
Fields
codeString!RequiredcolorString!RequireddescriptionStringdiscountDecimal!RequiredexpiresOnDateTimeforDeliveryBoolean!RequiredisActiveBoolean!RequiredmaxCouponAmountDecimalminOrderAmountDecimalpercentageBoolean!RequiredproductIds[Int!]RequiredtimesIntvendorLocationIds[Int!]Required
Code customers type at checkout. Must be unique across the platform.
Hex colour for UI display (e.g. "#FF5733").
Terms or explanation shown with the coupon. Optional.
Percentage when percentage is true, otherwise a fixed amount.
Never negative: the order paths subtract this, so a negative value would increase what the customer pays.
When the coupon stops working (UTC). Omit for a coupon that never expires.
Whether the discount applies to the delivery fee.
Whether the coupon can be redeemed straight away.
Caps a percentage discount. Ignored for fixed amounts.
Smallest order the coupon applies to, in the vendor's currency. Omit for no minimum.
Whether discount is a percentage rather than a fixed amount.
Restrict to specific products. All of the vendor's products when empty.
Total redemptions allowed across all customers.
Restrict to specific locations. Valid at all of the vendor's locations
when omitted or empty.
Built with