Skip to content

States ​

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 /states/get-all ​

Get all states

Request body

FieldTypeRequiredDescription
organization_idstringNo
typestringNoOne of: trades, saleOrders, deliveryOrders. Default: "trades"
is_defaultbooleanNoDefault: false
json
{
  "organization_id": "64e944999f719902a7ff641b",
  "type": "trades",
  "is_default": false
}

Response

json
{
  "code": 0,
  "message": "Success",
  "status_code": 200,
  "data": [
    {
      "_id": "string",
      "name": "string",
      "type": "string",
      "is_default": false,
      "default_key": "string",
      "organization_id": "string"
    }
  ],
  "time": "2025-05-01T12:00:00Z"
}

This page is generated from the OpenAPI spec.

Bito 2.0 Integration API