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

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

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 · أو null

    Up to 100 characters, such as "Year end 2026".

ما يُرجعه

201 The count.

الأخطاء

  • 403forbiddenMissing permission, or a location you don't work at.
  • 409A count is open there already, or there are more than 10,000 items.
  • 422validation_failedAn unknown or inactive location, or a bad name.