API reference

HTS APIs

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

POST/merchandising_urlsOther

Create Merchandising URL

https://fintech.staging.htsapis.com/flights-dafar/v2/merchandising_urls

Create a merchandising URL for offers a partner already has. The offer ids must come from one Create Offers or Price Offers response.

Request body application/json · required

offer_ids
array of string
required

Offer ids from one Create Offers or Price Offers response.

Items ≥ 1

Responses

201The merchandising URL
url
string
required

A merchandising URL for those offers.

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.
422Semantic errors were encountered while handling the request
Array of create_merchandising_url_error · one of 3
Items ≥ 1
Exactly one of the following, selected by code:
not_merchandisable (not_merchandisable) not_merchandisable
message
string
required

A human-readable message describing the error

code
string
required
offer_expired (offer_expired) offer_expired
message
string
required

A human-readable message describing the error

code
string
required
offer_not_found (offer_not_found1) offer_not_found1
message
string
required

A human-readable message describing the error

code
string
required
Example
[
  {
    "message": "string",
    "code": "string"
  }
]
499The client cancelled the request
No body.
500The server encountered an internal error
No body.
Request
curl -X POST "https://fintech.staging.htsapis.com/flights-dafar/v2/merchandising_urls" \
  -H "X-Api-Key: $HTS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "offer_ids": [
    "string"
  ]
}'
Response 201
{
  "url": "string"
}

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