INPUT_OBJECT

VoucherCreateInput

link GraphQL Schema definition

1input VoucherCreateInput {
2
3name: String!
4
5status: Status!
6
7startAt: DateTimeTz!
8
9stopAt: DateTimeTz!
10
11method: VoucherMethod!
12
13# Accepted only for CODE method. If not provided, will be auto-generated.
14code: String
15
16# Required only for URL method.
17url: String
18
19priority: Int!
20
21# Pass 0 to mark as unlimited, greater than 0 otherwise
22maxUsages: Int!
23
24combineWithOtherVouchers: Boolean!
25
26reuse: Boolean!
27
28isExternal: Boolean
29
30type: VoucherType!
31
32entryPointStrategy: VoucherEntryPointStrategy!
33
34conversionHTML: String
35
36# Required permission: Voucher.attributes:write
37assignMappedAttributes: [MappedAttributeAssignInput!]
38
39# Required permission: Voucher.attributes:write
40assignDynamicAttributes: [DynamicAttributeAssignInput!]
41
42store: StoreInput!
43
44# Exactly one input field should be provided
45addMarkets: [MarketInput!]
46
47actions: [VoucherActionOnVoucherCreateInput!]
48
49# Assign an external ID to reference this object by it later
50externalId: String
51}

link Required by