API reference
Discount
The Discount object.
Kind: Objects
Fields
id
ID!
isDisabled
code
title
description
validFrom
validUntil
discountPercentage
discountAmount
discountLimit
minAmount
maxAmount
numberOfTimesPerUser
numberOfTimesUsedByMe
Required permission: Authenticated
requiresGuestGroups
requiresRestaurants
[Restaurant!]
menuType
If present, the discount can only be used on orders from that menu
normalizedCode
openingHours
If present, the discount can only be used during these periods
totalDiscountAmount
The total amount that this discount have shaved off for all users
createdAt
updatedAt
restaurant
usability (deprecated)
Warning
Deprecated. Semantically unreliable and clients can easily calculate the usability themselves
How to get it
This type is returned by:
discount(query)createRestaurantDiscount(mutation)createWhiteLabelDiscount(mutation)updateRestaurantDiscount(mutation)updateWhiteLabelDiscount(mutation)Restaurant.discount(field onRestaurant)Restaurant.featuredDiscount(field onRestaurant)Restaurant.featuredDiscounts(field onRestaurant)DiscountEdge.node(field onDiscountEdge)WhiteLabel.discount(field onWhiteLabel)Till.featuredDiscounts(field onTill)