{"openapi":"3.0.0","components":{"examples":{},"headers":{},"parameters":{},"requestBodies":{},"responses":{},"schemas":{"ApiPaxConfiguration":{"properties":{"adults":{"type":"number","format":"double"},"youths":{"type":"number","format":"double"},"children":{"type":"number","format":"double"},"infants":{"type":"number","format":"double"}},"required":["adults","youths","children","infants"],"type":"object","additionalProperties":false},"ApiRoomSelection":{"properties":{"roomTypeCode":{"type":"string"},"roomTypeName":{"type":"string"},"boardIncluded":{"type":"string"},"paxConfiguration":{"$ref":"#/components/schemas/ApiPaxConfiguration"}},"required":["roomTypeCode","roomTypeName","boardIncluded","paxConfiguration"],"type":"object","additionalProperties":false},"ApiAccommodation":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"href":{"type":"string"},"imagesHref":{"type":"string"},"allInclusive":{"type":"boolean"},"roomSelection":{"items":{"$ref":"#/components/schemas/ApiRoomSelection"},"type":"array"}},"required":["id","name","href","imagesHref","allInclusive","roomSelection"],"type":"object","additionalProperties":false},"ApiFlightLeg":{"properties":{"typeOfFlightName":{"type":"string"},"typeOfFlightCode":{"type":"string"},"airlineCode":{"type":"string"},"flightCode":{"type":"string"},"arrivalTime":{"type":"string"},"arrivalDate":{"type":"string"},"arrivalCode":{"type":"string"},"departureTime":{"type":"string"},"departureDate":{"type":"string"},"departureCode":{"type":"string"},"legNumber":{"type":"number","format":"double"}},"required":["typeOfFlightName","typeOfFlightCode","airlineCode","flightCode","arrivalTime","arrivalDate","arrivalCode","departureTime","departureDate","departureCode","legNumber"],"type":"object"},"ApiPrice":{"properties":{"priceOriginal":{"type":"number","format":"double"},"currentPrice":{"type":"number","format":"double"},"currency":{"type":"string"},"flightClassName":{"type":"string"},"urlToBooking":{"type":"string"}},"required":["priceOriginal","currentPrice","currency","flightClassName","urlToBooking"],"type":"object","additionalProperties":false},"ApiPackage":{"properties":{"departureCode":{"type":"string"},"departureDate":{"type":"string"},"departureTime":{"type":"string"},"returnDate":{"type":"string"},"duration":{"type":"string"},"destinationCode":{"type":"string"},"adults":{"type":"number","format":"double"},"youths":{"type":"number","format":"double"},"children":{"type":"number","format":"double"},"infants":{"type":"number","format":"double"},"accommodation":{"$ref":"#/components/schemas/ApiAccommodation"},"priority":{"type":"number","format":"double"},"flightClimateCompensated":{"type":"boolean"},"charterFlight":{"type":"boolean"},"outboundFlightLegs":{"items":{"$ref":"#/components/schemas/ApiFlightLeg"},"type":"array"},"homeboundFlightLegs":{"items":{"$ref":"#/components/schemas/ApiFlightLeg"},"type":"array"},"prices":{"items":{"$ref":"#/components/schemas/ApiPrice"},"type":"array"}},"required":["departureCode","departureDate","departureTime","returnDate","duration","destinationCode","adults","youths","children","infants","accommodation","priority","flightClimateCompensated","charterFlight","outboundFlightLegs","homeboundFlightLegs","prices"],"type":"object","additionalProperties":false},"ApiPackages":{"properties":{"next":{"type":"string","nullable":true},"totalNumberOfItems":{"type":"number","format":"double"},"items":{"items":{"$ref":"#/components/schemas/ApiPackage"},"type":"array"}},"required":["next","totalNumberOfItems","items"],"type":"object","additionalProperties":false},"CommercialProductType":{"enum":["SUN_AND_BEACH","LAKES_AND_MOUNTAINS","CITY"],"type":"string"}},"securitySchemes":{"tsoa_auth_prod":{"type":"oauth2","description":"Production OAuth2","flows":{"clientCredentials":{"tokenUrl":"https://prod.api.tui/oauth2/token","scopes":{"read:sales-meta-package":"Read access"}}}},"tsoa_auth_preprod":{"type":"oauth2","description":"Pre-production OAuth2","flows":{"clientCredentials":{"tokenUrl":"https://pre-prod.api.tui/oauth2/token","scopes":{"read:sales-meta-package":"Read access"}}}}}},"info":{"title":"Partner Live Search API","description":"The Partner Live Search API allows partners to access real-time travel packages, including live pricing and availability, through a set of RESTful endpoints.","version":"1.0.0"},"paths":{"/markets/{market}/packages":{"get":{"operationId":"GetLiveSearch","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiPackages"}}}}},"description":"This endpoint returns available packages.","tags":["Live Search Packages"],"security":[{"tsoa_auth_prod":[]},{"tsoa_auth_preprod":[]}],"parameters":[{"description":"The source market code.\nAccepted values: For North Region - dk, fi, no, se. For Central Region - de.","in":"path","name":"market","required":true,"schema":{"type":"string","pattern":"^dk$|^fi$|^no$|^se$|^de$"}},{"description":"Your agent code. Use the same for every request made.\nExample - tui","in":"query","name":"agent","required":true,"schema":{"type":"string","pattern":"^\\w+$"}},{"description":"Number of Adults in the request.\nAccepted Values - 1 to 6","in":"query","name":"adults","required":true,"schema":{"format":"int32","type":"integer","minimum":1,"maximum":6}},{"description":"Ages of Children in the request separated by comma. If no children are sent in the request, this parameter should not be sent (or sent as ?childAges=).\nFor 2 children with age 5 and 7, the value should be 5,7.\nAge ranges are, infant: 0-1, child: 2-12, youth: 13-17.","in":"query","name":"childages","required":false,"schema":{"default":"","type":"string","pattern":"^$|^(1[0-7]|[0-9])(,(1[0-7]|[0-9]))*$"}},{"description":"The G-code value for each destination that is mapped through the Content Api Locations endpoint.\nMultiple destinations can be sent in the request separated by comma.\nExample: G-000000234,G-000000256,G-000000293,G-000000293","in":"query","name":"destinations","required":false,"schema":{"default":"","type":"string","pattern":"^$|^(G-)[0-9]*(,(G-)[0-9]*)*$"}},{"description":"The A-code, P-code (For North Region) or giataId (For Central Region) value for each accommodation.\nMultiple accommodations can be sent in the request separated by comma.\nExample: A0209663,A1054132,P-000145112,P-500007731 or 16524,18033","in":"query","name":"accommodations","required":false,"schema":{"default":"","type":"string","pattern":"^$|^(A|P-)[0-9]+(,(A|P-)[0-9]+)*$|^[0-9]+(,[0-9]+)*$"}},{"description":"Date of arrival from. Date must be compatible with ISO 8601. Example: arrivaldatefrom=2035-01-31","in":"query","name":"arrivaldatefrom","required":true,"schema":{"type":"string","pattern":"^\\d{4}\\-(0[1-9]|(1[0-2]))\\-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$"}},{"description":"Date of arrival to.\nDate must be compatible with ISO 8601.\nExample: arrivaldateto=2035-01-31","in":"query","name":"arrivaldateto","required":true,"schema":{"type":"string","pattern":"^\\d{4}\\-(0[1-9]|(1[0-2]))\\-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$"}},{"description":"A list of one or more stay durations. Example: 3,5,7,14","in":"query","name":"durations","required":true,"schema":{"type":"string","pattern":"^\\d+(,\\d+)*$"}},{"description":"A list of airportcodes separated by comma that are requested by user as Departure locations.\nExample: ARN,GOT,CPH","in":"query","name":"airportcodes","required":false,"schema":{"default":"","type":"string"}},{"description":"The number of items to return. Maximum: 20.","in":"query","name":"limit","required":false,"schema":{"default":20,"format":"int32","type":"integer","maximum":20}},{"description":"The commercial product type used to categorise the holiday being searched for.\nThis parameter is optional. When omitted, it defaults to SUN_AND_BEACH.\nAccepted values: SUN_AND_BEACH, LAKES_AND_MOUNTAINS, CITY.","in":"query","name":"commercialProductType","required":false,"schema":{"$ref":"#/components/schemas/CommercialProductType"}}]}}},"servers":[{"url":"https://prod.api.tui/sales/pip-package/live-search/v1","description":"Prod Server"},{"url":"https://pre-prod.api.tui/sales/pip-package/live-search/v1","description":"Pre-prod Server"}]}