Skip to content

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

MaydonTurMajburiyTavsif
idsstring[]Yo‘qExplicit list of customer ObjectIds to soft-delete. Mutually exclusive with is_all=true.
is_allbooleanYo‘qWhen true, soft-delete all customers matched by the optional filters. Must not be combined with ids.
searchstringYo‘qOptional 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

MaydonTurTavsif
deleted_countnumberNumber 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.

Bito 2.0 Integration API