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

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

Create fulfillment

POST/admin/v1/stores/{store_id}/orders/{order_id}/fulfillments
  • orders:write
  • يدعم Idempotency-Key

Ship units (all remaining by default), with tracking.

معاملات المسار

  • store_idstringمطلوب

    معرّف من نوع store، مثل store_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.

  • order_idstringمطلوب

    معرّف من نوع ord، مثل ord_01k8qs5s….

الترويسات

  • Idempotency-Keystring

    أرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.

  • shop-api-versionYYYY-MM

    الإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.

الجسم

  • linesarray of objects · أو null

    Units to ship. Omit to ship everything still to ship.

  • location_idstring · أو null

    The location the parcel leaves from.

  • trackingobject
  • notify_customerboolean

    Email the customer that the items shipped.

ما يُرجعه

201 Fulfilled; the updated order.

الأخطاء

  • 403forbiddenMissing permission.
  • 404not_foundNo such order.
  • 409The order isn't open or nothing is left to ship.
  • 422validation_failedInvalid lines or tracking.