Stocktaking

Create stocktaking

Create stocktaking

post/shops/{SHOP_ID}/stocktakings

Request

Path parameters

SHOP_IDinteger required
Example:4

Shop ID

Request body

Example request

{
  "stocktaking": {
    "warehouse_id": "c52e67ad-d9d0-4276-abe4-e0c9f1f7d2da",
    "items": [
      {
        "variation_id": "20e7d183-c70c-445e-8ce2-4d7e3a378e34",
        "changed_quantity": -1
      }
    ],
    "note": "Kiểm hàng tồn",
    "status": 0,
    "inserted_at": "2025-04-04T10:42:40.100Z",
    "stocktaking_at": "2023-10-11T10:38:34.542Z",
    "stocktaking_by": "category_ids",
    "stocktaking_by_value": [
      "1315"
    ]
  }
}

Response

Success

successboolean

Success status

Changes

No recorded changes to this operation across all 20 revisions of this API.