CourseDiscountCode
Discount codes can be defined by event organizers and communicated to attendees who can use them during course registration to get a discount on the standard fee.
type CourseDiscountCode {
applicability: CourseDiscountCodeApplicability!
availableFrom: DateTime
availableTo: DateTime
code: String!
createdAt: DateTime!
createdBy: String
discount: Discount!
discountType: DiscountType!
id: ID!
lastModifiedAt: DateTime!
lastModifiedBy: String
name: String!
}
Fields
CourseDiscountCode.applicability ● CourseDiscountCodeApplicability! non-null object
Defines which course fee types this discount code can be applied to.
CourseDiscountCode.availableFrom ● DateTime scalar
The date and time from when the discount code can be used. Optional.
CourseDiscountCode.availableTo ● DateTime scalar
The date and time until when the discount code can be used. Optional.
CourseDiscountCode.code ● String! non-null scalar
The code that attendees can specify during course registration to obtain a discount.
Codes must be unique within an event an event or contact store.
CourseDiscountCode.createdAt ● DateTime! non-null scalar
The date and time the record was created.
CourseDiscountCode.createdBy ● String scalar
UTF-8 string value that represents the username of the user who created the record. Optional.
CourseDiscountCode.discount ● Discount! non-null union
The details of the discount the discount code gives access to.
Value of discountType | Type of discount |
|---|---|
SET_AMOUNT_OFF_FEE | SetAmountOffFeeDiscount |
PERCENTAGE_OFF_FEE | PercentageOffFeeDiscount |
CourseDiscountCode.discountType ● DiscountType! non-null enum
The type of discount the discount code gives access to.
CourseDiscountCode.id ● ID! non-null scalar
The unique identifier of the discount code.
CourseDiscountCode.lastModifiedAt ● DateTime! non-null scalar
The date and time the record was last modified.
CourseDiscountCode.lastModifiedBy ● String scalar
UTF-8 string value that represents the username of the user who last modified the record. Optional.
CourseDiscountCode.name ● String! non-null scalar
The name of the discount code.
Discount code names must be unique with in an event or contact store.
Member Of
CeContactStoreCourseSetup object ● CourseRegistrationPaymentDetails object ● EventCourseSetup object ● MembershipContactStoreCourseSetup object