---
title: "Update stocktaking"
method: PUT
path: "/shops/{SHOP_ID}/stocktakings/{STOCKTAKING_ID}"
tags: ["Stocktaking"]
---

# Update stocktaking

`PUT /shops/{SHOP_ID}/stocktakings/{STOCKTAKING_ID}`

## Request

- Base URL: `https://pos.pages.fm/api/v1`
- URL: `https://pos.pages.fm/api/v1/shops/{SHOP_ID}/stocktakings/{STOCKTAKING_ID}`
- Auth: API key in query parameter `api_key`

Update stocktaking

## Path parameters

- `SHOP_ID` integer, required
- `STOCKTAKING_ID` string, required

## Request body

- object
  - `stocktaking` object, required
    - `items` object[]: List of products
      - `id` string: Stocktaking item ID
      - `variation_id` string: Variation ID
      - `changed_quantity` integer: Changed quantity
      - `note` string: Note
    - `note` string: Note
    - `status` integer: Status
    - `stocktaking_at` string, date-time: Stocktaking at
    - `stocktaking_by` string: Stocktaking by
    - `stocktaking_by_value` string[]: Category ID / Supplier products ID / Brand ID

## Response `200`

Success

- object
  - `success` boolean: Success status

---

[API](https://skmtc.dev/pancake/apis/pancake-pos-open-api.md) - [All operations](https://skmtc.dev/pancake/apis/pancake-pos-open-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pancake/apis/pancake-pos-open-api/revisions/3df28d1fb5dc?raw)
