---
title: "Update warehouse"
method: PUT
path: "/shops/{SHOP_ID}/warehouses/{WAREHOUSE_ID}"
tags: ["Warehouse"]
---

# Update warehouse

`PUT /shops/{SHOP_ID}/warehouses/{WAREHOUSE_ID}`

Update warehouse

## Path parameters

- `SHOP_ID` integer, required
- `WAREHOUSE_ID` string, required

## Request body

- object
  - `name` string, required — Warehouse name
  - `address` string — Warehouse address
  - `phone_number` string — Warehouse phone number
  - `province_id` string — Province ID. Get by API GET /geo/provinces
  - `district_id` string — District ID. Get by API GET /geo/districts
  - `commune_id` string — Commune ID. Get by API GET /geo/communes
  - `country_code` string — Country code
  - `shelf_config` object, required — Shelf config
    - `col` string — Column
  - `batch_config` object — Batch config
    - `col` string — Column
    - `line` string — Line
    - `row` string — Row
  - `custom_shelf_config` object — Custom shelf config
    - `custom_config` object — Custom config
  - `custom_batch_config` object — Custom batch config
    - `custom_config` object — Custom config
  - `hide_config_batch_shelf` boolean — Open custom batch shelf config

## Response `200`

Success

- Warehouse — Warehouse information
  - `id` string — Warehouse ID
  - `name` string — Warehouse name
  - `address` string — Warehouse address
  - `full_address` string — Warehouse full address
  - `phone_number` string — Warehouse phone number
  - `province_id` string — Province ID
  - `district_id` string — District ID
  - `commune_id` string — Commune ID
  - `country_code` string — Country code
  - `shop_id` integer — Shop ID
  - `allow_create_order` boolean — Allow create order
  - `custom_id` string — Custom ID
  - `affiliate_shop_id` integer — Affiliate shop ID
  - `affiliate_warehouse` string — Affiliate warehouse name

---

[API](https://skmtc.dev/pancake/apis/pancake-pos-open-api.md) · [All operations](https://skmtc.dev/pancake/apis/pancake-pos-open-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pancake/apis/pancake-pos-open-api/revisions/9a6bd8069e82?raw)
