LTV Services API

This website contains the documentation for the internal Leisure Travel Vans services API.

API Root

The root URL of the API is: https://order.tripleerv.com/api/v2

HTTP Responses

All endpoints will return a JSON response with a valid HTTP status code. The response structure may vary depending on the record.

Singular Record

The result key will contain the value of the single record requested.

{
"success": true,
"error": null,
"result": {
"key": "value"
}
}

Multiple Records

The result key will contain an array of values.

{
"success": true,
"error": null,
"result": [
{
"key": "result1"
},
{
"key": "result2"
}
]
}

Errors

When responding with an error, the API should also return JSON with an error HTTP status code.

{
"success": false,
"error": "String describing error",
"result": null
}