> ## 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

> GET /qrcode/{qrid}/download/

يُنزّل صورة رمز QR مُصيَّرة على مضيف **Management API** (‏`management.scanova.io`)، مصادَقًا عليها بمفتاح Management API الخام الخاص بك.

```
GET https://management.scanova.io/qrcode/{qrid}/download/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
```

<ParamField path="qrid" type="string" required>
  `qrid` الخاص برمز QR، مثل `QR7K9M2XN`.
</ParamField>

<Tip>
  متاحة أيضًا عبر `/qr/{qrid}/download/` — نفس العرض (view)، ونفس السلوك.
</Tip>

### معلمات الاستعلام

<ParamField query="file" type="string" default="png">
  صيغة الإخراج: `png`، `jpg`، `jpeg`، `svg`، `pdf`، `eps`، أو `ps`.
</ParamField>

<ParamField query="size" type="integer" default="300">
  حجم الصورة بالبكسل، من `10` إلى `2400`.
</ParamField>

<ParamField query="for_print" type="boolean" default="false">
  عندما تكون `true`، تعيد ملف PDF جاهزًا للطباعة يُولَّد محليًا (وليس عبر خدمة توليد الصور)، وتتجاهل `file`.
</ParamField>

<ParamField query="info" type="string">
  تجاوز اختياري لحمولة مُرمَّزة مسبقًا. رموز QR الديناميكية لا تحتاج إلى هذا — إنه موجود لرموز QR الثابتة، لأن هذه الواجهة الخلفية لا تُعيد إنتاج منطق ترميز بيانات الواجهة الأمامية على جانب العميل بشكل مستقل بالنسبة للأنواع الثابتة.
</ParamField>

## الاستجابة

الطلب الناجح يعيد الصورة كتنزيل ملف ثنائي (`Content-Disposition: attachment`)، مع اسم ملف مُشتق من اسم رمز QR (أو `qrid` الخاص به إذا لم يكن مُسمًّى).

<RequestExample>
  ```bash cURL theme={null}
  curl -G "https://management.scanova.io/qrcode/QR7K9M2XN/download/" \
    -H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
    -d file=svg \
    -d size=600 \
    -o "product-launch-flyer.svg"
  ```
</RequestExample>

## الأخطاء

<ResponseField name="400 Bad Request">
  تُعاد عندما تكون `size` خارج النطاق `10`–`2400`، أو عندما لا تكون `file` واحدة من الصيغ المدعومة.
</ResponseField>

<ResponseField name="404 Not Found">
  `qrid` غير موجود، أو لا ينتمي إلى الحساب الذي يخصه المفتاح.
</ResponseField>

<ResponseField name="503 Service Unavailable">
  خدمة توليد الصور المنبع (upstream) غير متاحة. هذا ليس خطأ من جانب العميل — أعد المحاولة، وتواصل مع الدعم إذا استمر.
</ResponseField>

## ذات صلة

* [سرد / إنشاء رموز QR](/ar/api-reference/management-api/qr/list) — ابحث عن `qrid` لتنزيله هنا.
* [استرجاع رمز QR أو تحديثه أو حذفه](/ar/api-reference/management-api/qr/retrieve) — احصل على التفاصيل الكاملة لرمز QR بدلًا من صورته المُصيَّرة.


## OpenAPI

````yaml api-reference/openapi/management-api.json GET /qrcode/{qrid}/download/
openapi: 3.1.0
info:
  title: Scanova Management API (v2)
  description: >-
    The complete Scanova Management API — every endpoint available at
    management.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://management.scanova.io
    description: Management API — QR/folder/tag/lead/form/analytics/plans endpoints
security:
  - apiKeyAuth: []
paths:
  /qrcode/{qrid}/download/:
    get:
      summary: Download a QR code image
      operationId: downloadManagedQrCode
      parameters:
        - name: qrid
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: QR image binary
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. management.scanova.io) — the same key sent to
        the regular API host will not authenticate.

````