Product warehouse
INFO
Every response arrives in the shared envelope — code, message, messages, status_code, time — with the payload in data. The tables below describe what is inside data.
POST /product-warehouse/get-paging
Get product-warehouses by paging
Request body
| Field | Type | Required | Description |
|---|---|---|---|
page | number | Yes | Default: 1 |
limit | number | Yes | Default: 20 |
updated_at | string | No | |
organization_id | string | No |
json
{
"page": 1,
"limit": 20,
"updated_at": "string",
"organization_id": "string"
}Response
data.total is the total number of records and data.data[] holds the current page. The table below describes one record.
| Field | Type | Description |
|---|---|---|
_id | string | |
product_id | string | |
warehouse_id | string | |
organization_id | string | |
amount | number | |
in_transit | number | |
in_trash | number | |
booked | number |
json
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {
"total": 0,
"data": [
{
"_id": "string",
"product_id": "string",
"warehouse_id": "string",
"organization_id": "string",
"amount": 0,
"in_transit": 0,
"in_trash": 0,
"booked": 0
}
]
},
"time": "2025-05-01T12:00:00Z"
}GET /product-warehouse/get-deleted
Get deleted product-warehouse ids
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
deleted_at | string | Yes |
Request body
No request body.
Response
json
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": [
"string"
],
"time": "2025-05-01T12:00:00Z"
}This page is generated from the OpenAPI spec.