> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scanova.io/llms.txt
> Use this file to discover all available pages before exploring further.

# تنزيل رموز QR بالجملة

> POST /bulk-operation/download/

يحزم رموز QR عديدة للتنزيل، بشكل غير متزامن، على مضيف **Management API** (‏`api.scanova.io`‏)، مع المصادقة باستخدام مفتاح Management API الخام الخاص بك.

```
POST https://api.scanova.io/bulk-operation/download/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
```

<ParamField body="name" type="string" required>
  تسمية لهذه العملية، تظهر في [سرد العمليات بالجملة](/ar/api-reference/management-api/bulk-operation/list).
</ParamField>

<ParamField body="qr_id_list" type="array">
  معرّفات رموز QR محددة لتنزيلها. بدلًا من ذلك استخدم `filter` أو `search` أو `bulk_op_id`.
</ParamField>

<ParamField body="filter" type="object">
  مرشِّح محفوظ يحدد رموز QR المراد تنزيلها، كبديل لـ `qr_id_list`.
</ParamField>

<ParamField body="search" type="string">
  مصطلح بحث يحدد رموز QR المراد تنزيلها، كبديل لـ `qr_id_list`. تحدد `"all"` كل رمز QR مملوك.
</ParamField>

<ParamField body="bulk_op_id" type="string">
  معرّف `operation_id` لعملية بالجملة موجودة — لإعادة تنزيل رموز QR التي أنشأتها تلك العملية، كبديل للتحديد بالمعرّف/المرشِّح/البحث.
</ParamField>

<ParamField body="result_file_format" type="string">
  صيغة التنزيل، مثل `zip` أو `csv` أو `xlsx`.
</ParamField>

<ParamField body="result_file_size" type="string">
  حجم الصورة لصور رموز QR المُنزَّلة، عند الاقتضاء.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST "https://api.scanova.io/bulk-operation/download/" \
    -H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
    -H "Content-Type: application/json" \
    -d '{
      "name": "Batch download",
      "qr_id_list": ["a1b2c3d4", "e5f6g7h8"],
      "result_file_format": "zip"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "operation_id": "bo-dl-001",
    "message": ["Your file is being processed. We'll email you once it's ready."]
  }
  ```
</ResponseExample>

إجراء غير متزامن — استطلع [سرد العمليات بالجملة](/ar/api-reference/management-api/bulk-operation/list) للحصول على `status`/`progress`، ثم اجلب `result_file`. يُعاد `400` إذا لم تتطابق أي رموز QR مع التحديد المُعطى.

## ذات صلة

* [تصدير رموز QR من نوع URL المملوكة بصيغة CSV](/ar/api-reference/management-api/bulk-operation/qr-list) — مصدر سريع للمعرّفات لاستخدامها في `qr_id_list`.
* [تنفيذ إجراء سريع بالجملة](/ar/api-reference/management-api/bulk-operation/quick-action) — يستخدم نفس معاملات الاستهداف، للتنظيم/تطبيق التصميم/الحذف بدلًا من ذلك.
* [سرد العمليات بالجملة](/ar/api-reference/management-api/bulk-operation/list) — انتظار الاكتمال.
* [نظرة عامة على Management API](/ar/api-reference/management-api/overview) — مخطط المصادقة وقواعد الحصة المطبّقة على نقطة النهاية هذه.


## OpenAPI

````yaml api-reference/openapi/management-api.json POST /bulk-operation/download/
openapi: 3.1.0
info:
  title: Scanova Management API (v2)
  description: >-
    The complete Scanova Management API — every endpoint available at
    api.scanova.io (QR codes, folders, tags, leads, forms, analytics, plans,
    shared users & roles), plus the token-creation and usage-stats endpoints
    used to authenticate against it. Every path and request/response shape below
    was verified live against a real API key and the actual running backend
    (Phase 7, 2026-08-16) — not guessed from reading urls.py alone.
  version: 2.0.0
servers:
  - url: https://api.scanova.io
    description: Management API — QR/folder/tag/lead/form/analytics/plans endpoints
security:
  - apiKeyAuth: []
paths:
  /bulk-operation/download/:
    post:
      summary: Bulk-download QR codes
      description: >-
        Packages many QR codes' images/data for download, asynchronously. Select
        targets with `qr_id_list`, a saved `filter`, a `search` term (`"all"`
        selects every owned QR), or an existing `bulk_op_id` to re-download that
        operation's generated QR codes.
      operationId: bulkDownloadQrCodes
      requestBody:
        content:
          application/json:
            example:
              name: Batch download
              qr_id_list:
                - a1b2c3d4
                - e5f6g7h8
              result_file_format: zip
      responses:
        '200':
          description: Download packaging started.
          content:
            application/json:
              example:
                operation_id: bo-dl-001
                message:
                  - >-
                    Your file is being processed. We'll email you once it's
                    ready.
        '400':
          description: No matching QR codes found for the given selection.
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Send your Management API key as the raw value of the Authorization
        header — no "Bearer " or "Token " prefix, and no other characters.
        Example: `Authorization: 401f7ac837da42b97f613d789819ff93537bee6a`. A
        header containing more than one space-separated part is rejected
        outright. Requests also require the request's Host header to be the
        management API host (e.g. api.scanova.io) — the same key sent to the
        regular API host will not authenticate.

````