لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
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
varprefix.location_idstringمطلوبTypeID with the
locprefix.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.
الأخطاء
- 403
forbiddenMissing permission, or a branch the caller doesn't work at. - 404
not_foundNo such variant or location. - 409Stock isn't tracked.
- 422
validation_failedMore than is available, or than is held for that reason.