---
title: Warehouse Object
seo:
  title: Warehouse Object
  description: 'Object: Warehouse Object'
slug: api-reference/products/objects/warehouse
sidebar:
  label: Warehouse
search:
  tags:
    - API reference
    - Products
lastModified: '2026-04-13'
---

Represents warehouse.



```graphql
type Warehouse implements Node & ObjectWithMetadata {
  id: ID!
  privateMetadata: [MetadataItem!]!
  privateMetafield(key: String!): String
  privateMetafields(keys: [String!]): Metadata
  metadata: [MetadataItem!]!
  metafield(key: String!): String
  metafields(keys: [String!]): Metadata
  name: String!
  slug: String!
  email: String!
  isPrivate: Boolean!
  address: Address!
  companyName: String! @deprecated(reason: "Use `Address.companyName` instead.")
  clickAndCollectOption: WarehouseClickAndCollectOptionEnum!
  shippingZones(before: String, after: String, first: Int, last: Int): ShippingZoneCountableConnection!
  stocks(before: String, after: String, first: Int, last: Int): StockCountableConnection
  externalReference: String
}
```


## Interfaces

[`Node`](/api-reference/miscellaneous/interfaces/node), [`ObjectWithMetadata`](/api-reference/miscellaneous/interfaces/object-with-metadata)

## Fields

### id [#id]

**`id`** · [`ID!`](/api-reference/miscellaneous/scalars/id)

The ID of the warehouse.
### privateMetadata [#private-metadata]

**`privateMetadata`** · [`[MetadataItem!]!`](/api-reference/miscellaneous/objects/metadata-item)

List of private metadata items. Requires staff permissions to access.
### privateMetafield [#private-metafield]

**`privateMetafield`** · [`String`](/api-reference/miscellaneous/scalars/string)

A single key from private metadata. Requires staff permissions to access.

Tip: Use GraphQL aliases to fetch multiple keys.

#### key [#warehouse-private-metafield-key]

**`key`** · [`String!`](/api-reference/miscellaneous/scalars/string)


### privateMetafields [#private-metafields]

**`privateMetafields`** · [`Metadata`](/api-reference/miscellaneous/scalars/metadata)

Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.

#### keys [#warehouse-private-metafields-keys]

**`keys`** · [`[String!]`](/api-reference/miscellaneous/scalars/string)


### metadata [#metadata]

**`metadata`** · [`[MetadataItem!]!`](/api-reference/miscellaneous/objects/metadata-item)

List of public metadata items. Can be accessed without permissions.
### metafield [#metafield]

**`metafield`** · [`String`](/api-reference/miscellaneous/scalars/string)

A single key from public metadata.

Tip: Use GraphQL aliases to fetch multiple keys.

#### key [#warehouse-metafield-key]

**`key`** · [`String!`](/api-reference/miscellaneous/scalars/string)


### metafields [#metafields]

**`metafields`** · [`Metadata`](/api-reference/miscellaneous/scalars/metadata)

Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.

#### keys [#warehouse-metafields-keys]

**`keys`** · [`[String!]`](/api-reference/miscellaneous/scalars/string)


### name [#name]

**`name`** · [`String!`](/api-reference/miscellaneous/scalars/string)

Warehouse name.
### slug [#slug]

**`slug`** · [`String!`](/api-reference/miscellaneous/scalars/string)

Warehouse slug.
### email [#email]

**`email`** · [`String!`](/api-reference/miscellaneous/scalars/string)

Warehouse email.
### isPrivate [#is-private]

**`isPrivate`** · [`Boolean!`](/api-reference/miscellaneous/scalars/boolean)

Determine if the warehouse is private.
### address [#address]

**`address`** · [`Address!`](/api-reference/users/objects/address)

Address of the warehouse.
### companyName [#company-name]

**`companyName`** · [`String!`](/api-reference/miscellaneous/scalars/string)

Warehouse company name.

:::warning[Deprecated]
Use `Address.companyName` instead.
:::

### clickAndCollectOption [#click-and-collect-option]

**`clickAndCollectOption`** · [`WarehouseClickAndCollectOptionEnum!`](/api-reference/products/enums/warehouse-click-and-collect-option-enum)

