SmartHint Tray Corp (API) integration
Reading Time: 12 minutes
Glad you decided to use SmartHint services. Your store will soon benefit from our artificial intelligence, increasing conversion rates and average ticket. But first we need to install our API.
Installing the API SmartHint on the Tray Corp platform is simple and easy, just follow the steps below:
- access the Tray Corp platform and add the script with the SmartHint;
- manages the token integration for SmartHint;
- configure the token authorizing all items from Attribute, Product, Category e Request;
- inform the token generated on the configuration page of shop on the platform SmartHint.
- unblock the URL SmartHint website.
Rest assured, let's see each step in more detail.
1 - How to create the SmartHint script
First, you will need to access the SmartHint administrative panel. Click here and login, then use the main menu and click Manage Account.
Then click the button Virtual store.
Then in Choose your online store to generate the Script, select Tray Corp. Copy the code that will be displayed.
With the code in copy, access the administrative panel of Tray Corp, click on Admin Settings > Script Manager and click Add Script.
Then in Add Script, inform the mandatory data. In Your name type it SmartHint.
Em Script position on the page select Body - First lineOn Pages that the script will be inserted into select Todas, and Page Identifier, select *.
Then in the field Script Content, paste the copied script code into the SmartHint panel and click the button Add Script.
After that, you will be directed to a page indicating that the script was successfully added, scroll the page to the end and click Save and depois Publish. Then go back to Admin Settings > Script Manager and activate the SmartHint script in the column Ativo.
2 - How to generate the integration token
Still on the Tray Corp platform, access the menu Admin Settings> Integration Token and click the button Add Token.
When you press the button, the system automatically generates a new token and directs you to a new editing screen, where you can make some settings.
3- How to configure token information and permissions
In the settings screen that was opened after the token was created, enter the name of the token: SmartHint, for example. In Integration Type, select New Integration - REST.
Then, below the token information, configure the All rights reserved.. For the correct functioning of the API, it is necessary to complete the application for GET permission within Attribute, Category, Product e Request Status. For one of them, just fill in the first GET, which returns all attributes, categories, products and order situations. For the other options it is not necessary to fill in anything.
To finish the process of creating the token, after the settings, just go to the bottom of the screen and click the button Save and the token will be active and ready to use.
4- How to inform the generated token to SmartHint
Em Admin Settings > Integration Token copy the code of the SmartHint token.
Then, go back to the page Virtual store on the administrative portal of SmartHint - shown in step 1. Finally, paste the copied token code into the field 2 - Insert the Application Token and click Follow to save.
5- How to unblock the URL of the SmartHint website
After the integration is carried out, following the previous steps, it is Extremely necessary that you unlock the URL of the SmartHint website, otherwise the shop windows and pop-ups will not appear in the shopping cart, nor will the order collection. You will not have our script and page identification in that location.
To unblock our website URL, click on this link and follow the step by step. In Add new URL, type “smarthint.co” in the field New URL and select the second option, which includes Everything in this domain. Then click Save and it's done.
You installed our service and now we will load your products in a period that takes 4 to 24 hours.
Note: if you have previously configured the integration by GTM, you will need to interrupt or delete the TAG in Google Tag Manager.