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

# update stock counts by SKU

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

## Request

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

update stock counts by SKU

## Request body

- SetStockCountRequestBySku: set Stock count request by Catalog id
  - `locationId` string: location id
  - `catalogQtyBySkuInfoList` CatalogQtyBySkuInfo[]
    - `sku` string: sku
    - `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.dev/grubtech/apis/inventory-service.md) - [All operations](https://skmtc.dev/grubtech/apis/inventory-service/llms.txt) - [OpenAPI document](https://skmtc.dev/grubtech/apis/inventory-service/revisions/8e275e5431a4?raw)
