Eventjet GraphQL API documentation

discount

Get a single discount by its ID (Discount.id).

A discount is either a code that shoppers enter at checkout or a named discount that is granted without a code. Discount.code is null for the latter, and Discount.name is null for the former.

Responds with a not-found error rather than resolving to null when no discount with the given ID exists.

To list the discounts of a company, use Company.discounts; codes that were produced in bulk are also reachable through DiscountGroup.discounts. Use Mutation.createDiscount to create a new one.

Authorization is required: you must be allowed to manage the discounts of the company that owns the discount.

Arguments

ArgumentDescriptionType
idID!

Type

This field resolves to Discount, which has the following fields:

FieldDescriptionType
benefitDiscountBenefit!
canBeActivatedBoolean
codeString
constraints[ DiscountConstraint! ]!
createdAtThe date and time when the discount was created, in ISO 8601 format.Date
idID!
isActiveBoolean!
nameString
numberOfRedemptionsInt
relatedEvents[ Event ]