Warehouse settings
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.
GET /warehouse-settings/get
Get the tenant's warehouse settings (created with defaults on first access).
Request body
No request body.
Response
| Field | Type | Description |
|---|---|---|
_id | string | |
account_id | string | |
direct_transfer | boolean | |
direct_acceptance | boolean | |
create_product_with_stock | boolean | |
show_sale_price_in_transfers | boolean |
json
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {
"_id": "string",
"account_id": "string",
"direct_transfer": false,
"direct_acceptance": false,
"create_product_with_stock": false,
"show_sale_price_in_transfers": false
},
"time": "2025-05-01T12:00:00Z"
}PUT /warehouse-settings/set
Update the tenant's warehouse settings (partial patch).
Request body
| Field | Type | Required | Description |
|---|---|---|---|
direct_transfer | boolean | No | Auto-accept internal transfers without a separate acceptance step |
direct_acceptance | boolean | No | Auto-accept incoming stock on receipt |
create_product_with_stock | boolean | No | Allow creating a product together with an initial stock quantity |
show_sale_price_in_transfers | boolean | No | Show sale price on transfer documents |
json
{
"direct_transfer": false,
"direct_acceptance": false,
"create_product_with_stock": false,
"show_sale_price_in_transfers": false
}Response
Same response shape as GET /warehouse-settings/get.
This page is generated from the OpenAPI spec.