Customer Bulk
Bulk customer create/update operations
INFO
Har bir javob umumiy konvertda qaytadi — code, message, messages, status_code, time — foydali yuk esa data ichida. Quyidagi jadvallar faqat data ichini tavsiflaydi.
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.
So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
ids | string[] | Yo‘q | Explicit list of customer ObjectIds to soft-delete. Mutually exclusive with is_all=true. |
is_all | boolean | Yo‘q | When true, soft-delete all customers matched by the optional filters. Must not be combined with ids. |
search | string | Yo‘q | 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"
}Javob
| Maydon | Tur | Tavsif |
|---|---|---|
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"
}Bu sahifa OpenAPI spetsifikatsiyasidan yaratilgan.