API reference

Discount

The Discount object.

Kind: Objects

Fields

id

ID!

isDisabled

Boolean

code

String

title

String

description

String

validFrom

DateTime

validUntil

DateTime

discountPercentage

Int

discountAmount

Int

discountLimit

Int

minAmount

Int

maxAmount

Int

numberOfTimesPerUser

Int

numberOfTimesUsedByMe

Int

Required permission: Authenticated

requiresGuestGroups

[WhiteLabelGuestGroup!]

requiresRestaurants

[Restaurant!]

MenuType

If present, the discount can only be used on orders from that menu

normalizedCode

String

openingHours

[OpeningHoursPeriod!]

If present, the discount can only be used during these periods

totalDiscountAmount

Int

The total amount that this discount have shaved off for all users

createdAt

DateTime

updatedAt

DateTime

restaurant

Restaurant

usability (deprecated)

DiscountUsability

Warning

Deprecated. Semantically unreliable and clients can easily calculate the usability themselves

How to get it

This type is returned by: