لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Create shipment
/ admin/ v1/ stores/ {store_id}/ orders/ {order_id}/ shipments- orders:write
- يدعم Idempotency-Key
Books the order's parcel with the carrier: the units it carries are fulfilled with the waybill, the label is kept and tracking starts.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.order_idstringمطلوبمعرّف من نوع
ord، مثلord_01k8qs5s….
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
carrier_account_idstringمطلوبTypeID with the
carrprefix.servicestring · أو nullDefaults to the account's default service.
linesarray of objects · أو nullOmit to ship every unit still to ship.
parcelsinteger · أو nullDefaults to 1.
weight_gramsinteger · أو nullDefaults to the products' weights.
collect_codboolean · أو nullOmit to collect when the order awaits cash on delivery.
notify_customerbooleanEmail the customer the tracking link.
collectobject · أو nullBring these back from the customer in the same trip: an exchange at the door, for carriers that swap items.
ما يُرجعه
201 Booked.
الأخطاء
- 409The order can't ship, or the carrier refused.
- 422
validation_failedInvalid input. - 503
unavailableThe carrier couldn't be reached.