curl –location –request GET ‘https://api.basset.ws/flights/clusters/{{CLUSTER_ID}}?site=AR&channel=API&=’
–header ‘x-api-key: KEY’
–header ‘x-client-id: ID’
site = AR, EC, PE, Etc… (Las ISO de cada país)
channel = API, MOBILE, WEB, DESKTOP
{{CLUSTER_ID}} = c3254029-1c21-435f-a473-2b7aba78443d%7c13918627881584194915_c3254029-1c21-435f-a473-2b7aba78443d%7c7040208058982863180
Se compone por la ida/vuelta de la API https://help.clients.basset.la/api-clusters-busqueda/ en el objeto options.id de la API
NOTA: La barra que viene por defecto en el ID “2f034eee-d4b0-47c9-bf66-598d986048ae|2080484556544533650″ debe ser sustituida por %7c para que la llamada sea correcta y entre un ID y otro se debe agregar un ” _ ” entre cada uno.
Ej correcto de 2 ID concatenados: c3254029-1c21-435f-a473-2b7aba78443d%7c13918627881584194915_c3254029-1c21-435f-a473-2b7aba78443d%7c7040208058982863180
Response:
{
“segments”: [
{
“origin”: {
“code”: “EZE”,
“name”: “Buenos Aires, Argentina (EZE-A. Internacional Ministro Pistarini)”,
“country_code”: “AR”
},
“destination”: {
“code”: “PTY”,
“name”: “Panamá, Panamá (PTY-A. Internacional de Tocumen)”,
“country_code”: “PA”
},
“departure_date”: “2023-08-26”,
“options”: [
{
“id”: “c3254029-1c21-435f-a473-2b7aba78443d|13918627881584194915”,
“departure_date”: “2023-08-26”,
“departure_time”: “05:16”,
“arrival_date”: “2023-08-26”,
“arrival_time”: “10:40”,
“duration”: “07:24”,
“legs”: [
{
“origin”: {
“code”: “EZE”,
“name”: “Buenos Aires, Argentina (EZE-A. Internacional Ministro Pistarini)”,
“country_code”: “AR”
},
“destination”: {
“code”: “PTY”,
“name”: “Panamá, Panamá (PTY-A. Internacional de Tocumen)”,
“country_code”: “PA”
},
“departure_date”: “2023-08-26”,
“departure_time”: “05:16”,
“arrival_date”: “2023-08-26”,
“arrival_time”: “10:40”,
“marketing_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“operating_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“duration”: “07:24”,
“flight_number”: “278”,
“aircraft_type”: “739”,
“cabin_type”: {
“code”: “T”,
“name”: “Economy”,
“quantity”: 9
},
“branded_fare”: “BASIC”,
“branded_fare_name”: “ECONOMY BASIC”
}
],
“baggage_allowances”: [
{
“quantity”: 0,
“weight”: 0,
“type”: “CHECKED_BAGGAGE”
},
{
“quantity”: 1,
“weight”: 0,
“type”: “CARRY_ON”
}
]
}
]
},
{
“origin”: {
“code”: “PTY”,
“name”: “Panamá, Panamá (PTY-A. Internacional de Tocumen)”,
“country_code”: “PA”
},
“destination”: {
“code”: “EZE”,
“name”: “Buenos Aires, Argentina (EZE-A. Internacional Ministro Pistarini)”,
“country_code”: “AR”
},
“departure_date”: “2023-08-31”,
“options”: [
{
“id”: “c3254029-1c21-435f-a473-2b7aba78443d|7040208058982863180”,
“departure_date”: “2023-08-31”,
“departure_time”: “12:14”,
“arrival_date”: “2023-08-31”,
“arrival_time”: “21:26”,
“duration”: “07:12”,
“legs”: [
{
“origin”: {
“code”: “PTY”,
“name”: “Panamá, Panamá (PTY-A. Internacional de Tocumen)”,
“country_code”: “PA”
},
“destination”: {
“code”: “EZE”,
“name”: “Buenos Aires, Argentina (EZE-A. Internacional Ministro Pistarini)”,
“country_code”: “AR”
},
“departure_date”: “2023-08-31”,
“departure_time”: “12:14”,
“arrival_date”: “2023-08-31”,
“arrival_time”: “21:26”,
“marketing_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“operating_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“duration”: “07:12”,
“flight_number”: “500”,
“aircraft_type”: “738”,
“cabin_type”: {
“code”: “S”,
“name”: “Economy”,
“quantity”: 9
},
“branded_fare”: “BASIC”,
“branded_fare_name”: “ECONOMY BASIC”
}
],
“baggage_allowances”: [
{
“quantity”: 0,
“weight”: 0,
“type”: “CHECKED_BAGGAGE”
},
{
“quantity”: 1,
“weight”: 0,
“type”: “CARRY_ON”
}
]
}
]
}
],
“price”: {
“charges”: 10286.24,
“total”: 524598.34,
“taxes”: 295127.1,
“adults”: {
“fare”: 219185,
“quantity”: 1,
“taxes”: [
{
“total”: 2950,
“type”: “QO”,
“collector”: “PROVIDER”
},
{
“total”: 413,
“type”: “S7”,
“collector”: “PROVIDER”
},
{
“total”: 2360,
“type”: “TQ2”,
“collector”: “PROVIDER”
},
{
“total”: 16815,
“type”: “XR2”,
“collector”: “PROVIDER”
},
{
“total”: 368.8,
“type”: “AH3”,
“collector”: “PROVIDER”
},
{
“total”: 3540,
“type”: “F3”,
“collector”: “PROVIDER”
},
{
“total”: 11800,
“type”: “FZ”,
“collector”: “PROVIDER”
},
{
“total”: 16086.4,
“type”: “AR”,
“collector”: “PROVIDER”
},
{
“total”: 68941.5,
“type”: “O5”,
“collector”: “PROVIDER”
},
{
“total”: 103412.3,
“type”: “Q1”,
“collector”: “PROVIDER”
},
{
“total”: 57451.3,
“type”: “S5”,
“collector”: “PROVIDER”
},
{
“total”: 368.8,
“type”: “AH4”,
“collector”: “PROVIDER”
},
{
“total”: 5310,
“type”: “YQF”,
“collector”: “PROVIDER”
},
{
“total”: 5310,
“type”: “YQF”,
“collector”: “PROVIDER”
}
],
“refund_policy”: [
{
“applies”: “BEFORE”,
“valid”: false,
“amount”: 0,
“percentage”: 0
},
{
“applies”: “AFTER”,
“valid”: false,
“amount”: 0,
“percentage”: 0
}
],
“exchange_policy”: [
{
“applies”: “BEFORE”,
“valid”: true,
“amount”: 44250,
“percentage”: 0
},
{
“applies”: “AFTER”,
“valid”: true,
“amount”: 44250,
“percentage”: 0
}
]
},
“reseller_charges”: {
“operating_cost”: 0,
“fees”: 0,
“markup”: 0
},
“agency_charges”: {
“operating_cost”: 0,
“fees”: 10286.24,
“markup”: 0
},
“currency”: “ARS”,
“commision_rule_data”: {
“currency”: “ARS”,
“ceded_amount”: 0,
“reseller_amount”: 0
},
“over_commision_rule_data”: {
“currency”: “”,
“ceded_amount”: 0,
“reseller_amount”: 0
},
“agency_cost_effectiveness”: 10286.24
},
“provider_id”: “NETVIAX”,
“source”: “SABRE”,
“source_type”: “GDS”,
“validating_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“route_type”: “INTERNATIONAL”,
“flight_type”: “ROUND_TRIP”,
“tracking_id”: “1d262786-XXXX-4565-b594-acea42a42c71”,
“payments_url”: “”
}