API reference

HTS APIs

Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.

PUT/merchandising_contentsOther

Create Offer Merchandising Contents

https://fintech.staging.htsapis.com/flights-dafar/v2/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_ids
array of string
required
Items ≥ 1
locale
string
required

The 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.

substitutions
map_string

Responses

201The offers' merchandising contents
merchandising_contents
map_string
required
400Syntactic errors were encountered while handling the request
Array of error
message
string
required
code
string
required
Example
[
  {
    "message": "string",
    "code": "string"
  }
]
401The client could not be authenticated
No body.
403The authenticated client does not have permission to call this endpoint
No body.
499The client cancelled the request
No body.
500The server encountered an internal error
No body.
Request
curl -X PUT "https://fintech.staging.htsapis.com/flights-dafar/v2/merchandising_contents" \
  -H "X-Api-Key: $HTS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "offer_ids": [
    "string"
  ],
  "locale": "en-US",
  "substitutions": {}
}'
Response 201
{
  "merchandising_contents": {}
}

Examples are generated from the schema where the spec publishes none; field values are illustrative.