Order totals
/ admin/ v1/ stores/ {store_id}/ orders/ totals- orders:read
What every order matching the filters adds up to: how many, and the items and totals of those that weren't cancelled. Takes the list's own filters; its sort and paging 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
qstringOrder number, email, phone or shipping name.
statusstringAny of these statuses, comma-separated:
open,closed,cancelled.financial_statusstringComma-separated financial statuses, e.g.
pending,authorized.fulfillment_statusstringComma-separated fulfillment statuses, e.g.
unfulfilled,partial.customer_idstringAn ID like
cus_01k8qs5s….payment_methodstringComma-separated payment methods, e.g.
cash_on_delivery,mada.delivery_methodstringAny of these delivery options, by their titles at checkout, comma-separated; quote a title that has a comma (
"Riyadh, same day",Aramex Express).citystringAny of these shipping cities, whatever their case, comma-separated (quoted like
delivery_method).placed_fromstringPlaced on or after this store-local day,
YYYY-MM-DD.placed_tostringPlaced on or before this store-local day,
YYYY-MM-DD.deliver_fromstringTo deliver (or collect) on or after this day,
YYYY-MM-DD.deliver_tostringTo deliver (or collect) on or before this day,
YYYY-MM-DD.on_holdbooleantrue: only orders on hold.false: only those that aren't.delivery_stageenumWhere the latest parcel is.
- ready_to_ship
- with_courier
- delivered
- returned
delivered_onstringDelivered on this store-local day,
YYYY-MM-DD.sourcestringComma-separated sales channels:
pos(in the shops),online_store,storefront,admin,api. Online sales areonline_store,storefront.tagstringComma-separated tags: orders carrying any of them, whatever their case.
custom_statusstringComma-separated IDs of the store's statuses: orders in any of them.
confirmation_statusstringComma-separated confirmation states:
pending,confirmed,declined,expired.awaiting_confirmationbooleantrue: only orders waiting for their customer's confirmation;false: only the others, which can be packed.preorderbooleantrue: only orders with a line sold as a pre-order;false: only the others.assigneestringWhose orders:
me,anyone,noneor a staff member's ID.receipt_to_reviewbooleantrue: only orders with a transfer receipt waiting for review.location_idstringOnly orders whose stock this branch sends.
sortenumnewest(default) oroldestfirst, or by total:total_desc,total_asc.- newest
- oldest
- total_desc
- total_asc
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 orders add up to.
Errors
- 400
bad_requestMalformed query. - 403
forbiddenMissing permission. - 422
validation_failedInvalid filter.