Tracking Users (Non-shopify)
Use this apis if you are not using shopify.
/rest-api/customer
Headers
Name
Type
Description
Request Body
Name
Type
Description
{
success: true
}API Example
// Prepare Request input data
const requestBody = {
"id":"your-system-uniqe-id",
"attributes": [
{ name: 'name', type: 'string', value: `Customer Name` },
{ name: 'email', type: 'string', value: `[email protected]` },
{ name: 'mobile', type: 'string', value: '9919211112' }
// Custom Attributes (Allowed Types: number, date, boolean, string)
{ name: 'City', type: 'string', value: 'Mumbai' },
{ name: 'Total Orders', type: 'number', value: 1 },
{ name: 'Is First Time Purchaser', type: 'boolean', value: true },
{ name: 'Last Order Date', type: 'date', value: 'YYYY-MM-DD HH:MM:SS' },
]
};
// Call API
const request = require('request-promise');
request({
method: 'POST',
uri: 'https://dcqs-india.growlytics.in/rest-api/customer',
headers: {
Accept: 'application/json',
'x-growlytics-key': '<GROWLYTICS-API-KEY>'
},
body: requestBody
});Terms & Considerations
Last updated
Was this helpful?
