Save loyalty program
PUT
/ admin/ v1/ stores/ {store_id}/ loyalty/ program- discounts:write
Saves the programme.
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
enabledbooleanrequiredmodeenumrequired- points
- cashback
points_per_unitintegerrequiredredeem_pointsintegerrequiredredeem_valueintegerrequiredIn minor units.
min_redeem_pointsintegerrequiredcashback_bpintegerrequiredhold_daysintegerrequiredtier_windowenumrequired- lifetime
- year
notify_customersbooleanrequired
Returns
200 The programme.
Errors
- 422
validation_failedInvalid settings.