API reference
HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
PUT
/merchandising_contentsOtherCreate Merchandising Contents
https://fintech.staging.htsapis.com/lodging-cfar/v2/merchandising_contents
Create merchandising contents for product offer(s)
Request body application/json · required
offer_idsarray of string
required
Items ≥ 1
localestring
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.
substitutionsmap_string
Responses
201The merchandising contents
merchandising_contentsmap_string
required
400Syntactic errors were encountered while handling the request
Array of error
messagestring
required
codestring
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/lodging-cfar/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.
