TourAction API-Requests of type "review"
Learn how to correctly structure the 'timings' array in API requests to avoid validation errors.
Learn how to correctly structure the 'timings' array in API requests to avoid validation errors.
Was this article helpful?
Did not find your answer?
Ask Luna, or write to our support team.
When working with the Tour-Actions endpoint for reviews, it's crucial to understand the expected structure of the timings array. Incorrect formatting can lead to validation errors and HTTP 400 responses.
A common mistake is passing a flat array of numbers instead of the required array of tuples. The timings field should be structured as an array of tuples, where each tuple represents a pair of numbers.
{
"type": "review",
"timings": [
[1754374003, 1754402803],
[1754460403, 1754489203]
]
}Each inner array represents [arrival_time, departure_time] for a stop. Ensure that the number of tuples matches the number of stops in the tour.
timings array is an array of tuples.type field is correctly set to review.Following these guidelines will help prevent validation errors and ensure your requests are processed correctly.