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
170isWaitingForCheckFirstAllocation: Boolean!
171
172isWaitingForPayment: Boolean!
173
174isInternal: Boolean!
175
176hasPendingAllocationRequests: Boolean!
177
178# Arguments
179# includeWaitingForConfirmation: (self-explanatory)
180allocatedWarehouseCount(includeWaitingForConfirmation: Boolean! = true): Int!
181
182externalId: String
183
184purchaseOrderNumber: String
185
186# Required permission: Account:read
187#
188# Store restrictions apply.
189account: Account
190
191# Required permission: Buyer:read
192#
193# Store restrictions apply.
194buyer: Buyer
195
196# Required permission: Commission:read
197#
198# All elements are always returned
199commissions: [Commission!]!
200
201# Required permission: DeliveryWindow:read
202#
203# Limit must be in range 1 - 200
204#
205# Store restrictions apply.
206#
207# Arguments
208# where: (self-explanatory)
209# sort: (self-explanatory)
210# limit: (self-explanatory)
211# page: (self-explanatory)
212deliveryWindows(where: DeliveryWindowFilter, sort: [DeliveryWindowSort!] = [id_ASC], limit: Int = 20, page: Int = 1): [DeliveryWindow!]!
213
214# Required permission: ShippingTerms:read
215#
216# Store restrictions apply.
217shippingTerms: ShippingTerms
218
219# Required permission: PaymentTerms:read
220#
221# Store restrictions apply.
222paymentTerms: PaymentTerms
223
224# Required permission: Order:read
225#
226# All elements are always returned
227attachments: [OrderAttachment!]!
228
229# Arguments
230# format: ISO-8601
231preferredShippingDate(format: String = "Y-m-d\\TH:i:sP"): DateTimeTz
232
233# Arguments
234# format: ISO-8601
235estimatedDeliveryDate(format: String = "Y-m-d\\TH:i:sP"): DateTimeTz
236
237# A note on an order if the Account doesn't want the order after a certain date.
238# The order is not automatically cancelled on the Cancel Date, it is a note for sales staff.
239# It's not a date when the order is actually canceled.
240#
241# Arguments
242# format: ISO-8601
243cancelDate(format: String = "Y-m-d\\TH:i:sP"): DateTimeTz
244
245# Required permission: Account:read
246addressBookEntry: AddressBookEntry
247
248}