getShopRewards

Retrieve all of the rewards for the points program

RivoJS.getShopRewards().then(function(resp){
  console.log(resp)
});

Sample response

{
    "success": true,
    "rewards": [
        {
            "id": 54321,
            "name": "$5 off coupon",
            "enabled": true,
            "points_amount": 500,
            "points_type": "fixed",
            "reward_type": "fixed_amount",
            "source": "points",
            "pretty_display_rewards": "$5 off coupon (500 points required)",
            "icon_url": null,
            "terms_of_service": {
                "reward_type": "fixed_amount",
                "applies_to": "entire",
                "expiry_months": 2,
                "show_tos": true
            }
        },
        {
            "id": 654321,
            "name": "$10 off coupon",
            "enabled": true,
            "points_amount": 1000,
            "points_type": "fixed",
            "reward_type": "fixed_amount",
            "source": "points",
            "pretty_display_rewards": "$10 off coupon (1000 points required)",
            "icon_url": null,
            "terms_of_service": {
                "reward_type": "fixed_amount",
                "applies_to": "entire",
                "expiry_months": 1,
                "show_tos": true
            }
        },
        {
            "id": 765432,
            "name": "$20 off coupon",
            "enabled": true,
            "points_amount": 2000,
            "points_type": "fixed",
            "reward_type": "fixed_amount",
            "source": "points",
            "pretty_display_rewards": "$20 off coupon (2000 points required)",
            "icon_url": null,
            "terms_of_service": {
                "reward_type": "fixed_amount",
                "applies_to": "entire",
                "show_tos": false
            }
        }
    ]
}