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