Warehouse settings
INFO
Каждый ответ приходит в общем конверте — code, message, messages, status_code, time — а полезная нагрузка лежит в data. Таблицы ниже описывают содержимое data.
GET /warehouse-settings/get
Get the tenant's warehouse settings (created with defaults on first access).
Тело запроса
Тело запроса не требуется.
Ответ
| Поле | Тип | Описание |
|---|---|---|
_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).
Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
direct_transfer | boolean | Нет | Auto-accept internal transfers without a separate acceptance step |
direct_acceptance | boolean | Нет | Auto-accept incoming stock on receipt |
create_product_with_stock | boolean | Нет | Allow creating a product together with an initial stock quantity |
show_sale_price_in_transfers | boolean | Нет | Show sale price on transfer documents |
json
{
"direct_transfer": false,
"direct_acceptance": false,
"create_product_with_stock": false,
"show_sale_price_in_transfers": false
}Ответ
Структура ответа совпадает с GET /warehouse-settings/get.
Эта страница сгенерирована из спецификации OpenAPI.