getCustomerDetails

Retrieve loyalty data for the logged-in customer

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

Sample response

{
    "success": true,
    "customer": {
        "shop_id": 63325896925,
        "remote_id": 6089389113565,
        "points_tally": 2167568,
        "credits_tally": 6,
        "dob": "02-02",
        "points_expiry": null,
        "social_actions": [
            "instagram_follow",
            "tiktok_follow",
            "twitter_follow",
            "facebook_like"
        ],
        "loyalty_status": "member",
        "loyalty_status_last_changed_at": "2022-03-04T21:48:21.000Z"
    }
}