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# Store restrictions apply.
89#
90# Arguments
91# includeFullyCancelled: (self-explanatory)
92# limit: (self-explanatory)
93# page: (self-explanatory)
94lines(includeFullyCancelled: Boolean = false, limit: Int, page: Int = 1): [OrderLine!]!
95
96# Required permission: Market:read
97#
98# Store restrictions apply.
99market: Market
100
101# Required permission: Order:read
102#
103# All elements are always returned
104orderDocuments: [OrderDocument!]!
105
106# Required permission: StorePlugin:read
107#
108# Store restrictions apply.
109paymentMethod: StorePlugin
110
111# Required permission: PaymentHistory:read
112#
113# Limit must be in range 1 - 200
114#
115# Store restrictions apply.
116#
117# Arguments
118# where: (self-explanatory)
119# sort: (self-explanatory)
120# limit: (self-explanatory)
121# page: (self-explanatory)
122paymentHistory(where: PaymentHistoryEntryFilter, sort: [PaymentHistoryEntrySort!] = [id_DESC], limit: Int = 20, page: Int = 1): [PaymentHistoryEntry!]!
123
124# Required permission: Pricelist:read
125#
126# Store restrictions apply.
127pricelist: Pricelist!
128
129# Required permission: Return:read
130#
131# All elements are always returned
132#
133# Store restrictions apply.
134returns: [WholesaleReturn!]!
135
136# Required permission: Shipment:read
137#
138# All elements are always returned
139#
140# Store restrictions apply.
141shipments: [WholesaleShipment!]!
142
143# Required permission: Order.shippingAddress:read
144shippingAddress: Address
145
146# Required permission: ShippingOption:read
147shippingPriceGroup: ShippingPriceGroup
148
149# Required permission: none
150state: CountryState
151
152# Required permission: Store:read
153#
154# Store restrictions apply.
155store: Store!
156
157# Required permission: Order:read
158totals: OrderTotals!
159
160# All elements are always returned
161taxBreakdown: [TaxBreakdownLine!]!
162
163# Required permission: AllocationRule:read
164allocationRule: AllocationRule
165
166buyerInfo: BuyerInfo!
167
168isLocked: Boolean!
169
170isOnHold: Boolean!
171
172isWaitingForCheckFirstAllocation: Boolean!
173
174isCheckFirstAllocationAccepted: Boolean!
175
176isWaitingForPayment: Boolean!
177
178isInternal: Boolean!
179
180hasPendingAllocationRequests: Boolean!
181
182usedFallbackTax: Boolean!
183
184# Arguments
185# includeWaitingForConfirmation: (self-explanatory)
186allocatedWarehouseCount(includeWaitingForConfirmation: Boolean! = true): Int!
187
188externalId: String
189
190purchaseOrderNumber: String
191
192# Required permission: Account:read
193#
194# Store restrictions apply.
195account: Account
196
197# Required permission: Buyer:read
198#
199# Store restrictions apply.
200buyer: Buyer
201
202# Required permission: Commission:read
203#
204# All elements are always returned
205commissions: [Commission!]!
206
207# Required permission: DeliveryWindow:read
208#
209# Limit must be in range 1 - 200
210#
211# Store restrictions apply.
212#
213# Arguments
214# where: (self-explanatory)
215# sort: (self-explanatory)
216# limit: (self-explanatory)
217# page: (self-explanatory)
218deliveryWindows(where: DeliveryWindowFilter, sort: [DeliveryWindowSort!] = [id_ASC], limit: Int = 20, page: Int = 1): [DeliveryWindow!]!
219
220# Required permission: ShippingTerms:read
221#
222# Store restrictions apply.
223shippingTerms: ShippingTerms
224
225# Required permission: PaymentTerms:read
226#
227# Store restrictions apply.
228paymentTerms: PaymentTerms
229
230# Required permission: Order:read
231#
232# All elements are always returned
233attachments: [OrderAttachment!]!
234
235# Arguments
236# format: ISO-8601
237preferredShippingDate(format: String = "Y-m-d\\TH:i:sP"): DateTimeTz
238
239# Arguments
240# format: ISO-8601
241estimatedDeliveryDate(format: String = "Y-m-d\\TH:i:sP"): DateTimeTz
242
243# A note on an order if the Account doesn't want the order after a certain date.
244# The order is not automatically cancelled on the Cancel Date, it is a note for sales staff.
245# It's not a date when the order is actually canceled.
246#
247# Arguments
248# format: ISO-8601
249cancelDate(format: String = "Y-m-d\\TH:i:sP"): DateTimeTz
250
251# Required permission: Account:read
252addressBookEntry: AddressBookEntry
253
254}