List invoices and credit notes
GET
/ admin/ v1/ stores/ {store_id}/ invoicesList invoices and credit notes, newest first, with filters and cursor pagination.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Query parameters
kindenumOnly invoices, or only credit notes.
- invoice
- credit_note
order_idstringAn ID like
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.
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Returns
200 A page of documents.
Errors
- 400
bad_requestMalformed query or cursor. - 403
forbiddenMissing permission. - 404
not_foundNo such store. - 422
validation_failedInvalid filter.