لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
List products on the channel
POST
/ admin/ v1/ stores/ {store_id}/ sales-channels/ {app_id}/ listings- products:write
- يدعم Idempotency-Key
List products on the channel: up to 250, or every active product; those already listed stay as they are.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.app_idstringمطلوبThe channel's app
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
product_idsarray of stringsall_activebooleanEvery active product, instead of
product_ids.
ما يُرجعه
200 How many were newly listed.
الأخطاء
- 404
not_foundNo installed app adds this channel. - 422
validation_failedNo products, or more than 250.