UpdateStoreInventory

PUT /stores/{store_id}/inventory

Update store-level product inventory

Path parameters

  • store_id string Required

    The store Id in Nomad system

application/json

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.

  • 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.

Responses

  • 200 application/json

    Success

    Hide response attributes Show response attributes object
    • code integer(int32)
    • message string
    • items array[object]

      Inventory object of store

      Hide items attributes Show items attributes object
      • 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.

      • 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.

  • 400

    Invalid input

  • 500 application/json

    Failed

    Hide response attributes Show response attributes object
    • code integer(int32)
    • message string
    • items array[object]

      Inventory object of store

      Hide items attributes Show items attributes object
      • 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.

      • 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
    }
  ]
}