---
title: "update stock counts by Catalog item id"
method: POST
path: "/catalog-items/stock-count-by-id"
tags: ["Stock Update"]
---

# update stock counts by Catalog item id

`POST /catalog-items/stock-count-by-id`

update stock counts by Catalog item id

## Request body

- SetStockCountRequestByCatalogId — set Stock count request by Catalog id
  - `locationId` string — location id
  - `catalogQtyByIdInfoList` CatalogQtyByIdInfo[]
    - `catalogItemId` string — catalog item id
    - `qtyInfo` QtyInfoWrite — Quantity information for catalog item
      - `qty` string — quantity in big decimal
      - `unitId` string — catalog item quantity unit id

## Response `200`

Successful response

- SetStockCountResponse — set Stock count response
  - `catalogItemQtyUpdateInfoList` CatalogItemQtyUpdateInfo[]
    - `catalogItemId` string — quantity in big decimal
    - `sku` string — catalog item quantity unit id
    - `qtyInfo` QtyInfo — quantity info
      - `qty` string — quantity in big decimal
      - `unitId` string — purchase unit id
  - `errorCode` number — if there is any error error code will display. otherwise value will be null
  - `message` string — if there any validation error, message will display here. otherwise value will be null

## Other responses

- `400` — Bad request
- `500` — Internal server error

---

[API](https://skmtc.net/grubtech/apis/grubtech-auth-server.md) · [All operations](https://skmtc.net/grubtech/apis/grubtech-auth-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/grubtech/grubtech-auth-server/revisions/21688b6dcb69/schema)
