OBJECT

PurchaseOrder

link GraphQL Schema definition

1type PurchaseOrder {
2id: Int!
3
4status: PurchaseOrderStatus!
5
6# Arguments
7# format: ISO-8601
8createdAt(format: String = "Y-m-d\\TH:i:sO"): DateTimeTz!
9
10# Arguments
11# format: ISO-8601
12updatedAt(format: String = "Y-m-d\\TH:i:sO"): DateTimeTz!
13
14# Estimated time of arrival
15#
16# Arguments
17# format: ISO-8601
18ETA(format: String = "Y-m-d\\TH:i:sO"): DateTimeTz
19
20# Requested estimated time of delivery
21#
22# Arguments
23# format: ISO-8601
24requestedETD(format: String = "Y-m-d\\TH:i:sO"): DateTimeTz
25
26# Confirmed estimated time of delivery
27#
28# Arguments
29# format: ISO-8601
30confirmedETD(format: String = "Y-m-d\\TH:i:sO"): DateTimeTz
31
32# Required permission: PurchaseOrder.internalComment:read
33internalComment: String
34
35externalComment: String
36
37ourReference: String
38
39productsCount: Int!
40
41productsTotal: MonetaryValue!
42
43# Required permission: none
44currency: Currency!
45
46# Required permission: none
47#
48# All elements are always returned
49lines: [PurchaseOrderLine!]!
50
51# Required permission: PaymentTerms:read
52#
53# Store restrictions apply.
54paymentTerms: PaymentTerms
55
56# Required permission: Warehouse:read
57preferredWarehouse: Warehouse
58
59# Required permission: PurchaseOrderDelivery:read
60#
61# Limit must be in range 1 - 200
62#
63# Arguments
64# where: (self-explanatory)
65# sort: (self-explanatory)
66# limit: (self-explanatory)
67# page: (self-explanatory)
68purchaseOrderDeliveries(
69where: PurchaseOrderDeliveryFilter,
70sort: [PurchaseOrderDeliverySort!] = [id_DESC],
71limit: Int = 20,
72page: Int = 1
73): [PurchaseOrderDelivery!]!
74
75# Required permission: PurchaseOrder.shippingAddress:read
76shippingAddress: Address
77
78# Required permission: ShippingTerms:read
79#
80# Store restrictions apply.
81shippingTerms: ShippingTerms
82
83# Required permission: Supplier:read
84supplier: Supplier!
85
86# Required permission: PurchaseOrder.supplierAddress:read
87supplierAddress: Address
88
89externalId: String
90
91}