Skip to content
Last updated

Common Stays API Headers

The table below details the common header parameters that must be included in all Stays API requests.

ParameterDescriptionRequired/Optional
Accept-EncodingSend with the value gzip, deflateRequired
Cache-ControlSend with the value no-cacheRequired
AcceptSend with the value application/jsonRequired
Content-TypeSend with the value application/jsonRequired

Authorization

Send with the value Bearer {token}

See Authentication for instructions on generating the OAuth token. The OAuth token is valid for 24 hours and must be re-requested after that time.

A space is required between Bearer and the token code.

Required

XAUTH_TRAVELPORT_ACCESSGROUP

Access group specific for each customer supplied by Travelport during provisioning.

See Authentication for details on access groups.

Required

E2ETrackingIDOptional parameter to send with any custom value of your choice to be used to track requests in the Travelport logs. This tracking ID can be helpful in the event of a support request. If you include this parameter, the value is returned in the response and may have additional characters appended to it. If you do not include this ID in the headers, the Travelport system generates one in the response in a format similar to this:

Token tvlport_app_id=travelportAPI-Ag9NmMFTas94MFWvpoujV72u

Optional
usernameAlphanumeric username supplied by Travelport during provisioning.Required
passwordAlphanumeric password supplied by Travelport during provisioning.Required
client_idAlphanumeric client ID supplied by Travelport during provisioning.Required
client_secretAlphanumeric client secret supplied by Travelport during provisioning.Required