لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Pack orders
POST
/ admin/ v1/ stores/ {store_id}/ orders/ fulfillments/ bulk- orders:write
- يدعم Idempotency-Key
Fulfil what each of up to 250 orders has left to ship from one branch, each order on its own; orders that can't be packed are listed with the reason.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
order_idsarray of stringsمطلوبUp to 250.
location_idstring · أو nullThe branch they leave from. Defaults to the one most of them ship from.
notify_customerbooleanTell each customer their order is on its way.
ما يُرجعه
200 What was packed and what wasn't.
الأخطاء
- 403
forbiddenMissing permission, or a branch the caller doesn't work at. - 404
not_foundNone of the orders exists. - 422
validation_failedNo orders, or more than 250.