Click and collect options: local, all or disabled.
### shippingZones [#shipping-zones]

**`shippingZones`** · [`ShippingZoneCountableConnection!`](/api-reference/shipping/objects/shipping-zone-countable-connection)

Shipping zones supported by the warehouse.

#### before [#warehouse-shipping-zones-before]

**`before`** · [`String`](/api-reference/miscellaneous/scalars/string)

Return the elements in the list that come before the specified cursor.

#### after [#warehouse-shipping-zones-after]

**`after`** · [`String`](/api-reference/miscellaneous/scalars/string)

Return the elements in the list that come after the specified cursor.

#### first [#warehouse-shipping-zones-first]

**`first`** · [`Int`](/api-reference/miscellaneous/scalars/int)

Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

#### last [#warehouse-shipping-zones-last]

**`last`** · [`Int`](/api-reference/miscellaneous/scalars/int)

Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.
### stocks [#stocks]

**`stocks`** · [`StockCountableConnection`](/api-reference/products/objects/stock-countable-connection)

Stocks that belong to this warehouse.




Requires one of the following permissions: `MANAGE_PRODUCTS`, `MANAGE_ORDERS`.



#### before [#warehouse-stocks-before]

**`before`** · [`String`](/api-reference/miscellaneous/scalars/string)

Return the elements in the list that come before the specified cursor.

#### after [#warehouse-stocks-after]

**`after`** · [`String`](/api-reference/miscellaneous/scalars/string)

Return the elements in the list that come after the specified cursor.

#### first [#warehouse-stocks-first]

**`first`** · [`Int`](/api-reference/miscellaneous/scalars/int)

Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

#### last [#warehouse-stocks-last]

**`last`** · [`Int`](/api-reference/miscellaneous/scalars/int)

Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.
### externalReference [#external-reference]

**`externalReference`** · [`String`](/api-reference/miscellaneous/scalars/string)

External ID of this warehouse.

## Used by

- [Channel (objects)](/api-reference/channels/objects/channel)
- [Checkout (objects)](/api-reference/checkout/objects/checkout)
- [DeliveryMethod (unions)](/api-reference/miscellaneous/unions/delivery-method)
- [Fulfillment (objects)](/api-reference/orders/objects/fulfillment)
- [Order (objects)](/api-reference/orders/objects/order)
- [OrderEvent (objects)](/api-reference/orders/objects/order-event)
- [Allocation (objects)](/api-reference/products/objects/allocation)
- [ProductVariantBackInStock (objects)](/api-reference/products/objects/product-variant-back-in-stock)
- [ProductVariantOutOfStock (objects)](/api-reference/products/objects/product-variant-out-of-stock)
- [ProductVariantStockUpdated (objects)](/api-reference/products/objects/product-variant-stock-updated)
- [Stock (objects)](/api-reference/products/objects/stock)
- [WarehouseCountableEdge (objects)](/api-reference/products/objects/warehouse-countable-edge)
- [WarehouseCreate (objects)](/api-reference/products/objects/warehouse-create)
- [WarehouseCreated (objects)](/api-reference/products/objects/warehouse-created)
- [WarehouseDelete (objects)](/api-reference/products/objects/warehouse-delete)
- [WarehouseDeleted (objects)](/api-reference/products/objects/warehouse-deleted)
- [WarehouseMetadataUpdated (objects)](/api-reference/products/objects/warehouse-metadata-updated)
- [WarehouseShippingZoneAssign (objects)](/api-reference/products/objects/warehouse-shipping-zone-assign)
- [WarehouseShippingZoneUnassign (objects)](/api-reference/products/objects/warehouse-shipping-zone-unassign)
- [WarehouseUpdate (objects)](/api-reference/products/objects/warehouse-update)
- [WarehouseUpdated (objects)](/api-reference/products/objects/warehouse-updated)
- [warehouse (queries)](/api-reference/products/queries/warehouse)
- [ShippingZone (objects)](/api-reference/shipping/objects/shipping-zone)

---

Schema: **Saleor 3.23.43**. [Download SDL](/schema/saleor.graphql).
