Loyalty & Rewards - Installations - Custom Platform

If your store is running on a custom-built or unsupported E-commerce platform, it's possible to integrate Stamped.io Loyalty & Rewards using this guide.

There are basically 2 points of integration needed.


In this guide


Installing Loyalty & Rewards Launcher

The Loyalty & Rewards Launcher is where customers will interact with your rewards. Installation is really simple and only requires a script to be added.

Add in Header:

<script> 
function myInit(){ 
   StampedFn.init({ apiKey: '##publicAPIKey##', storeUrl: '##storeUrl##' });
   StampedFn.initRewards({
	customerId: 123456789, // your own internal numeric ID of the customer
	customerEmail: 'johndoh@example.com',
	customerFirstName: 'John',
        customerLastName: 'Doh',
        customerTags: '', // your internal customer tags, separate each tag with comma e.g. Wholesale, VIP
        totalOrders: 0, // numeric indicating customer's total orders placed with your store
        totalSpent: 0, // numeric indicating customer's total amount spent across all orders
        isAcceptMarketing: true, // true or false
        authToken: '' // base64 token of ApiPrivateKey:CustomerEmail
   });
}
</script>
<script async onload="myInit()" type="text/javascript" src="https://cdn1.stamped.io/files/widget.min.js"></script>

Note: Replace all variables with your store's and customer's info. ##storeUrl## should be without 'http' or '/'
If the customer hasn't logged in yet, simply call the function with an empty object StampedFn.initRewards({});


Pushing Orders into Stamped.io

We'll need to know when a new order has been created or fulfilled, so the app can create the orders and reward customers with points for their purchases, and this can be done by pushing order data into Stamped.io via integration with our API.

Reference: http://help.stamped.io/article/50-stampedio-rest-apis

If you have any questions please reach out to us at hello@stamped.io

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.