getCustomerPointsLogs
Retrieve all of the points logs for a logged-in customer
RivoJS.getCustomerPointsLogs().then(function(resp){
console.log(resp)
});
Sample response
{
"success": true,
"points_logs": [
{
"id": 654321,
"points_amount": 500,
"points_diff": -500,
"applied_at": "2023-06-08T15:51:30.623Z",
"external_note": "Redeemed a Reward"
},
{
"id": 123456,
"points_amount": 400,
"points_diff": 400,
"applied_at": "2023-06-08T15:05:46.526Z",
"external_note": "manual points adjustment"
},
{
"id": 111222,
"points_amount": 25,
"points_diff": 25,
"applied_at": "2023-06-08T14:33:38.695Z",
"external_note": "Followed on TikTok"
},
{
"id": 333444,
"points_amount": 100,
"points_diff": 100,
"applied_at": "2023-06-08T14:32:40.000Z",
"external_note": "Sign up"
}
],
"metadata": {
"next_page": null,
"prev_page": null
}
}
Updated about 1 year ago