Boilerplate Template Generation

Access the public Github repository with JSON schemas and swagger file for boilerplate template generation here

Sample code for API request/response

View on GitHub

API call Type Header Example
Booking availability Request
Content-Type: application/x-www-form-urlencoded
View sample
Response
Content-Type: application/json
View sample
Response with no availabilities
Content-Type: application/json
View sample
Response with installments
Content-Type: application/json
View sample
Response with error message
Content-Type: application/json
View sample
Booking preparation Request 1
Content-Type: application/json
View sample
Response 1 (status = AVAILABLE)
Content-Type: application/json
View sample
Response 2 (status = SOLD_OUT)
Content-Type: application/json
View sample
Response 3 (status = ADJUSTED)
Content-Type: application/json
View sample
Booking submission Request 1
Content-Type: application/json
View sample
Response 1 (success case)
Content-Type: application/json
View sample
Response 2 (authorisation needed case)
Content-Type: application/json
View sample
Response 3 (failure case)
Content-Type: application/json
View sample
Booking authorisation Request
Content-Type: application/x-www-form-urlencoded
View sample
Response
Content-Type: application/json
View sample
Response (error case)
Content-Type: application/json
View sample
Booking verification Request
Content-Type: application/x-www-form-urlencoded
View sample
Response
Content-Type: application/json
View sample

API testing & certification

To facilitate the implementation process for our advertisers we have provided an API testing tool. This tool enables advertisers developing an endpoint for trivago Express Booking to verify their implementation. Advertisers are able to test all trivago Express Booking API calls (availability, preparation, submission, verification) against their endpoint. You can find this tool here.

Once the testing has been finished successfully, advertisers can use the API certification tool to do an automated check of all API calls across different scenarios.