لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Scan count
POST
/ admin/ v1/ stores/ {store_id}/ inventory/ counts/ {count_id}/ scan- inventory:write
- يدعم Idempotency-Key
Count one more (or quantity more) of the item whose barcode or SKU is code, adding it to the count if it isn't there.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.count_idstringمطلوبمعرّف من نوع
scnt، مثلscnt_01k8qs5s….
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
codestringمطلوبA barcode or SKU, matched exactly.
quantityinteger · أو nullUnits to add, 1–1,000; default 1.
ما يُرجعه
200 The line as counted.
الأخطاء
- 404
not_foundNo such count. - 409The count is closed, or full.
- 422
validation_failedNo item (or more than one) has this code, or a bad quantity.