HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
/merchandising_contentsOtherCreate Offer Merchandising Contents
Create the merchandising contents for the given product offer(s). This endpoint should be used when the partner is not embedding the merchandising widget provided by HTS in their booking flow. The response will be a customized set of keys, determined during integration, which map to product copy in the provided locale.
Request body application/json · required
offer_idslocaleThe user's locale, as an IETF BCP 47 language tag in {language}-{region} form, where region is an ISO 3166-1 alpha-2 country code or a UN M.49 macro-region code (e.g. en-US, es-419). Determines the language of user-facing content.
substitutionsResponses
201The offer's merchandising contents
merchandising_contents400Syntactic errors were encountered while handling the request
messagecodeExample
[
{
"message": "string",
"code": "string"
}
]401The client could not be authenticated
403The authenticated client does not have permission to call this endpoint
499The client cancelled the request
500The server encountered an internal error
curl -X PUT "https://fintech.staging.htsapis.com/flights-cfar/v2/merchandising_contents" \
-H "X-Api-Key: $HTS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"offer_ids": [
"string"
],
"locale": "en-US",
"substitutions": {}
}'{
"merchandising_contents": {}
}Examples are generated from the schema where the spec publishes none; field values are illustrative.
