Invoice totals
GET
/ admin/ v1/ stores/ {store_id}/ invoices/ totals- orders:read
What every document matching the list's filters adds up to; limit and cursor are ignored.
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 What the matching documents add up to.
Errors
- 403
forbiddenMissing permission. - 422
validation_failedInvalid filter.