v1

latestOpenAPI 3.0.3Apache 2.02026-07-2478177179.1 KB
Stock Update

update stock counts by SKU

update stock counts by SKU

post/catalog-items/stock-count-by-sku

Request body

locationIdstring

location id

Example request

{
  "locationId": "606d232385eb3927edf2763c",
  "catalogQtyBySkuInfoList": [
    {
      "sku": "sku",
      "qtyInfo": {
        "qty": "12.3",
        "unitId": "606d232385eb3927edf2763c"
      }
    }
  ]
}

Response

Successful response

errorCodenumber

if there is any error error code will display. otherwise value will be null

messagestring

if there any validation error, message will display here. otherwise value will be null

Example response

{
  "catalogItemQtyUpdateInfoList": [
    {
      "catalogItemId": "606d232385eb3927edf2763c",
      "sku": "sku",
      "qtyInfo": {
        "qty": "12.3",
        "unitId": "606d232385eb3927edf2763c"
      }
    }
  ],
  "errorCode": 400,
  "message": "[ValidationError(error=CORRUPTED DATA: This request has unitIds which do not exist in inventory unitIds: [65ddc968d3879720460e556d])]"
}