Version

In addition to an access token, all requests must specify which version of the PORTA API they are accessing in the accept-version header. The example request below is for version 1:

Copy
Copied
curl '{baseUrl}/supplier/catalog/experiences' \
-H 'accept: application/json' \
-H 'accept-version: vnd.porta-api.v1' \
-H 'Authorization: Bearer {accessToken}'

Requests made without a valid API version will receive a 412 status code response:

Copy
Copied
{
	"code": "412",
	"id": "3ecae132-a32d-41f9-8f7d-586f34cc29ce",
	"message": "Missing accept-version header."
}

At this time there is only one available version, vnd.porta-api.v1. This may change in the future.

Copyright © TUI Musement. All rights reserved.