UpdateVendorCouponInput

Update a coupon the calling vendor owns. A coupon cannot be widened to another storefront or handed to another owner.

Fields

    code
    String
    New code customers type at checkout. Omit to leave it unchanged.
    color
    String

    New hex colour for display (e.g. #FF5733). Omit to leave it unchanged.

    description
    String
    New terms or explanation. Omit to leave it unchanged.
    discount
    Decimal
    Never negative, for the same reason as on create: the order paths subtract it.
    expiresOn
    DateTime
    New expiry (UTC). Omit to leave it unchanged.
    forDelivery
    Boolean
    Whether the discount applies to the delivery fee. Omit to leave it unchanged.
    isActive
    Boolean
    Whether the coupon can still be redeemed. Omit to leave it unchanged.
    maxCouponAmount
    Decimal
    New cap on a percentage discount. Omit to leave it unchanged.
    minOrderAmount
    Decimal
    New order minimum, in the vendor's currency. Omit to leave it unchanged.
    percentage
    Boolean

    Whether discount is a percentage. Omit to leave it unchanged.

    productIds
    [Int!]
    Required
    Replaces the product restriction outright. An empty list clears it.
    times
    Int
    New total redemption limit. Omit to leave it unchanged.
    vendorLocationIds
    [Int!]
    Required

    Replaces the location restriction outright. Some(vec![]) clears it.

Built with