Interested in collecting customer reviews? Call us for a FREE DEMO on 01773 432041
Integrating with your third party systems and websites is simple and intuitive.
This is a RESTful API.
Simply JSON encode the parameters shown below and add the resulting string to the following key-value pair when POSTing to the endpoints below:
data: [{JSON}]
You must send an array of JSON objects.
Once the request has been successfully created an e-mail will be sent to the customer asking them to review an operator they recently travelled with.
Please use the Dev endpoint for testing:
Dev: https://servicesdev.trustedtravelreviews.co.uk/api/review-request
Live: https://api.trustedtravelreviews.co.uk/api/review-request
All parameters in the following table are required and should be posted to the endpoint above to the data parameter.
Name | Example | Notes | Required |
---|---|---|---|
"[email protected]" | Y | ||
customer_name | “Forename Surname” | Y | |
location | “Sheffield” | Y | |
pickup | “Sheffield” | N ** | |
destination | “York” | N ** | |
travel_date | “26/10/2018” | Dates must be in the dd/mm/yyyy format | Y |
ttr_id* | 570 | The operator ID stored with Trusted Travel Reviews. | Y |
api_key* | “B7I25ZKIemiFv…” | A 50 character key unique to the operator. This will authorize the request. | Y |
* The ttr_id and api_key are unique to each operator and required to make use of the API.
** pickup and destination are optional but at least one or the other must be included.
The API Will respond compile a report displaying details of each record sent. The details will show the status of that record (usually Successful or Failed), as well as any errors or messages relating to the processing of that record.
{
"results": [
{
"operator_id": 570,
"user": "[email protected]",
"messages": [
"Review Request Created."
],
"errors": [ ],
"status": "Successful"
},
{
"operator_id": 567,
"user": "[email protected]",
"messages": [
"Review Request Created."
],
"errors": [],
"status": "Successful"
}
],
"Stats": {
"Unsuccessful": 0,
"successful": 2
}
}
{
"results": [
{
"operator_id": 568,
"user": "user1email.com",
"messages": [ ],
"errors": [
{
"code": 6,
"message": "email address invalid."
},
{
"code": 4,
"message": "Unrecognised operator ID"
},
{
"code": 1,
"message": "The API key supplied is invalid."
}
],
"status": "Failed"
},
{
"operator_id": 567,
"user": "[email protected]",
"messages": [ ],
"errors": [
{
"code": 2,
"message": "A review has already been sent to this user for that operator in the last 7 days."
}
],
"status": "Failed"
}
],
"Stats": {
"Unsuccessful": 2,
"successful": 0
}
}
Code | Explanation |
---|---|
1 |
The API Key supplied is invalid. |
2 |
A review request has already been sent to this user for that operator in the last 7 days. |
3 |
This user has already submitted a review for this operator. |
4 |
Unrecognised Operator ID |
5 |
You are missing fields from your request. <*> |
6 |
Email address invalid. |
7 |
Unable to create the review request. |
8 |
You must include a pickup location and/or a destination |
A-Z Companies
Browse by area
Privacy Policy
Terms & Conditions
3 Church View Close
Shirland
Derbyshire, DE55 6BZ
United Kingdom
Company Registered in England No: 12066038
VAT Registration No: 184097777