OBJECT

Discount

link GraphQL Schema definition

1type Discount {
2id: Int!
3
4status: Status!
5
6name: String!
7
8method: DiscountMethod!
9
10type: DiscountType!
11
12code: String
13
14url: String
15
16conversionHTML: String
17
18combineWithOtherDiscounts: Boolean!
19
20# Arguments
21# format: ISO-8601
22createdAt(format: String = "Y-m-d\\TH:i:sP"): String
23
24entryPointStrategy: DiscountEntryPointStrategy!
25
26maxUsages: Int
27
28priority: Int!
29
30reuse: Boolean!
31
32# Arguments
33# format: ISO-8601
34startAt(format: String = "Y-m-d\\TH:i:sP"): String
35
36# Arguments
37# format: ISO-8601
38stopAt(format: String = "Y-m-d\\TH:i:sP"): String
39
40successfulUsages: Int!
41
42# Arguments
43# format: ISO-8601
44updatedAt(format: String = "Y-m-d\\TH:i:sP"): String!
45
46# Required permission: Discount:read
47#
48# All elements are always returned
49actions: [DiscountAction!]!
50
51# Required permission: AdminUser:read
52adminUser: AdminUser
53
54# Required permission: Discount:read
55#
56# Store restrictions apply.
57clonedFrom: Discount
58
59# Required permission: GiftCertificateGenerator:read
60#
61# Store restrictions apply.
62createdFromGiftCertificateGenerator: GiftCertificateGenerator
63
64# Required permission: Market:read
65#
66# All elements are always returned
67#
68# Store restrictions apply.
69markets: [Market!]!
70
71# Required permission: Store:read
72#
73# Store restrictions apply.
74store: Store!
75
76# Required permission: Order:read
77#
78# Limit must be in range 1 - 200
79#
80# Arguments
81# where: (self-explanatory)
82# sort: (self-explanatory)
83# limit: (self-explanatory)
84# page: (self-explanatory)
85usages(
86where: AppliedDiscountFilter,
87sort: [AppliedDiscountSort!] = [orderId_ASC, discountId_ASC, discountActionResultId_ASC],
88limit: Int = 20,
89page: Int = 1
90): [AppliedDiscount!]!
91
92}