لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Receive lot
POST
/ admin/ v1/ stores/ {store_id}/ inventory/ lots- يدعم Idempotency-Key
Stock arriving into a lot, with its expiry date on first receipt.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
variant_idstringمطلوبTypeID with the
varprefix.location_idstringمطلوبTypeID with the
locprefix.lot_numberstringمطلوبThe supplier's batch number.
quantityintegerمطلوبexpires_ondate · أو null
ما يُرجعه
200 The lot, with what it holds now.
الأخطاء
- 404
not_foundNo such variant or location. - 409The product doesn't keep lots (
lots_off). - 422
validation_failedNo lot number, or a quantity out of range.