Customer Bulk
Bulk customer create/update operations
INFO
Каждый ответ приходит в общем конверте — code, message, messages, status_code, time — а полезная нагрузка лежит в data. Таблицы ниже описывают содержимое data.
POST /customer/delete-many
Soft-delete multiple customers in a single call (sets is_deleted=true on each). Pass either an explicit list of ObjectIds in ids, or set is_all=true with optional filters to delete all matched customers. Returns the count of deleted documents.
Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
ids | string[] | Нет | Explicit list of customer ObjectIds to soft-delete. Mutually exclusive with is_all=true. |
is_all | boolean | Нет | When true, soft-delete all customers matched by the optional filters. Must not be combined with ids. |
search | string | Нет | Optional text search filter applied when is_all=true. Matches against customer name, phone, and similar indexed fields. |
json
{
"ids": [
"string"
],
"is_all": false,
"search": "string"
}Ответ
| Поле | Тип | Описание |
|---|---|---|
deleted_count | number | Number of customer documents that were soft-deleted |
json
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {
"deleted_count": 0
},
"time": "2025-05-01T12:00:00Z"
}Эта страница сгенерирована из спецификации OpenAPI.