لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Start a count at one location
POST
/ admin/ v1/ stores/ {store_id}/ inventory/ counts- يدعم Idempotency-Key
Start a count at one location: of everything there (every counted variant gets a line, up to 10,000) or of items added while counting. One count is open at a location at a time.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
location_idstringمطلوبAn active location; one count is open there at a time.
scopeenumمطلوبall: every counted variant (up to 10,000);some: items added while counting.- all
- some
namestring · أو nullUp to 100 characters, such as "Year end 2026".
ما يُرجعه
201 The count.
الأخطاء
- 403
forbiddenMissing permission, or a location you don't work at. - 409A count is open there already, or there are more than 10,000 items.
- 422
validation_failedAn unknown or inactive location, or a bad name.