Skip to main content

CreateCodeInput

No description

input CreateCodeInput {
code: String!
type: CodeTypeEnum
revealHiddenTickets: Boolean
description: String!
eventId: ID!
availableFrom: DateTime!
availableUntil: DateTime!
quantity: Int
rule: CodeApplicationRuleInput
discount: UpsertCodeDiscountInput
}

Fields

CreateCodeInput.code ● String! non-null scalar

Accept only alphanumeric characters, no spaces or special characters allowed. Unique for event

CreateCodeInput.type ● CodeTypeEnum enum

Only PROMOTION codes apply a discount. By default, only ACCESS codes reveal hidden tickets. PROMOTION codes can optionally reveal hidden tickets if specified. ACCESS codes do not apply any discount.

CreateCodeInput.revealHiddenTickets ● Boolean scalar

Overrides the default hidden ticket behavior for the selected code type. If set to true, this code will reveal hidden tickets regardless of type.

CreateCodeInput.description ● String! non-null scalar

CreateCodeInput.eventId ● ID! non-null scalar

CreateCodeInput.availableFrom ● DateTime! non-null scalar

Create the promotion code available starting the date set - set in UTC

CreateCodeInput.availableUntil ● DateTime! non-null scalar

Create the promotion code available until the date set - set in UTC

CreateCodeInput.quantity ● Int scalar

CreateCodeInput.rule ● CodeApplicationRuleInput input

Not applying rule will make the code available to all event tickets

CreateCodeInput.discount ● UpsertCodeDiscountInput input

Member Of

createCode mutation