OBJECT

WholesaleOrder

link GraphQL Schema definition

1type WholesaleOrder implements Order, ObjectWithAttributes {
2id: String!
3
4number: Int!
5
6status: OrderStatus!
7
8# Arguments
9# includingTax: (self-explanatory)
10grandTotal(includingTax: Boolean! = true): MonetaryValue!
11
12# Same as orderDate
13#
14# Arguments
15# format: ISO-8601
16createdAt(format: String = "Y-m-d\\TH:i:sP"): DateTimeTz!
17
18# Arguments
19# format: ISO-8601
20updatedAt(format: String = "Y-m-d\\TH:i:sP"): DateTimeTz!
21
22# Same as createdAt
23#
24# Arguments
25# format: ISO-8601
26orderDate(format: String = "Y-m-d\\TH:i:sP"): DateTimeTz!
27
28# Required permission: Order.userIP:read
29userIP: String
30
31# Required permission: Order.internalComment:read
32internalComment: String
33
34otherComment: String!
35
36currencyBaseRate: Float!
37
38# Required permission: Order.attributes:read
39#
40# All elements are always returned
41#
42# Arguments
43# where: (self-explanatory)
44attributes(where: AssignedAttributeFilter): [Attribute!]!
45
46# Required permission: Order.billingAddress:read
47billingAddress: Address
48
49# Required permission: none
50country: Country
51
52# Required permission: Order:read
53#
54# All elements are always returned
55discountsApplied: [OrderDiscount!]!
56
57# Required permission: EmailHistory:read
58#
59# Limit must be in range 1 - 200
60#
61# Arguments
62# where: (self-explanatory)
63# sort: (self-explanatory)
64# limit: (self-explanatory)
65# page: (self-explanatory)
66emailHistory(where: EmailHistoryFilter, sort: [EmailHistorySort!] = [id_DESC], limit: Int = 20, page: Int = 1): [WholesaleEmailHistoryEntry!]!
67
68# Required permission: OrderHistory:read
69#
70# Limit must be in range 1 - 200
71#
72# Arguments
73# where: (self-explanatory)
74# sort: (self-explanatory)
75# limit: (self-explanatory)
76# page: (self-explanatory)
77history(where: OrderHistoryFilter, sort: [OrderHistorySort!] = [id_DESC], limit: Int = 20, page: Int = 1): [WholesaleOrderHistoryEntry!]!
78
79# Required permission: none
80language: Language
81
82# Limit is optional, but if the order has too many lines (thousands), it's recommended to set the limit
83#
84# Required permission: Order:read
85#
86# Limit is optional
87#
88# Arguments
89# includeFullyCancelled: (self-explanatory)
90# limit: (self-explanatory)
91# page: (self-explanatory)
92lines(includeFullyCancelled: Boolean = false, limit: Int, page: Int = 1): [OrderLine!]!
93
94# Required permission: Market:read
95#
96# Store restrictions apply.
97market: Market
98
99# Required permission: Order:read
100#
101# All elements are always returned
102orderDocuments: [OrderDocument!]!
103
104# Required permission: StorePlugin:read
105#
106# Store restrictions apply.
107paymentMethod: StorePlugin
108
109# Required permission: PaymentHistory:read
110#
111# Limit must be in range 1 - 200
112#
113# Arguments
114# where: (self-explanatory)
115# sort: (self-explanatory)
116# limit: (self-explanatory)
117# page: (self-explanatory)
118paymentHistory(where: PaymentHistoryEntryFilter, sort: [PaymentHistoryEntrySort!] = [id_DESC], limit: Int = 20, page: Int = 1): [PaymentHistoryEntry!]!
119
120# Required permission: Pricelist:read
121#
122# Store restrictions apply.
123pricelist: Pricelist!
124
125# Required permission: Return:read
126#
127# All elements are always returned
128#
129# Store restrictions apply.
130returns: [WholesaleReturn!]!
131
132# Required permission: Shipment:read
133#
134# All elements are always returned
135#
136# Store restrictions apply.
137shipments: [WholesaleShipment!]!
138
139# Required permission: Order.shippingAddress:read
140shippingAddress: Address
141
142# Required permission: ShippingOption:read
143#
144# Store restrictions apply.
145shippingPriceGroup: ShippingPriceGroup
146
147# Required permission: none
148state: CountryState
149
150# Required permission: Store:read
151#
152# Store restrictions apply.
153store: Store!
154
155# Required permission: Order:read
156totals: OrderTotals!
157
158# All elements are always returned
159taxBreakdown: [TaxBreakdownLine!]!
160
161# Required permission: AllocationRule:read
162allocationRule: AllocationRule
163
164buyerInfo: BuyerInfo!
165
166isLocked: Boolean!
167
168isOnHold: Boolean!
169
170isWaitingForPayment: Boolean!
171
172isInternal: Boolean!
173
174hasPendingAllocationRequests: Boolean!
175
176# Arguments
177# includeWaitingForConfirmation: (self-explanatory)
178allocatedWarehouseCount(includeWaitingForConfirmation: Boolean! = true): Int!
179
180purchaseOrderNumber: String
181
182# Required permission: Account:read
183#
184# Store restrictions apply.
185account: Account
186
187# Required permission: Buyer:read
188#
189# Store restrictions apply.
190buyer: Buyer
191
192# Required permission: Commission:read
193#
194# All elements are always returned
195commissions: [Commission!]!
196
197# Required permission: DeliveryWindow:read
198#
199# Limit must be in range 1 - 200
200#
201# Store restrictions apply.
202#
203# Arguments
204# where: (self-explanatory)
205# sort: (self-explanatory)
206# limit: (self-explanatory)
207# page: (self-explanatory)
208deliveryWindows(where: DeliveryWindowFilter, sort: [DeliveryWindowSort!] = [id_ASC], limit: Int = 20, page: Int = 1): [DeliveryWindow!]!
209
210# Required permission: ShippingTerms:read
211#
212# Store restrictions apply.
213shippingTerms: ShippingTerms
214
215# Required permission: PaymentTerms:read
216#
217# Store restrictions apply.
218paymentTerms: PaymentTerms
219
220# Required permission: Order:read
221#
222# All elements are always returned
223attachments: [OrderAttachment!]!
224
225# Arguments
226# format: ISO-8601
227preferredShippingDate(format: String = "Y-m-d\\TH:i:sP"): DateTimeTz
228
229# Arguments
230# format: ISO-8601
231estimatedDeliveryDate(format: String = "Y-m-d\\TH:i:sP"): DateTimeTz
232
233# A note on an order if the Account doesn't want the order after a certain date.
234# The order is not automatically cancelled on the Cancel Date, it is a note for sales staff.
235# It's not a date when the order is actually canceled.
236#
237# Arguments
238# format: ISO-8601
239cancelDate(format: String = "Y-m-d\\TH:i:sP"): DateTimeTz
240
241}