لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
List orders
/ admin/ v1/ stores/ {store_id}/ orders- orders:read
List orders, newest first, with filters and cursor pagination.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.
معاملات الاستعلام
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_idstringمعرّف من نوع
cus، مثل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.
الترويسات
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
ما يُرجعه
200 A page of orders.
الأخطاء
- 400
bad_requestMalformed query or cursor. - 403
forbiddenMissing permission. - 422
validation_failedInvalid filter.