Update loyalty program detail
Update loyalty program detail
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
loyalty program id
Body
name of loyalty program
frequency at which loyalty program will be renewed.
yearly, never, custom If renewal_type is "custom", a corresponding valid date must be specified; for other types, the value should be null.
If renewal_type is "custom", a corresponding valid date must be specified; for other types, the value should be null.
to decide tier upgradation based on no of orders or total purchase value
total-spent, total-orders, custom Defines how points are earned. "dynamic" means points are calculated based on a rate (points_earning_rate), "fixed" means a fixed number of points are given.
dynamic, fixed The monetary value of one loyalty point.
Defines when loyalty points are expired. "never" means the points never expire, "inactivity" means the points expire after a certain number of days of inactivity, "reset_date" means the points expire when the loyalty program is reset.
never, inactivity, reset_date The number of days after the last order was placed, after which the points expire if redemption_expiry_type is "inactivity". required if redemption_expiry_type is "inactivity", otherwise should be null.
If status is "paused", the date and time from which the loyalty program will be paused. If not specified, the loyalty program will be paused immediately.
If status is "paused", the date and time until which the loyalty program will be paused. If not specified, the loyalty program will remain paused until it is resumed.