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
| Field | Type | Required | Description |
|---|---|---|---|
organization_id | string | No | |
type | string | No | One of: trades, saleOrders, deliveryOrders. Default: "trades" |
is_default | boolean | No | Default: 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.