---
title: "Update inventory stock"
method: POST
path: "/v2/inventory/stock"
tags: ["Inventory V2"]
---

# Update inventory stock

`POST /v2/inventory/stock`

## Request body

- InventoryV2
  - `product_id` string, required — Product ID
  - `quantity` number, required — Opening Quantity
  - `warehouse_id` integer, required — Warehouse ID
  - `remarks` string — Remarks
  - `record_date` string — Record Date (DD-MM-YYYY)
  - `action` 'in' | 'out', required — Stock in or stock out

## Response `200`

Success Response

- InventoryV2Response
  - `success` boolean — Success
  - `errors` object — Error details
  - `error_code` string — Error Code
  - `message` string — Message

## Other responses

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

---

[API](https://skmtc.dev/getswipe/apis/swipeapi.md) · [All operations](https://skmtc.dev/getswipe/apis/swipeapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getswipe/swipeapi/revisions/80fcaf1a3463/schema)
