Jump to Content
Rivo Developer Toolkit
Javascript APIRest APIMetafieldsWebhooks
Rivo Developer Toolkit
Javascript API
Help CenterContact Us
Jump to Content
Rivo Developer Toolkit
Javascript APIRest APIMetafieldsWebhooks
All
Pages
Start typing to search…

Introduction to the Rivo Developer Toolkit

  • Getting Started with the Rivo Developer Toolkit

Rivo Javascript API

  • Getting Started with the Rivo Javascript API
  • Events
  • RivoJS Object
    • getCustomerBestRewardToShow
    • getCustomerDetails
    • getCustomerPointsLogs
    • getCustomerPointsPurchases
    • getCustomerReferrals
    • getCustomerReferralStats
    • getCustomerVipTier
    • getCustomerVipTierLogs
    • getShopRewards
    • getShopVipTier
    • redeemReward
    • updateCustomerDob
    • openWidget
    • closeWidget
    • getFavoriteProducts
    • addFavoriteProduct
    • removeFavoriteProduct
    • getSavedCartItems
    • addSavedCartItem
    • removeSavedCartItem
  • Examples
    • Redeem a Reward
    • Update a customer's birthday
    • Display a customer's points program activity
    • Display points needed to unlock next VIP tier
    • Incremental points redemption
    • Update a customer's points total
  • Trigger Custom Actions with JavaScript
  • Rivo Surveys / Preferences
  • Rivo Favorites API Documentation

Rivo Shopify Metafields

  • Getting Started with Rivo Metafields
  • References: V1
    • Shop object
    • Customer object
  • Examples
    • Basics
    • Embed a customer's points balance anywhere
    • VIP Tiers
Powered by 

Events

Ensure the RivoJS object is loaded by listening to rivo-js-loaded on the document

if (window.RivoJS) {
  // RivoJS is loaded and ready to use
} else {  
  document.addEventListener("rivo-js-loaded", function(){
  // RivoJS is loaded and ready to use
}

Updated 6 months ago


Getting Started with the Rivo Javascript API
RivoJS Object