لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Set lifecycle
PUT
/ admin/ v1/ stores/ {store_id}/ customers/ lifecycle- settings:write
Set when customers lapse and from how many orders they're loyal; the list's stages, counts and segments follow at once.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.
الترويسات
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
lapse_daysintegerمطلوبDays without an order after which a customer has lapsed: 7–730.
loyal_ordersintegerمطلوبOrders from which a customer is loyal: 2–100.
ما يُرجعه
200 Saved.
الأخطاء
- 422
validation_failedOut of range.