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

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

Move unavailable

POST/admin/v1/stores/{store_id}/inventory/unavailable
  • يدعم Idempotency-Key

Hold units back from sale (damaged, waiting for a quality check, safety stock), or put held units back on sale. They stay on the books; nobody can buy them.

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

  • store_idstringمطلوب

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

الترويسات

  • Idempotency-Keystring

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

  • shop-api-versionYYYY-MM

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

الجسم

  • variant_idstringمطلوب

    TypeID with the var prefix.

  • location_idstringمطلوب

    TypeID with the loc prefix.

  • reasonenumمطلوب
    • damaged
    • quality_control
    • safety_stock
    • other
  • quantityintegerمطلوب

    Units to hold back; below zero puts held units back on sale.

  • notestring · أو null

ما يُرجعه

200 The variant's units held back now.

الأخطاء

  • 403forbiddenMissing permission, or a branch the caller doesn't work at.
  • 404not_foundNo such variant or location.
  • 409Stock isn't tracked.
  • 422validation_failedMore than is available, or than is held for that reason.