SmartHint Tray Corp (API) integration
Reading Time: 11 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 create a new 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
Access the Tray Corp platform, click Configs Admin> Script Manager and create a new script.
Then in Script Name, name the script SmartHint.
You will now need to access the SmarHint administrative portal in a new window. Click here and login, then use the main menu and click My 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.
Go back to the Tray Corp page, at Script Manager, scroll down and paste the script you just copied into Script Content.
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 and 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, Product, Category e Request. Just fill in the GET, the other options are not necessary.
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
Copy the code from 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 item 3, 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.