Skip to main content

UpdateCodeInput

No description

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

Fields​

UpdateCodeInput.codeId ● ID! non-null scalar​

UpdateCodeInput.code ● String scalar​

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

UpdateCodeInput.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.

UpdateCodeInput.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.

UpdateCodeInput.description ● String scalar​

UpdateCodeInput.availableFrom ● DateTime scalar​

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

UpdateCodeInput.availableUntil ● DateTime scalar​

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

UpdateCodeInput.quantity ● Int scalar​

UpdateCodeInput.rule ● CodeApplicationRuleInput input​

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

UpdateCodeInput.discount ● UpsertCodeDiscountInput input​

Member Of​

updateCode mutation