Skip to content

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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

Headers

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • lapse_daysintegerrequired

    Days without an order after which a customer has lapsed: 7–730.

  • loyal_ordersintegerrequired

    Orders from which a customer is loyal: 2–100.

Returns

200 Saved.

Errors

  • 422validation_failedOut of range.