OBJECT

Warehouse

link GraphQL Schema definition

1type Warehouse {
2id: Int!
3
4name: String!
5
6status: Status!
7
8stockOwnership: WarehouseStockOwnership!
9
10allocationPolicy: WarehouseAllocationPolicy!
11
12stockMaster: WarehouseStockMaster!
13
14isConsignation: Boolean!
15
16isHiddenFromStockView: Boolean!
17
18threshold: Int
19
20# Required permission: BrickAndMortar:read
21brickAndMortar: BrickAndMortar
22
23address: String
24
25address2: String
26
27# Required permission: none
28country: Country
29
30# Required permission: none
31state: CountryState
32
33city: String
34
35zipCode: String
36
37# Required permission: AllocationRule:read
38#
39# All elements are always returned
40usedByAllocationRules: [AllocationRule!]!
41
42# Required permission: StockChange:read
43#
44# Limit must be in range 1 - 200
45#
46# Arguments
47# where: (self-explanatory)
48# sort: (self-explanatory)
49# limit: (self-explanatory)
50# page: (self-explanatory)
51stockChanges(where: StockChangeFilter, sort: [StockChangeSort!] = [id_DESC], limit: Int = 20, page: Int = 1): [StockChange!]!
52
53# Required permission: Warehouse.stock:read
54#
55# Limit must be in range 1 - 200
56#
57# Arguments
58# where: (self-explanatory)
59# sort: (self-explanatory)
60# limit: (self-explanatory)
61# page: (self-explanatory)
62stock(where: StockFilter, sort: [StockSort!] = [productId_ASC, productVariantId_ASC, productSizeSort_ASC], limit: Int = 20, page: Int = 1): [Stock!]!
63
64# Required permission: Warehouse.stockTotals:read
65#
66# Arguments
67# where: (self-explanatory)
68stockTotals(where: StockTotalsFilter): StockTotals!
69
70externalId: String
71
72}