انتقل إلى المحتوى

لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.

List invoices and credit notes

GET/admin/v1/stores/{store_id}/invoices

    List invoices and credit notes, newest first, with filters and cursor pagination.

    معاملات المسار

    • store_idstringمطلوب

      معرّف من نوع store، مثل store_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.

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

    • kindenum

      Only invoices, or only credit notes.

      • invoice
      • credit_note
    • order_idstring

      معرّف من نوع ord، مثل ord_01k8qs5s….

    • qstring

      Document number (INV-000042) or order name (#1001).

    • issued_fromstring

      Issued at or after this instant (RFC 3339).

    • issued_beforestring

      Issued before this instant (RFC 3339).

    • zatca_statusenum

      Phase 2 documents whose ZATCA submission has this status (rejected: those to fix).

      • pending
      • reported
      • reported_with_warnings
      • cleared
      • cleared_with_warnings
      • rejected
    • limitinteger

      1–250, default 50.

    • cursorstring

      page.next_cursor from the previous page.

    الترويسات

    • shop-api-versionYYYY-MM

      الإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.

    ما يُرجعه

    200 A page of documents.

    الأخطاء

    • 400bad_requestMalformed query or cursor.
    • 403forbiddenMissing permission.
    • 404not_foundNo such store.
    • 422validation_failedInvalid filter.