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

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

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

    Units to add, 1–1,000; default 1.

ما يُرجعه

200 The line as counted.

الأخطاء

  • 404not_foundNo such count.
  • 409The count is closed, or full.
  • 422validation_failedNo item (or more than one) has this code, or a bad quantity.