لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
List invoices and credit notes
GET
/ admin/ v1/ stores/ {store_id}/ invoicesList invoices and credit notes, newest first, with filters and cursor pagination.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.
معاملات الاستعلام
kindenumOnly invoices, or only credit notes.
- invoice
- credit_note
order_idstringمعرّف من نوع
ord، مثلord_01k8qs5s….qstringDocument number (
INV-000042) or order name (#1001).issued_fromstringIssued at or after this instant (RFC 3339).
issued_beforestringIssued before this instant (RFC 3339).
zatca_statusenumPhase 2 documents whose ZATCA submission has this status (
rejected: those to fix).- pending
- reported
- reported_with_warnings
- cleared
- cleared_with_warnings
- rejected
limitinteger1–250, default 50.
cursorstringpage.next_cursorfrom the previous page.
الترويسات
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
ما يُرجعه
200 A page of documents.
الأخطاء
- 400
bad_requestMalformed query or cursor. - 403
forbiddenMissing permission. - 404
not_foundNo such store. - 422
validation_failedInvalid filter.