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.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
lapse_daysintegerrequiredDays without an order after which a customer has lapsed: 7–730.
loyal_ordersintegerrequiredOrders from which a customer is loyal: 2–100.
Returns
200 Saved.
Errors
- 422
validation_failedOut of range.