Skip to main content

FunctionDiscountCode

Discount codes can be defined by event organizers and communicated to attendees who can use them during function registration to get a discount on the standard fee.

type FunctionDiscountCode {
applicability: FunctionDiscountCodeApplicability!
availableFrom: DateTime
availableTo: DateTime
code: String!
createdAt: DateTime!
createdBy: String
discount: Discount!
discountType: DiscountType!
id: ID!
inventory: Inventory!
lastModifiedAt: DateTime!
lastModifiedBy: String
name: String!
}

Fields

FunctionDiscountCode.applicability ● FunctionDiscountCodeApplicability! non-null object

Defines which function fee types this discount code can be applied to.

FunctionDiscountCode.availableFrom ● DateTime scalar

The date and time from when the discount code can be used. Optional.

FunctionDiscountCode.availableTo ● DateTime scalar

The date and time until when the discount code can be used. Optional.

FunctionDiscountCode.code ● String! non-null scalar

The code that attendees can specify during function registration to obtain a discount.

Codes must be unique within an event.

FunctionDiscountCode.createdAt ● DateTime! non-null scalar

The date and time the record was created.

FunctionDiscountCode.createdBy ● String scalar

UTF-8 string value that represents the username of the user who created the record. Optional.

FunctionDiscountCode.discount ● Discount! non-null union

The details of the discount the discount code gives access to.

Value of discountTypeType of discount
SET_AMOUNT_OFF_FEESetAmountOffFeeDiscount
PERCENTAGE_OFF_FEEPercentageOffFeeDiscount

FunctionDiscountCode.discountType ● DiscountType! non-null enum

The type of discount the discount code gives access to.

FunctionDiscountCode.id ● ID! non-null scalar

The unique identifier of the discount code.

FunctionDiscountCode.inventory ● Inventory! non-null object

The inventory for this discount code.

FunctionDiscountCode.lastModifiedAt ● DateTime! non-null scalar

The date and time the record was last modified.

FunctionDiscountCode.lastModifiedBy ● String scalar

UTF-8 string value that represents the username of the user who last modified the record. Optional.

FunctionDiscountCode.name ● String! non-null scalar

The name of the discount code.

Discount code names must be unique with an event.

Member Of

CreateFunctionDiscountCodePayload object ● FunctionRegistrationPaymentDetails object ● FunctionSetup object ● UpdateFunctionDiscountCodePayload object