Warehouse

Create warehouse

Create warehouses

post/shops/{SHOP_ID}/warehouses

Path parameters

SHOP_IDinteger required
Example:4

Shop ID

Request body

namestring required

Warehouse name

addressstring

Warehouse address

phone_numberstring

Warehouse phone number

province_idstring

Province ID. Get by API GET /geo/provinces

district_idstring

District ID. Get by API GET /geo/districts

commune_idstring

Commune ID. Get by API GET /geo/communes

country_codestring

Country code

hide_config_batch_shelfboolean

Open custom batch shelf config

Example request

{
  "name": "kho 2",
  "address": "19/349 Minh Khai , Hai bà Trưng, Hà Nội",
  "phone_number": "098765432",
  "province_id": "101",
  "district_id": "10107",
  "commune_id": "1010735",
  "country_code": "84",
  "shelf_config": {
    "col": "3"
  },
  "batch_config": {
    "col": "0",
    "line": "3",
    "row": "3"
  },
  "custom_batch_config": {
    "custom_config": {
      "0": "lô 1"
    }
  },
  "custom_shelf_config": {
    "custom_config": {
      "0": "1.1",
      "1": "1.2",
      "2": "1.3",
      "3": "1.4"
    }
  },
  "hide_config_batch_shelf": false
}

Response

Success

idstring

Warehouse ID

namestring

Warehouse name

addressstring

Warehouse address

full_addressstring

Warehouse full address

phone_numberstring

Warehouse phone number

province_idstring

Province ID

district_idstring

District ID

commune_idstring

Commune ID

country_codestring

Country code

shop_idinteger

Shop ID

allow_create_orderboolean

Allow create order

custom_idstring

Custom ID

affiliate_shop_idinteger

Affiliate shop ID

affiliate_warehousestring

Affiliate warehouse name

Changes

No recorded changes to this endpoint across all 1 revision of this API.