Stock Update

update stock counts by Catalog item id

update stock counts by Catalog item id

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

Request

  • Base URL
    http://localhost
  • URL
    http://localhost/catalog-items/stock-count-by-id
  • Auth
    OAuth 2
    Authorization code: https://localhost/oauth2/authorize
    Token URL: https://localhost/oauth2/authorize

Request body

locationIdstring

location id

Example request

{
  "locationId": "606d232385eb3927edf2763c",
  "catalogQtyByIdInfoList": [
    {
      "catalogItemId": "606d232385eb3927edf2763c",
      "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])]"
}

Changes

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