لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Complete a count
POST
/ admin/ v1/ stores/ {store_id}/ inventory/ counts/ {count_id}/ complete- inventory:write
- يدعم Idempotency-Key
Complete a count: each counted line corrects on-hand stock by counted − on hand when it was counted (correction in the ledger); uncounted lines stay, or go to zero with uncounted: zero (counts of everything only).
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.count_idstringمطلوبمعرّف من نوع
scnt، مثلscnt_01k8qs5s….
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
uncountedenum · أو nullWhat happens to lines nobody counted:
keep(default) orzero(counts of everything).- keep
- zero
ما يُرجعه
200 The completed count, with what it found.
الأخطاء
- 404
not_foundNo such count. - 409The count is closed, nothing was counted, or zero asked of a count of some items.