Integration with the WayMore API
This documentation provides details for creating integration with Routee-Waymore platform.
The intention of the integration is:
a) To move the existent data held in the database from your website to Routee Platform.
b) Expose custom hook events, that are performed inside your website, to Routee Platform, so that a website owner can use Routee Platform to configure his communication automation workflows.
Business Process
a) The website (admin) owner will be requested to enter his Routee username and password.
*If the website owner does not have a Routee username and password, a link needs to be displayed for him to create a new account in Routee Platform.
b) In the website, the owner enters his Routee username and password in a form to register his website to Routee-Waymore.
-https://waymore.routee.net/api/authenticate–
Once registration is successful, the endpoint will reply back a UUID string that will be used as required authenticate field for all the API endpoints described below.
(Note: The UUID must be stored for future use. The UUID does not expire)
c) The website needs to transfer all the historical data (data from the database) of the site, to Routee Platform using Mass-data API.
–https://idata.routee.net/api/data–
d) The website needs to transfer all the real-time events (i.e. when a new user is registered) to Routee Platform using Event data API.
–https://idata.routee.net/api/event–
e) The website owners, logs in to Routee platform (using the username and password he used when registering the site) where he can see all the data retrieved from his website and configures his own communication workflows from within Routee Platform.
i.e. send an SMS to all customers that added the product X in their basket 3days ago, but did not complete the checkout.
i.e. send a welcome all to a user when he creates an account
etc.
Automation Requirements
In order for a website owner to be able to create the automation he wants in the Routee-Waymore platform, the platform needs to have sufficient data from the owner’s website.
For example, if the owner wants to send SMS messages to all users but in the data, for the users that were sent to Routee-Waymore platform, there is no phone number then the automation cannot be implemented.
To send data to the Routee-Waymore platform you will have to make some custom events on the website side, which will send data whenever triggered. Once a custom event is created you will need to send an email to Routee specifying the details of that event so that Routee can manage it properly.
Email example:
Send To: events@amdtelecom.net |
Subject: New Custom Event |
Message:
My Website: https://example.com Event description: This is an event that is triggered when a new user is registered in our site Event name: UserRegister Event data: { “id”: 1, “firstname”: “John”, “lastname”: “Doe”, “phone”: “1234567890”, “birthday”: “01/01/2000”, “email”: “john_doe@email.com” } |
Development Integration Requirements
In order to integrate with the Routee-WayMore platform, you have to consume our API. To consume our API you have to be authenticated (register your site).
To be authenticated you have to make an HTTP request and pass the following data:
• “Username” and “Password” from https://go.routee.net
*if you don’t have an account you can register here:
https://go.routee.net/#/
• Source, the name of your software/site: e.g. WordPress, Joomla, Infor, Deltek etc.
• The type of your software: e.g. CMS, ERP, E-COMMERCE etc
• The version of your software. e.g. 1.0.0
• The domain: Full URL of the website.
The authentication on success will return a UUID string which will be used to consume the WayMore API.
Authentication API
POST | https://waymore.routee.net/api/authenticate
{
“username“:"routeeUsername", “password“:"routeePassword", “source“:”SoftwareName", “type”: “SoftareType”, “version“:"SoftwareVersion" “domain“:"WebsiteURL", } |
Body Params
Key | Description |
username
string |
Required
Routee Username |
password
string |
Required
Routee Password |
source
string |
Required
software name e.g. WordPress, Magento, Opencart etc |
type
string |
Required
Software type e.g. cms, erp etc |
version
string |
Required
Software version e.g. 1.0.0 |
domain
string |
Required
Website URL e.g. https://www.example.com/e-com |
Headers
Content-Type
string |
Required
application/json |
Response
{
“message":"Authorization succeeded", “uuid”:”8e109ec3-a69b-40fb-a648-dab158616318” } |
Response Params
Key | Description |
message | The description of the request that was made (Succeed/Error) |
UUID | The UUID that will be used to make all the HTTP request to the Routee-WayMore platform |
Status Codes
Status | Message |
200 | Authorization Succeeded |
401 | You are unauthorized. Invalid username or password |
400 | Validation Error. A required field is missing. Invalid value of a field. |
• After you get the UUID you can start sending data and your website events to the WayMore platform.
• First, you need to send historic data from the website’s database. The more data is sent the more automations the owner can implement.
Mass data API
POST | https://idata.routee.net/api/data
{
“data":[ { “name”: “nameOfData”, “description”:”short description of the data”, “object”: {} }, … {…} ], “uuid":"462f0515-ea30-422b-95a4-dc2d704a07c7" } |
Body Params
Key | Description |
data*
object |
Required
Array of objects with data from DB |
uuid
string |
Required
e-commerce application uuid |
*data must contain objects with the following structure: | |
name
string |
Name of the data e.g. customers, products |
description
string |
A short description of what kind of data is sent in the object |
object
array of objects |
Data from tDB db |
Headers
Content-Type
string |
Required
application/json |
After you have sent the mass data you can enable the events to send data.
Event data API
POST | https://idata.routee.net/api/event
{
“data":{}, “uuid":"462f0515-ea30-422b-95a4-dc2d704a07c7", “event":"nameOfEvent", } |
Body Params
Key | Description |
data
object |
Required
Object with data from event |
uuid
string |
Required
authorization UUID |
event
string |
Required
event name |
Headers
Content-Type
string |
Required
application/json |
Example of custom events implemented by other websites
On new user (register)
*Note: any extra data you can add is welcomed.
On user update (important email and mobile)
On new order placed
*Note: any extra data you can add is welcomed.
On order status change
On order payment confirmed
On new product (visible inside store)
*Note: any extra data you can add is welcomed.
On product update
On product is out of stock
On product sold / stock quantity changed
On product added to wishlist
On product removed from wishlist
On cart update (add/remove from cart, cart checked out)
For empty cart send this:
On newsletter subscription
On search (user search for a product)
*Note: any extra data you can add is welcomed.
On uninstall (when the plugin is uninstalled)
Any other custom event you can add is welcomed
Examples of Mass data
Multiple different data
Multiple same data
Single data
Pricing Policy
Integrate Marketing Automation in your Business
WAYMORE
- All FREE version features
- 10 predefined automation flows
- Automatic Campaign Sending
WAYMORE+
- Drag and drop flows
- Build your own automations
- Create communication funnels