Commerce
setShopRewards
Set Shop Rewards
Change a shop's rewards program: points on or off, points per dollar, the redemption step, tier names and thresholds, punch card on or off, card size and reward, the spend ladder steps, and the…
Arguments
birthdayEnabledbooleanoptionalWhether members get the birthday reward.birthdayLabelstringoptionalWhat the birthday reward is called, e.g. "Birthday minicake".birthdayMinOrdersintegeroptionalOrders a member needs before the birthday reward unlocks.cardSizeintegeroptionalPunches that fill one card (one punch per order).ladderobject[]optionalThe spend ladder, replacing the whole list. Each step pays once at atMinor CENTS of spend into the cycle (44400 is $444); the last step closes the cycle and it starts again. Ascending.pointsEnabledbooleanoptionalfalse stops customers earning points. Balances stay and can still be redeemed.pointsPerDollarintegeroptionalPoints earned per whole dollar of merchandise.punchEnabledbooleanoptionalfalse stops the punch card, the ladder and the birthday reward.punchRewardLabelstringoptionalWhat a full card earns, e.g. "Case treat".redemptionMinorintegeroptionalCredit one redemption step is worth, in CENTS (500 is $5).redemptionPointsintegeroptionalPoints one redemption step costs (100 by default).spacestringoptionalSame as `spaceId`: the Space id or slug (see listPageSpaces) of the shop whose rewards to use.spaceIdstringoptionalSame as `space`: the Space id (see listPageSpaces) of a Space-owned shop. Pass either one. Omit both for your personal shop.tiersobject[]optionalTier names and thresholds, replacing the whole list. Ascending; the first starts at 0 points.
Returns
The registry does not declare a return shape.
Declared limits
birthdayLabel: maximum length 60birthdayMinOrders: minimum 1birthdayMinOrders: maximum 100cardSize: minimum 2cardSize: maximum 50ladder: minimum items 1ladder: maximum items 6pointsPerDollar: minimum 1pointsPerDollar: maximum 100punchRewardLabel: maximum length 60redemptionMinor: minimum 1redemptionMinor: maximum 100000redemptionPoints: minimum 1redemptionPoints: maximum 100000tiers: minimum items 1tiers: maximum items 8
Ask for it
The Cloud routes these requests to this verb.
- give 2 points per dollar
- rename Gold to Wedding Cake
- make the punch card 10
- turn off the birthday reward
Pair it with
The verbs that finish the job.