Introduction

This reference documents the objects and methods available for use in Smile’s frontend library, Smile.js. If you're using Storefront.js, note that it is just a shim for Smile.js and all of the same methods and objects are available.

You can use Smile.js’s API to retrieve and display customer information, redeem points for rewards, and embed rewards information within your site. Currently, Smile.js is always bundled with Smile UI, which provides a pop-up rewards experience for your customers.

Smile.js is not currently compatible with single page applications.