Skip to content

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

FieldTypeRequiredDescription
pagenumberYesDefault: 1
limitnumberYesDefault: 20
updated_atstringNo
organization_idstringNo
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.

FieldTypeDescription
_idstring
product_idstring
warehouse_idstring
organization_idstring
amountnumber
in_transitnumber
in_trashnumber
bookednumber
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

ParameterTypeRequiredDescription
deleted_atstringYes

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.

Bito 2.0 Integration API