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

# قائمة معاملات البنك عبر API: نطاق التاريخ والمحجوزة والمعلقة

> تقرأ نقطة endpoint الخاصة بـ List Transactions من Didit معاملات الحساب البنكي لنطاق تاريخ محدد، المحجوزة والمعلقة، مع ترقيم الصفحات بالـ token.

يقرأ endpoint List Transactions في Didit معاملات الحساب لنطاق تاريخ محدد، سواء كانت مُرحّلة أو معلّقة، ويستخدم ترقيم الصفحات باستخدام page-token.
تُرسل المبالغ كسلاسل نصية عشرية، والحقول التي لا يرسلها البنك تكون `null`.
وللحفاظ على نسخة محدَّثة، استخدم [قناة التغييرات](https://docs.didit.me/ar/standalone-apis/bank-transactions-sync.md) بدلاً من إعادة قراءة النطاقات.


## OpenAPI

````yaml ar/openapi-25.json GET /v3/bank/accounts/{account_id}/transactions/
openapi: 3.0.0
info:
  version: 3.0.0
  title: Didit Verification API
  description: واجهة برمجة تطبيقات التحقق من الهوية. صادِق باستخدام الترويسة x-api-key.
servers:
  - url: https://verification.didit.me
security: []
tags:
  - name: Bank Data
    description: >-
      Bank Link والاتصالات والحسابات والأرصدة والمعاملات والمؤسسات والتغطية.
      بيانات البنك متاحة للتطبيقات التجريبية. ترد استدعاءات التطبيق الحي بـ
      `404` إلى أن يُعلن الوصول الحي. لا تُحتسب أي رسوم في البيئة التجريبية.
      يحتاج الاستدعاء الذي يتم بمفتاح API إلى مفتاح يتضمن إذن بيانات البنك
      (`bank-data`): القراءة للقراءات، والكتابة للعمليات التي تغيّر شيئاً. فحص
      الحساب هو الاستثناء: يحتاج إلى صلاحية الكتابة على الجلسات، أو الوصول
      الكامل، وليس إذن بيانات البنك. بيانات البنك غير مشمولة بالوصول الكامل:
      يُرفض مفتاح الوصول الكامل، ويرد الاستدعاء بـ `403 bank_data_access_denied`
      إلى أن تنشئ مفتاحاً يتضمن الإذن. ترفض بيانات البنك الخام (الحسابات
      والأرصدة والمعاملات وموجز التغييرات) أيضاً الطلب الذي لا يتضمن مفتاح API.


      تحمل كل حالات الرفض ضمن `/v3/bank/`، باستثناء رفض فحص الحساب، جسم JSON
      نفسه (`code`، `message`، `request_id`، `field`، `next_action`،
      `retry_after`). يرد مسار ليس عملية، أو معرّف ليس UUID، أو مورد فرعي غير
      معروف، بـ `404 not_found` لكل طريقة، ويرد أي خطأ غير متوقع بـ `500
      internal_error` مع `request_id`. حيثما لا تكون بيانات البنك متاحة، ترد كل
      عملية بـ `404` القياسي للمنصة، تماماً كما يرد المسار غير المعروف.
paths:
  /v3/bank/accounts/{account_id}/transactions/:
    get:
      tags:
        - Bank Data
      summary: عرض معاملات الحسابات
      description: >-
        قراءة لنطاق تواريخ من معاملات الحساب، مرتبة حسب `effective_date`
        تنازلياً ثم `id` تنازلياً، في صفحات تصل إلى 500 عنصر. `date_from`
        و`date_to` تاريخان تقويميان شاملان، وفق المنطقة الزمنية الخاصة بالبنك
        دون أي تحويل. يُطبَّقان على `effective_date`: بالنسبة إلى المعاملة
        المُرحَّلة هو تاريخ الترحيل، وإلا فتاريخ القيمة، وإلا التاريخ الذي شوهدت
        فيه للمرة الأولى؛ وبالنسبة إلى المعاملة المعلّقة هو تاريخ المعاملة، وإلا
        التاريخ الذي شوهدت فيه للمرة الأولى. افتراضياً، يبدأ `date_from` من
        بداية السجل المخزَّن، ولا يوجد حد أعلى لـ`date_to`، وتُعاد المعاملات
        المُرحَّلة والمعلّقة معاً.


        تحدد الصفحة الأولى المعاملات المشمولة، ويُعرض كل منها بحالته الحالية:
        المعاملة التي تُحذف أثناء التصفح تخرج من الصفحات اللاحقة، وتُبلِّغ عنها
        خلاصة التغييرات (`sync_transactions`). يواصل `page_token` قراءة واحدة
        ويبقى صالحاً لمدة ساعة؛ والرمز المنتهي يُعيد الاستجابة `410
        page_expired`، لذا أعد بدء القراءة من الاستعلام الأصلي. لإبقاء نسخة
        محدَّثة، استخدم خلاصة التغييرات بدلاً من إعادة قراءة النطاقات.


        ترويسات الاستجابة: `X-Bank-Last-Synced-At` و`Cache-Control: no-store`.


        يتطلب مفتاح API يملك إذن بيانات البنك (`bank-data`): قراءة لهذه العملية.
        المفتاح ذو الوصول الكامل لا يشمل هذا الإذن، لذا امنحه صراحةً عند إنشاء
        المفتاح، وإلا أعاد الاستدعاء `403 bank_data_access_denied`. يقرأ تطبيق
        البيئة التجريبية بيانات بنكه التجريبي بمفتاح API وحده. ويُرفض الطلب بدون
        مفتاح API (بيانات اعتماد العميل) عند طلب البيانات الخام بالخطأ نفسه
        `403`.
      operationId: listBankTransactions
      parameters:
        - name: account_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: معرّف الحساب.
        - name: date_from
          in: query
          required: false
          schema:
            type: string
            format: date
          description: تاريخ بداية السريان الأول المشمول، ويُحتسب ضمنه.
        - name: date_to
          in: query
          required: false
          schema:
            type: string
            format: date
          description: آخر تاريخ سريان يُشمل في النطاق، شاملاً. لا يوجد حد أعلى عند تركه.
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - booked
              - pending
          description: 'المعاملات المُرحّلة أو المعلقة فقط. القيمة الافتراضية: كلاهما.'
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 100
            minimum: 1
            maximum: 500
          description: حجم الصفحة، من 1 إلى 500. القيمة الافتراضية 100.
        - name: page_token
          in: query
          required: false
          schema:
            type: string
          description: قيمة `next_page_token` الخاصة بالصفحة السابقة.
      responses:
        '200':
          description: صفحة من المعاملات.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BankTransactionPage'
              examples:
                Booked and pending:
                  summary: معاملتان مسجّلتان ومعاملة معلّقة
                  value:
                    items:
                      - id: e5b1f8a3-0d47-4c92-a6e0-7f3c2d9b1845
                        account_id: a71f0c2e-5d38-4b96-a1c4-3e9f8d2b7a10
                        status: pending
                        pending_id: null
                        reverses_id: null
                        booking_date: null
                        value_date: null
                        transaction_date: '2026-11-21'
                        effective_date: '2026-11-21'
                        amount: '-64.90'
                        currency: EUR
                        direction: debit
                        description: PAGO TARJETA PAPELERIA CENTRAL
                        counterparty:
                          name: PAPELERIA CENTRAL
                          iban: null
                          bic: null
                        remittance:
                          unstructured: []
                          structured: null
                          reference: null
                        bank_transaction_code: null
                        bank_reference: null
                        identity_quality: derived
                        end_to_end_id: null
                        mandate_id: null
                        creditor_id: null
                        merchant_category_code: '5943'
                        exchange: null
                        balance_after: null
                        category: office_supplies
                        first_seen_at: '2026-11-21T12:04:40Z'
                        updated_at: '2026-11-21T12:04:40Z'
                      - id: 8f2b6d41-9c3a-4e57-b0d8-1a7e5c4f2963
                        account_id: a71f0c2e-5d38-4b96-a1c4-3e9f8d2b7a10
                        status: booked
                        pending_id: null
                        reverses_id: null
                        booking_date: '2026-11-19'
                        value_date: '2026-11-20'
                        transaction_date: null
                        effective_date: '2026-11-19'
                        amount: '-1210.00'
                        currency: EUR
                        direction: debit
                        description: RECIBO SEGURIDAD SOCIAL
                        counterparty:
                          name: ENTIDAD PUBLICA DE EJEMPLO
                          iban: ES0000000000000000005766
                          bic: null
                        remittance:
                          unstructured:
                            - RECIBO SEGURIDAD SOCIAL 10/2026
                          structured: null
                          reference: '0028123456789'
                        bank_transaction_code: PMNT-RDDT-ESDD
                        bank_reference: '2026111900012345'
                        identity_quality: bank_reference
                        end_to_end_id: NOTPROVIDED
                        mandate_id: ES-SS-000123
                        creditor_id: ES00ZZZ00000000
                        merchant_category_code: null
                        exchange: null
                        balance_after: '18250.34'
                        category: taxes_and_social_security
                        first_seen_at: '2026-11-20T06:00:12Z'
                        updated_at: '2026-11-20T06:00:12Z'
                      - id: 2c9e7a05-6b14-4d38-8f2a-b3d51e0c9a67
                        account_id: a71f0c2e-5d38-4b96-a1c4-3e9f8d2b7a10
                        status: booked
                        pending_id: null
                        reverses_id: null
                        booking_date: '2026-11-18'
                        value_date: '2026-11-18'
                        transaction_date: null
                        effective_date: '2026-11-18'
                        amount: '3450.00'
                        currency: EUR
                        direction: credit
                        description: TRANSFERENCIA FACTURA 2026-0418
                        counterparty:
                          name: CLIENTE DE EJEMPLO SL
                          iban: ES0000000000000000007891
                          bic: null
                        remittance:
                          unstructured:
                            - FRA 2026-0418
                          structured: null
                          reference: null
                        bank_transaction_code: PMNT-RCDT-ESCT
                        bank_reference: '2026111800009876'
                        identity_quality: bank_reference
                        end_to_end_id: 2026-0418
                        mandate_id: null
                        creditor_id: null
                        merchant_category_code: null
                        exchange: null
                        balance_after: '19460.34'
                        category: income
                        first_seen_at: '2026-11-19T06:00:10Z'
                        updated_at: '2026-11-19T06:00:10Z'
                    next_page_token: null
                    has_more: false
          headers:
            X-Bank-Last-Synced-At:
              description: >-
                متى جُلبت بيانات الحساب آخر مرة من البنك. تظهر بعد مزامنة
                الحساب.
              schema:
                type: string
                format: date-time
            Cache-Control:
              description: '`no-store`.'
              schema:
                type: string
        '400':
          description: >-
            رمز الصفحة غير صالح أو يتبع قراءة أخرى، أو أن أحد المعاملات خارج
            النطاق المسموح، بما في ذلك كون `date_from` بعد `date_to`. يحدد
            `field` المعامل المقصود.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BankDataError'
              examples:
                Invalid token:
                  summary: رمز غير صالح
                  value:
                    code: invalid_cursor
                    message: The cursor or page token is not valid.
                    request_id: 3f6a1c8e-92b5-4d07-a1e3-8c4b7f0d2e59
                    field: page_token
                    next_action: null
                    retry_after: null
                Token for another read:
                  summary: token لقراءة أخرى
                  value:
                    code: page_token_mismatch
                    message: >-
                      The page token belongs to a different read. Restart with
                      the same filters.
                    request_id: 3f6a1c8e-92b5-4d07-a1e3-8c4b7f0d2e59
                    field: page_token
                    next_action: null
                    retry_after: null
                Invalid request:
                  summary: طلب غير صالح
                  value:
                    code: invalid_request
                    message: The request is not valid.
                    request_id: 3f6a1c8e-92b5-4d07-a1e3-8c4b7f0d2e59
                    field: date_from
                    next_action: null
                    retry_after: null
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/BankDataAccessDenied'
        '404':
          description: المورد غير موجود في هذا التطبيق وهذه البيئة.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BankDataError'
              examples:
                Not found:
                  summary: غير موجود
                  value:
                    code: not_found
                    message: The resource does not exist.
                    request_id: 3f6a1c8e-92b5-4d07-a1e3-8c4b7f0d2e59
                    field: null
                    next_action: null
                    retry_after: null
        '409':
          description: >-
            لم يعد الشخص يشارك هذا الحساب (`access_removed`)، أو حُذف الاتصال أو
            لم تعد بياناته قابلة للقراءة (`connection_not_active`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BankDataError'
              examples:
                Access removed:
                  summary: أُزيل الوصول
                  value:
                    code: access_removed
                    message: The person no longer shares this account.
                    request_id: 3f6a1c8e-92b5-4d07-a1e3-8c4b7f0d2e59
                    field: null
                    next_action: null
                    retry_after: null
        '410':
          description: انتهت صلاحية page_token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BankDataError'
              examples:
                Page expired:
                  summary: انتهت صلاحية الصفحة
                  value:
                    code: page_expired
                    message: The page token expired. Restart the read.
                    request_id: 3f6a1c8e-92b5-4d07-a1e3-8c4b7f0d2e59
                    field: page_token
                    next_action: restart_read
                    retry_after: null
        '429':
          $ref: '#/components/responses/RateLimitedRead'
        '500':
          $ref: '#/components/responses/BankDataInternalError'
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: curl
          label: curl
          source: >-
            curl
            'https://verification.didit.me/v3/bank/accounts/a71f0c2e-5d38-4b96-a1c4-3e9f8d2b7a10/transactions/?date_from=2026-01-01&date_to=2026-11-21&status=booked'
            \
              -H 'x-api-key: YOUR_API_KEY'
        - lang: python
          label: Python
          source: |-
            from didit import Didit

            # Reads DIDIT_API_KEY.
            client = Didit()

            result = client.bank.list_transactions(
                "11111111-2222-3333-4444-555555555555",
            )
            print(result)
        - lang: javascript
          label: Node.js
          source: >-
            import Didit from "@didit-protocol/sdk-node";


            // Reads DIDIT_API_KEY.

            const didit = new Didit();


            const result = await
            didit.bank.listTransactions("11111111-2222-3333-4444-555555555555");

            console.log(result);
        - lang: go
          label: Go
          source: "ctx := context.Background()\n// Reads DIDIT_API_KEY.\nclient := didit.NewClient()\n\nresult, err := client.Bank.ListTransactions(ctx, \"11111111-2222-3333-4444-555555555555\", didit.BankListTransactionsParams{})\nif err != nil {\n\tlog.Fatal(err)\n}\nfmt.Printf(\"%+v\\n\", result)"
        - lang: java
          label: Java
          source: >-
            import me.didit.Didit;


            // Reads DIDIT_API_KEY.

            Didit client = new Didit();


            var result =
            client.bank().listTransactions("11111111-2222-3333-4444-555555555555");

            System.out.println(result);
        - lang: php
          label: PHP
          source: >-
            <?php


            require 'vendor/autoload.php';


            use Didit\DiditClient;


            // Reads DIDIT_API_KEY.

            $didit = new DiditClient();


            $result =
            $didit->bank->listTransactions('11111111-2222-3333-4444-555555555555');

            print_r($result->toArray());
        - lang: ruby
          label: Ruby
          source: >-
            require "didit"


            # Reads DIDIT_API_KEY.

            didit = Didit::Client.new


            result =
            didit.bank.list_transactions("11111111-2222-3333-4444-555555555555")

            puts result.to_h
        - lang: csharp
          label: .NET
          source: >-
            using System;

            using System.Text.Json;

            using Didit;


            // Reads DIDIT_API_KEY.

            using var client = new DiditClient();


            var result = await
            client.Bank.ListTransactionsAsync("11111111-2222-3333-4444-555555555555");

            Console.WriteLine(JsonSerializer.Serialize(result));
components:
  schemas:
    BankTransactionPage:
      type: object
      description: >-
        صفحة من نتائج قراءة لنطاق زمني. تحدد الصفحة الأولى المعاملات المشمولة،
        ويُعرض كل معاملة بحالتها الحالية. المعاملة التي تُحذف أثناء التصفح تختفي
        من الصفحات اللاحقة ويُبلغ عنها عبر تغذية التغييرات.
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/BankTransaction'
          description: مرتبة تنازلياً حسب `effective_date`، ثم حسب `id`.
        next_page_token:
          type: string
          description: >-
            يستمر في هذه القراءة. يثبّت لقطة الصفحة الأولى، ويبقى صالحاً ساعة
            واحدة، ويرتبط بالتطبيق والبيئة والحساب وعوامل التصفية الخاصة بهذه
            القراءة.
          nullable: true
        has_more:
          type: boolean
      required:
        - items
        - next_page_token
        - has_more
    BankDataError:
      type: object
      description: جسم الخطأ لكل عملية من عمليات بيانات البنك. جميع الحقول موجودة دائماً.
      properties:
        code:
          type: string
          enum:
            - ongoing_access_not_available
            - segment_not_available
            - window_not_available
            - history_window_ambiguous
            - redirect_url_not_registered
            - link_origin_not_allowed
            - bank_data_access_denied
            - connection_not_active
            - consent_expired
            - renewal_not_needed
            - renewal_window_expired
            - access_removed
            - refresh_limit_reached
            - cursor_expired
            - page_expired
            - invalid_cursor
            - page_token_mismatch
            - contract_rate_missing
            - insufficient_credits
            - invalid_request
            - not_found
            - internal_error
          description: >-
            رمز الخطأ بصيغة يمكن للآلة قراءتها. اعتمد على هذا الرمز في التفريع،
            ولا تعتمد على `message` أبداً.
        message:
          type: string
          description: شرح بلغة بسيطة للمطوّر. قد تتغير الصياغة؛ لا تحلّلها برمجياً.
        request_id:
          type: string
          description: معرّف هذا الطلب. اذكره عند التواصل مع الدعم.
        field:
          type: string
          description: >-
            حقل الطلب المطلوب تصحيحه، إذا كان الخطأ متعلقاً بحقل واحد. وإلا
            فتكون القيمة `null`.
          nullable: true
        next_action:
          type: string
          enum:
            - retry_later
            - renew_connection
            - create_link
            - restart_from_cursor
            - restart_read
            - top_up_balance
            - enable_bank_data_access
            - contact_support
            - null
          description: >-
            ما الذي ينبغي فعله تاليًا، حتى يتمكن العميل من التصرف دون تخمين.
            القيمة `null` عندما لا توجد خطوة تالية قياسية.
          nullable: true
        retry_after:
          type: integer
          description: >-
            عدد الثواني التي تنتظرها قبل إعادة المحاولة. يُضبط عند أخطاء حد
            المعدل والأخطاء المؤقتة، وإلا فهو `null`.
          nullable: true
      required:
        - code
        - message
        - request_id
        - field
        - next_action
        - retry_after
      example:
        code: ongoing_access_not_available
        message: >-
          This bank cannot keep access open. Use access one_time or choose
          another bank.
        request_id: 3f6a1c8e-92b5-4d07-a1e3-8c4b7f0d2e59
        field: institution_id
        next_action: create_link
        retry_after: null
    BankTransaction:
      type: object
      description: >-
        حركة واحدة على الحساب. أي حقل لا يرسله البنك يكون `null`؛ وتسرد إمكانات
        المؤسسة الحقول التي يُعرف أن البنك يرسلها.
      properties:
        id:
          type: string
          description: >-
            معرّف Didit مُبهم، يُخزَّن عند أول ظهور. تحتفظ الحركة نفسها بمعرّفها
            عبر القراءات والمزامنات والتجديدات. يبيّن `identity_quality` مدى قوة
            هذا الضمان.
          format: uuid
        account_id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - booked
            - pending
          description: >-
            للمعاملة المعلقة معرّف خاص بها. عندما يسجّلها البنك، تحمل المعاملة
            المسجّلة `pending_id` حيث يربط البنك بينهما، وتظهر المعاملة المعلقة
            في `removed` مع `reason: pending_booked`.
        pending_id:
          type: string
          description: >-
            المعاملة المعلّقة التي حلّت محل هذه المعاملة. تُحدد فقط عندما
            يربطهما البنك، ولا تُخمَّن أبدًا.
          format: uuid
          nullable: true
        reverses_id:
          type: string
          description: >-
            المعاملة التي تعكسها هذه المعاملة، عندما يربط البنك بينهما.
            والمعاملة العكسية معاملة جديدة.
          format: uuid
          nullable: true
        booking_date:
          type: string
          format: date
          nullable: true
        value_date:
          type: string
          format: date
          nullable: true
        transaction_date:
          type: string
          format: date
          nullable: true
        effective_date:
          type: string
          description: >-
            التاريخ الذي تستخدمه مرشحات التاريخ كما يعرضه البنك بتوقيته الخاص
            دون أي تحويل: بالنسبة للمعاملة المُرحّلة فهو تاريخ ترحيلها، وإلا
            فتاريخ القيمة، وإلا فتاريخ رصدها لأول مرة؛ وبالنسبة للمعاملة
            المعلّقة فهو تاريخ المعاملة، وإلا فتاريخ رصدها لأول مرة.
          format: date
        amount:
          type: string
          description: مبلغ موقّع كسلسلة عشرية. السالب يعني مبلغاً خارجاً.
          pattern: ^-?\d+(\.\d+)?$
        currency:
          type: string
          pattern: ^[A-Z]{3}$
          description: رمز العملة وفق ISO 4217.
        direction:
          type: string
          enum:
            - credit
            - debit
          description: يكرر إشارة `amount`.
        description:
          type: string
          nullable: true
        counterparty:
          $ref: '#/components/schemas/BankTransactionCounterparty'
        remittance:
          $ref: '#/components/schemas/BankTransactionRemittance'
        bank_transaction_code:
          type: string
          nullable: true
        bank_reference:
          type: string
          description: >-
            مرجع القيد الثابت لدى المصرف حيثما يوفره. تكون القيمة `null` بخلاف
            ذلك، ولا تُختلق أبدًا.
          nullable: true
        identity_quality:
          type: string
          enum:
            - bank_reference
            - route_id
            - derived
          description: >-
            كيفية مطابقة `id`. `bank_reference` و`route_id` ثابتان. يُطابَق
            `derived` حسب المحتوى: يبقى ثابتاً طالما يواصل البنك الإبلاغ عن
            القيد دون تغيير، وقد يظهر تصحيح من البنك كعنصر `removed` وعنصر
            `added`.
        end_to_end_id:
          type: string
          nullable: true
        mandate_id:
          type: string
          nullable: true
        creditor_id:
          type: string
          nullable: true
        merchant_category_code:
          type: string
          nullable: true
        exchange:
          type: object
          nullable: true
          description: تفاصيل تحويل العملات حيث يوفرها البنك.
          properties:
            source_amount:
              type: string
              pattern: ^-?\d+(\.\d+)?$
              nullable: true
            source_currency:
              type: string
              nullable: true
            rate:
              type: string
              pattern: ^-?\d+(\.\d+)?$
              nullable: true
        balance_after:
          type: string
          description: الرصيد بعد المعاملة، عندما يوفره البنك.
          pattern: ^-?\d+(\.\d+)?$
          nullable: true
        category:
          type: string
          description: تصنيف Didit الخاص، عند انطباقه.
          nullable: true
        first_seen_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - account_id
        - status
        - pending_id
        - reverses_id
        - booking_date
        - value_date
        - transaction_date
        - effective_date
        - amount
        - currency
        - direction
        - description
        - counterparty
        - remittance
        - bank_transaction_code
        - bank_reference
        - identity_quality
        - end_to_end_id
        - mandate_id
        - creditor_id
        - merchant_category_code
        - exchange
        - balance_after
        - category
        - first_seen_at
        - updated_at
    RateLimitBudgetError:
      type: object
      description: >-
        تُرجع فقط عند رفض ميزانية وسيط تحديد المعدل. أخطاء 429 الأخرى، بما في
        ذلك تعارضات idempotency والحدود الخاصة بنقطة النهاية، لا تضمن هذه الحقول
        الوصفية.
      required:
        - detail
        - reference
        - limit
        - remaining
        - reset
        - window_seconds
      properties:
        detail:
          type: string
          description: رسالة رفض الميزانية الحالية المقروءة للإنسان.
        reference:
          type: string
          pattern: ^RL-[0-9a-f]{32}$
          description: >-
            مرجع الدعم المعتم: RL- متبوعة بـ 32 حرفًا سداسيًا عشريًا صغيرًا من
            UUID.
        limit:
          type: integer
          description: الميزانية للنطاق الذي تجاوز الحد؛ تساوي X-RateLimit-Limit.
        remaining:
          type: integer
          minimum: 0
          description: >-
            الميزانية المتبقية، محدودة بحيث لا تقل عن الصفر؛ تساوي
            X-RateLimit-Remaining.
        reset:
          type: integer
          format: int64
          description: >-
            وقت إعادة تعيين النافذة بالثواني منذ حقبة Unix، ويساوي
            X-RateLimit-Reset.
        window_seconds:
          type: integer
          description: >-
            مدة النافذة الثابتة بالثواني، وليست الفترة المتبقية للانتظار. يجب
            احترام Retry-After قبل إعادة المحاولة.
      example:
        detail: >-
          Write request rate limit exceeded. You can make up to 300 requests per
          minute.
        reference: RL-00000000000040008000000000000001
        limit: 300
        remaining: 0
        reset: 1794358860
        window_seconds: 60
    BankTransactionCounterparty:
      type: object
      properties:
        name:
          type: string
          nullable: true
        iban:
          type: string
          nullable: true
        bic:
          type: string
          nullable: true
      required:
        - name
        - iban
        - bic
    BankTransactionRemittance:
      type: object
      properties:
        unstructured:
          type: array
          items:
            type: string
        structured:
          type: string
          nullable: true
        reference:
          type: string
          nullable: true
      required:
        - unstructured
        - structured
        - reference
  responses:
    Unauthorized:
      description: غير مُصرَّح به
      content:
        application/json:
          examples:
            Invalid API Key:
              summary: مفتاح API غير صالح
              value:
                detail: Invalid API Key.
    BankDataAccessDenied:
      description: >-
        لا يملك مفتاح API صلاحية بيانات البنك (`bank-data`)، أو، بالنسبة
        للبيانات الخام في تطبيق إنتاجي، يكون الإعداد "Bank data in the API"
        متوقفا. بيانات البنك ليست جزءا من الوصول الكامل: يُرفض بهذا النص مفتاح
        الوصول الكامل، ومفتاح مقيّد بموارد أخرى، وطلب مصادق عليه دون مفتاح API
        (بيانات اعتماد العميل عند طلب البيانات الخام)، لذا أنشئ مفتاحا وامنحه
        الصلاحية صراحة. يحدث الرفض قبل أي بحث، لذا لا يدل على وجود الكائن أو
        عدمه.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/BankDataError'
          examples:
            Bank data not allowed:
              summary: بيانات البنك غير مسموح بها
              value:
                code: bank_data_access_denied
                message: >-
                  Bank data calls need an API key that carries the Bank data
                  permission.
                request_id: 3f6a1c8e-92b5-4d07-a1e3-8c4b7f0d2e59
                field: null
                next_action: enable_bank_data_access
                retry_after: null
    RateLimitedRead:
      description: >-
        تجاوزت ميزانية القراءة الخاصة بالوسيط. التزم بالرأس Retry-After قبل
        إعادة المحاولة.
      headers:
        Retry-After:
          $ref: '#/components/headers/BudgetRetryAfter'
        X-RateLimit-Scope:
          $ref: '#/components/headers/BudgetXRateLimitScope'
        X-RateLimit-Limit:
          $ref: '#/components/headers/BudgetXRateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/BudgetXRateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/BudgetXRateLimitReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RateLimitBudgetError'
          example:
            detail: >-
              GET request rate limit exceeded. You can make up to 600 requests
              per minute.
            reference: RL-00000000000040008000000000000001
            limit: 600
            remaining: 0
            reset: 1794358860
            window_seconds: 60
    BankDataInternalError:
      description: >-
        حدث خطأ من جهة Didit. أي خطأ غير متوقع تحت `/v3/bank/` يُعاد بصيغة خطأ
        Bank، وليس بصفحة HTML أبداً: أرفق `request_id` عند التواصل مع الدعم.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/BankDataError'
          examples:
            Internal error:
              summary: خطأ غير متوقع
              value:
                code: internal_error
                message: >-
                  Something went wrong on our side. Quote the request_id to
                  support.
                request_id: 3f6a1c8e92b54d07a1e38c4b7f0d2e59
                field: null
                next_action: contact_support
                retry_after: null
  headers:
    BudgetRetryAfter:
      description: >-
        عدد الثواني للانتظار، مقرّباً إلى أعلى حتى بداية النافذة التالية. يظهر
        في حالات رفض ميزانية الوسيط.
      schema:
        type: integer
    BudgetXRateLimitScope:
      description: النطاق الذي تجاوز ميزانيته. يظهر في حالات رفض ميزانية الوسيط.
      schema:
        type: string
    BudgetXRateLimitLimit:
      description: >-
        الميزانية المخصصة للنطاق الذي تم تجاوزه؛ وتساوي حد جسم الطلب. تظهر في
        حالات الرفض الصادرة عن ميزانية البرمجية الوسيطة.
      schema:
        type: integer
    BudgetXRateLimitRemaining:
      description: >-
        الميزانية المتبقية، محدودة بحيث لا تقل عن الصفر؛ تساوي remaining في
        الجسم. تظهر في حالات رفض الميزانية من الوسيط.
      schema:
        type: integer
    BudgetXRateLimitReset:
      description: >-
        وقت إعادة التعيين بالثواني منذ حقبة Unix؛ يساوي قيمة reset في جسم
        الاستجابة. يظهر في حالات رفض ميزانية الوسيط.
      schema:
        type: integer
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        مفتاح API الخاص بتطبيقك، ويمكن الحصول عليه من Developers -> API keys في
        Business Console. يملك المفتاح الأساسي صلاحية وصول كاملة. يمكن تقييد
        المفتاح المسمّى: بلا صلاحية، أو قراءة، أو كتابة لكل مورد، ويمكن قصره على
        بعض سير العمل أو على الجلسات المعتمدة، وعلى قائمة من عناوين IP، وعلى
        تاريخ انتهاء. يعني الرمز 401 أن المفتاح غير صحيح أو ملغى أو منتهي
        الصلاحية. ويعني الرمز 403 أنه لم يُرسل أي مفتاح، أو أن المفتاح لا يملك
        صلاحية لهذا المورد أو الإجراء، أو أن الطلب صدر من عنوان خارج قائمة IP
        الخاصة به. ويعني الرمز 404 على مسار جلسة أن الجلسة خارج سير عمل المفتاح
        أو حالاته المسموح بها. يتلقى المفتاح الذي لا يملك وصولًا إلى الوسائط
        عناوين URL للصور والفيديو وملفات PDF بقيمة null، ويتلقى المفتاح الذي لا
        يملك صلاحية كتابة الجلسات روابط الجلسات والرموز بقيمة null. راجع
        https://docs.didit.me/console/api-keys.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.