getCustomerPointsPurchases
Retrieve all of the points purchases for a logged-in customer
RivoJS.getCustomerPointsPurchases(opts, page).then(function(resp){
console.log(resp)
});
Sample response
{
"success": true,
"points_purchases": [
{
"id": 75,
"name": "$10 off coupon",
"points_amount": 1000,
"code": "BAL-782f400f990b",
"applied_at": "2023-01-30T23:16:11.394Z",
"expires_at": null,
"used_at": null,
"terms_of_service": {
"applies_to": "entire",
"reward_type": "fixed_amount",
"show_tos": false
},
"reward": {
"id": 2,
"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",
"show_tos": false
}
}
}
]
}
Updated about 2 months ago