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

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

Ship a draft

POST/admin/v1/stores/{store_id}/inventory/transfers/{transfer_id}/ship
  • inventory:write
  • يدعم Idempotency-Key

Ship a draft: its units leave the origin's stock and show as incoming at the destination. All lines or none; each needs its units available at the origin unless the item keeps selling at zero.

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

  • store_idstringمطلوب

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

  • transfer_idstringمطلوب

    معرّف من نوع xfer، مثل xfer_01k8qs5s….

الترويسات

  • Idempotency-Keystring

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

  • shop-api-versionYYYY-MM

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

ما يُرجعه

200 The shipped transfer.

الأخطاء

  • 404not_foundNo such transfer.
  • 409The transfer isn't a draft.
  • 422validation_failedNot enough stock at the origin, an inactive location, or an item that no longer exists.