لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Put selling plans
PUT
/ admin/ v1/ stores/ {store_id}/ products/ {product_id}/ selling-plans- products:write
Replaces the product's selling plans: plans left out are retired, and subscriptions on them renew on their terms.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.product_idstringمطلوبمعرّف من نوع
prod، مثلprod_01k8qs5s….
الترويسات
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
plansarray of objectsمطلوبIn the order the storefront offers them; plans left out are retired.
ما يُرجعه
200 Its plans now.
الأخطاء
- 404
not_foundNo such product or plan. - 422
validation_failedInvalid plans.