Path parameters
-
store_id string Required
The store Id in Nomad system
Body Required
Product in store inventory.
-
product_id string Required
ID of the product in the store's inventory.
-
batch_id string
ID of the product batch in the store's inventory.
-
location_id string
ID of the product location in the store's inventory.
-
sku_name string
SKU name of product in the store's inventory.
-
barcode string
Barcode of product in the store's inventory.
-
quantity integer(int32) Required
Quantity of product in the store's inventory.
PUT /stores/{store_id}/inventory
curl \
-X PUT https://nomad.samarkand-global.cn/envoy/stores/{store_id}/inventory \
-H "x-ca-key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"product_id":"string","batch_id":"string","location_id":"string","sku_name":"string","barcode":"string","quantity":1}'
Request example
{
"product_id": "string",
"batch_id": "string",
"location_id": "string",
"sku_name": "string",
"barcode": "string",
"quantity": 1
}
Response examples (200)
{
"code": 42,
"message": "string",
"items": [
{
"product_id": "string",
"batch_id": "string",
"location_id": "string",
"sku_name": "string",
"barcode": "string",
"quantity": 1
}
]
}
Response examples (500)
{
"code": 42,
"message": "string",
"items": [
{
"product_id": "string",
"batch_id": "string",
"location_id": "string",
"sku_name": "string",
"barcode": "string",
"quantity": 1
}
]
}