---
title: "POST /api/app/stock-discrepancy-entry-command"
method: POST
path: "/api/app/stock-discrepancy-entry-command"
tags: ["StockDiscrepancyEntryCommand"]
---

# POST /api/app/stock-discrepancy-entry-command

`POST /api/app/stock-discrepancy-entry-command`

## Request

- Base URL: `https://api.khaasfood.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.khaasfood.com/api/app/stock-discrepancy-entry-command`
- Auth: OAuth 2
  - Authorization code: `https://api.khaasfood.com/connect/authorize`
  - Token URL: `https://api.khaasfood.com/connect/token`

## Request body

- KhaasFoodStockDiscrepancyEntriesDTOsStockDiscrepancyEntryCreateUpdateDto
  - `id` string, uuid
  - `warehouseId` string, uuid
  - `status` 1 | 2 | 3
  - `remarks` string, nullable
  - `details` KhaasFoodStockDiscrepancyEntriesDTOsStockDiscrepancyEntryDetailDto[], nullable
    - `productDetailId` string, uuid
    - `productDetailName` string, nullable
    - `quantity` number, double
    - `remarks` string, nullable

## Response `200`

Success

- KhaasFoodStockDiscrepancyEntriesDTOsStockDiscrepancyEntryDto
  - `id` string, uuid
  - `warehouseId` string, uuid
  - `status` 1 | 2 | 3
  - `warehouseName` string, nullable
  - `remarks` string, nullable
  - `createdDate` string, date-time
  - `details` KhaasFoodStockDiscrepancyEntriesDTOsStockDiscrepancyEntryDetailDto[], nullable
    - `productDetailId` string, uuid
    - `productDetailName` string, nullable
    - `quantity` number, double
    - `remarks` string, nullable

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Server Error
- `501`: Server Error

---

[API](https://skmtc.dev/khaasfood/apis/khaasfood-api.md) - [All operations](https://skmtc.dev/khaasfood/apis/khaasfood-api/llms.txt) - [OpenAPI document](https://skmtc.dev/khaasfood/apis/khaasfood-api/revisions/149b6034bea9?raw)
