---
title: "Create warehouse"
method: POST
path: "/warehouses/"
tags: ["Warehouses"]
---

# Create warehouse

`POST /warehouses/`

Endpoint for creating a new warehouse.

## Headers

- `X-Wafeq-Idempotency-Key` string

## Request body

- Warehouse — A ModelSerializer that takes additional arguments for "fields", "omit" and "expand" in order to control which fields are displayed, and whether to replace simple values with complex, nested serializations
  - `account` string, required — The account associated with this warehouse.
  - `address` CommonDualLangModel, required
    - `ar` string — The value in the Arabic language.
    - `en` string, required — The value in the English language.
  - `building_number` string, required — Building number or identifier of the warehouse.
  - `city` CommonDualLangModel, required
    - `ar` string — The value in the Arabic language.
    - `en` string, required — The value in the English language.
  - `code` string, required — Unique code identifier for the warehouse.
  - `created_ts` string, date-time, required — The timestamp in UTC when the warehouse was created
  - `district` CommonDualLangModel, required
    - `ar` string — The value in the Arabic language.
    - `en` string, required — The value in the English language.
  - `id` string, required — The unique identifier of the warehouse.
  - `is_active` boolean — Indicates whether the warehouse is currently active and operational.
  - `legacy_id` string, required — [Deprecated] The legacy identifier of the warehouse.
  - `modified_ts` string, date-time, required — The timestamp in UTC when the warehouse was last modified
  - `name` CommonDualLangModel, required
    - `ar` string — The value in the Arabic language.
    - `en` string, required — The value in the English language.
  - `phone` string, required — Contact phone number for the warehouse.
  - `postal_code` string, required — Postal or ZIP code of the warehouse location.
  - `state` string, required — Emirate for UAE organizations. Read-only field.

## Response `201`

- Warehouse — A ModelSerializer that takes additional arguments for "fields", "omit" and "expand" in order to control which fields are displayed, and whether to replace simple values with complex, nested serializations
  - `account` string, required — The account associated with this warehouse.
  - `address` CommonDualLangModel, required
    - `ar` string — The value in the Arabic language.
    - `en` string, required — The value in the English language.
  - `building_number` string, required — Building number or identifier of the warehouse.
  - `city` CommonDualLangModel, required
    - `ar` string — The value in the Arabic language.
    - `en` string, required — The value in the English language.
  - `code` string, required — Unique code identifier for the warehouse.
  - `created_ts` string, date-time, required — The timestamp in UTC when the warehouse was created
  - `district` CommonDualLangModel, required
    - `ar` string — The value in the Arabic language.
    - `en` string, required — The value in the English language.
  - `id` string, required — The unique identifier of the warehouse.
  - `is_active` boolean — Indicates whether the warehouse is currently active and operational.
  - `legacy_id` string, required — [Deprecated] The legacy identifier of the warehouse.
  - `modified_ts` string, date-time, required — The timestamp in UTC when the warehouse was last modified
  - `name` CommonDualLangModel, required
    - `ar` string — The value in the Arabic language.
    - `en` string, required — The value in the English language.
  - `phone` string, required — Contact phone number for the warehouse.
  - `postal_code` string, required — Postal or ZIP code of the warehouse location.
  - `state` string, required — Emirate for UAE organizations. Read-only field.

---

[API](https://skmtc.net/wafeq/apis/wafeq-public-api.md) · [All operations](https://skmtc.net/wafeq/apis/wafeq-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wafeq/wafeq-public-api/versions/36816b4fce7f/schema)
