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
23# Required permission: none
24country: Country
25
26# Required permission: none
27state: CountryState
28
29zipCode: String
30
31# Required permission: AllocationRule:read
32#
33# All elements are always returned
34usedByAllocationRules: [AllocationRule!]!
35
36# Required permission: StockChange:read
37#
38# Limit must be in range 1 - 200
39#
40# Arguments
41# where: (self-explanatory)
42# sort: (self-explanatory)
43# limit: (self-explanatory)
44# page: (self-explanatory)
45stockChanges(where: StockChangeFilter, sort: [StockChangeSort!] = [id_DESC], limit: Int = 20, page: Int = 1): [StockChange!]!
46
47# Required permission: Warehouse.stock:read
48#
49# Limit must be in range 1 - 200
50#
51# Arguments
52# where: (self-explanatory)
53# sort: (self-explanatory)
54# limit: (self-explanatory)
55# page: (self-explanatory)
56stock(where: StockFilter, sort: [StockSort!] = [productId_ASC, productVariantId_ASC, productSizeSort_ASC], limit: Int = 20, page: Int = 1): [Stock!]!
57
58# Required permission: Warehouse.stockTotals:read
59#
60# Arguments
61# where: (self-explanatory)
62stockTotals(where: StockTotalsFilter): StockTotals!
63
64}