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
28type: VoucherType!
29
30entryPointStrategy: VoucherEntryPointStrategy!
31
32conversionHTML: String
33
34# Required permission: Voucher.attributes:write
35assignMappedAttributes: [MappedAttributeAssignInput!]
36
37# Required permission: Voucher.attributes:write
38assignDynamicAttributes: [DynamicAttributeAssignInput!]
39
40store: StoreInput!
41
42# Exactly one input field should be provided
43addMarkets: [MarketInput!]
44
45actions: [VoucherActionOnVoucherCreateInput!]
46
47# Assign an external ID to reference this object by it later
48externalId: String
49}

link Required by