انتقل إلى المحتوى

لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.

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 · أو null

    The branch they leave from. Defaults to the one most of them ship from.

  • notify_customerboolean

    Tell each customer their order is on its way.

ما يُرجعه

200 What was packed and what wasn't.

الأخطاء

  • 403forbiddenMissing permission, or a branch the caller doesn't work at.
  • 404not_foundNone of the orders exists.
  • 422validation_failedNo orders, or more than 250.