Basset Help

Help Basset

Get Clusters By ID UpSell (V2) (Paso 3.1)

curl --location 'https://api.basset.ws/flights/clusters/7fc93d09-c14b-4c4e-8556-648e03cb03fb%7C4369691170603681084_7fc93d09-c14b-4c4e-8556-648e03cb03fb%7C16604947689867157449?site=AR&channel=DESKTOP' \
--header 'sec-ch-ua: "Not_A Brand";v="8", "Chromium";v="120", "Google Chrome";v="120"' \
--header 'sec-ch-ua-platform: "Windows"' \
--header 'sec-ch-ua-mobile: ?0' \
--header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'x-client-id: CLIENT-ID' \
--header 'x-api-key: API-KEY' \
--header 'host: api.basset.ws'

Para conocer todo el funcionamiento del CURL por favor ir a * . En este segmento solo explicamos como funciona el cambio de categoría, o método upsell. Recuerden que este cambio de categoría viene desde el proveedor.

Si este atributo viene en “true” muestra los cambios de tarifa, si viniese en “false” entonces no existirían cambios de tarifa.

Ejemplo de un response:

{
    "segments": [
        {
            "origin": {
                "code": "UIO",
                "name": "Quito, Ecuador (UIO-A. Internacional Mariscal Sucre)",
                "country_code": "EC"
            },
            "destination": {
                "code": "MIA",
                "name": "Miami, FL, Estados Unidos (MIA-A. Internacional de Miami)",
                "country_code": "US"
            },
            "departure_date": "2024-03-02",
            "options": [
                {
                    "id": "7fc93d09-c14b-4c4e-8556-648e03cb03fb|4369691170603681084",
                    "departure_date": "2024-03-02",
                    "departure_time": "06:00",
                    "arrival_date": "2024-03-02",
                    "arrival_time": "10:15",
                    "duration": "04:15",
                    "legs": [
                        {
                            "origin": {
                                "code": "UIO",
                                "name": "Quito, Ecuador (UIO-A. Internacional Mariscal Sucre)",
                                "country_code": "EC"
                            },
                            "destination": {
                                "code": "MIA",
                                "name": "Miami, FL, Estados Unidos (MIA-A. Internacional de Miami)",
                                "country_code": "US"
                            },
                            "departure_date": "2024-03-02",
                            "departure_time": "06:00",
                            "arrival_date": "2024-03-02",
                            "arrival_time": "10:15",
                            "marketing_carrier": {
                                "code": "AA",
                                "name": "American Airlines"
                            },
                            "operating_carrier": {
                                "code": "AA",
                                "name": "American Airlines"
                            },
                            "duration": "04:15",
                            "flight_number": "372",
                            "aircraft_type": "7M8",
                            "cabin_type": {
                                "code": "O",
                                "name": "Economy",
                                "quantity": 7
                            },
                            "brand": {
                                "id": "MAIN",
                                "name": "MAIN CABIN"
                            },
                            "id": "VUlPfE1JQQ==",
                            "fare_type": "PUB"
                        }
                    ],
                    "baggage_allowances": [
                        {
                            "quantity": 1,
                            "weight": 3,
                            "type": "PERSONAL_ITEM",
                            "chargeable": false
                        },
                        {
                            "quantity": 1,
                            "weight": 23,
                            "type": "CHECKED_BAGGAGE",
                            "chargeable": true
                        },
                        {
                            "quantity": 2,
                            "weight": 45,
                            "type": "CARRY_ON",
                            "chargeable": false,
                            "dimension": 115,
                            "dimension_unit": "CM Lineales"
                        }
                    ]
                }
            ]
        },
        {
            "origin": {
                "code": "MIA",
                "name": "Miami, FL, Estados Unidos (MIA-A. Internacional de Miami)",
                "country_code": "US"
            },
            "destination": {
                "code": "UIO",
                "name": "Quito, Ecuador (UIO-A. Internacional Mariscal Sucre)",
                "country_code": "EC"
            },
            "departure_date": "2024-03-16",
            "options": [
                {
                    "id": "7fc93d09-c14b-4c4e-8556-648e03cb03fb|16604947689867157449",
                    "departure_date": "2024-03-16",
                    "departure_time": "09:54",
                    "arrival_date": "2024-03-16",
                    "arrival_time": "13:08",
                    "duration": "03:14",
                    "legs": [
                        {
                            "origin": {
                                "code": "MIA",
                                "name": "Miami, FL, Estados Unidos (MIA-A. Internacional de Miami)",
                                "country_code": "US"
                            },
                            "destination": {
                                "code": "UIO",
                                "name": "Quito, Ecuador (UIO-A. Internacional Mariscal Sucre)",
                                "country_code": "EC"
                            },
                            "departure_date": "2024-03-16",
                            "departure_time": "09:54",
                            "arrival_date": "2024-03-16",
                            "arrival_time": "13:08",
                            "marketing_carrier": {
                                "code": "AA",
                                "name": "American Airlines"
                            },
                            "operating_carrier": {
                                "code": "AA",
                                "name": "American Airlines"
                            },
                            "duration": "03:14",
                            "flight_number": "2163",
                            "aircraft_type": "7M8",
                            "cabin_type": {
                                "code": "O",
                                "name": "Economy",
                                "quantity": 7
                            },
                            "brand": {
                                "id": "MAIN",
                                "name": "MAIN CABIN"
                            },
                            "id": "TUlBfFVJTw==",
                            "fare_type": "PUB"
                        }
                    ],
                    "baggage_allowances": [
                        {
                            "quantity": 1,
                            "weight": 3,
                            "type": "PERSONAL_ITEM",
                            "chargeable": false
                        },
                        {
                            "quantity": 1,
                            "weight": 23,
                            "type": "CHECKED_BAGGAGE",
                            "chargeable": true
                        },
                        {
                            "quantity": 2,
                            "weight": 45,
                            "type": "CARRY_ON",
                            "chargeable": false,
                            "dimension": 115,
                            "dimension_unit": "CM Lineales"
                        }
                    ]
                }
            ]
        }
    ],
    "price": {
        "charges": 18791.23,
        "total": 436374.03,
        "taxes": 249932.8,
        "adults": {
            "fare": 167650,
            "quantity": 1,
            "taxes": [
            ],
            "refund_policy": [
                {
                    "applies": "BEFORE",
                    "valid": false,
                    "amount": 0,
                    "percentage": 0,
                    "currency": "ARS"
                },
                {
                    "applies": "AFTER",
                    "valid": false,
                    "amount": 0,
                    "percentage": 0,
                    "currency": "ARS"
                }
            ],
            "exchange_policy": [
                {
                    "applies": "BEFORE",
                    "valid": true,
                    "amount": 0,
                    "percentage": 0,
                    "currency": "ARS"
                },
                {
                    "applies": "AFTER",
                    "valid": true,
                    "amount": 0,
                    "percentage": 0,
                    "currency": "ARS"
                }
            ]
        },
        "reseller_charges": {
            "operating_cost": 0,
            "fees": 0,
            "markup": 0
        },
        "agency_charges": {
            "operating_cost": 0,
            "fees": 18791.23,
            "markup": 0
        },
        "currency": "ARS",
        "commision_rule_data": {
            "currency": "GivenCurrency",
            "ceded_amount": 1676.5,
            "reseller_amount": 0
        },
        "agency_cost_effectiveness": 20467.73,
        "fees": [],
        "detail": {
            "fees": [],
            "charges": 18791.23
        }
    },
    "provider_id": "NETVIAX_V2",
    "source": "SABRE",
    "source_type": "GDS",
    "validating_carrier": {
        "code": "AA",
        "name": "American Airlines"
    },
    "route_type": "INTERNATIONAL",
    "flight_type": "ROUND_TRIP",
    "form_of_payments": [
        {
            "card": "DC",
            "card_description": "Diners Club",
            "bank": "DC",
            "bank_description": "DC",
            "description": "DINERS/1 Cuota - ARS",
            "surcharge": 0,
            "installments": [
                1
            ],
            "bins": [],
            "coefficient": 1
        },
        {
            "card": "VI",
            "card_description": "Visa",
            "bank": "VI",
            "bank_description": "VI",
            "description": "VISA/1 Cuota ARS",
            "surcharge": 0,
            "installments": [
                1
            ],
            "bins": [],
            "coefficient": 1
        },
        {
            "card": "AX",
            "card_description": "American Express",
            "bank": "AX",
            "bank_description": "AX",
            "description": "AMERICAN EXPRESS/1 Cuotas - Autorizacion por GDS ARS",
            "surcharge": 0,
            "installments": [
                1
            ],
            "bins": [],
            "coefficient": 1
        },
        {
            "card": "CA",
            "card_description": "Master Card",
            "bank": "CA",
            "bank_description": "CA",
            "description": "MASTER/1 Cuota - ARS",
            "surcharge": 0,
            "installments": [
                1
            ],
            "bins": [],
            "coefficient": 1
        }
    ],
    "tracking_id": "e65b72f0-04d6-4290-979d-11a07ec29c9c",
    "last_ticketing_date": "2024-01-19T23:59:00-03:00",
    "upsell_fares": [
        {
            "id": "TUFJTnxNQUlO",
            "price": {
                "charges": 18791.23,
                "total": 436374.03,
                "taxes": 249932.8,
                "adults": {
                    "fare": 167650,
                    "quantity": 1,
                    "taxes": [
                    ],
                    "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": 0,
                            "percentage": 0
                        },
                        {
                            "applies": "AFTER",
                            "valid": true,
                            "amount": 0,
                            "percentage": 0
                        }
                    ]
                },
                "reseller_charges": {
                    "operating_cost": 0,
                    "fees": 0,
                    "markup": 0
                },
                "agency_charges": {
                    "operating_cost": 0,
                    "fees": 18791.23,
                    "markup": 0
                },
                "currency": "ARS",
                "commision_rule_data": {
                    "currency": "GivenCurrency",
                    "ceded_amount": 1676.5,
                    "reseller_amount": 0
                },
                "agency_cost_effectiveness": 20467.73,
                "fees": [],
                "detail": {
                    "fees": [],
                    "charges": 18791.23
                }
            },
            "upsell_price": {
                "amount": 0,
                "percentage": 0
            },
            "segments": [
                {
                    "legs": [
                        {
                        }
                    ],
                    "baggage_allowances": [
                        {
                            "quantity": 1,
                            "weight": 3,
                            "type": "PERSONAL_ITEM",
                            "chargeable": false
                        },
                        {
                            "quantity": 2,
                            "weight": 40,
                            "type": "CARRY_ON",
                            "chargeable": false,
                            "dimension": 101,
                            "dimension_unit": "CM Lineales"
                        },
                        {
                            "quantity": 1,
                            "weight": 23,
                            "type": "CHECKED_BAGGAGE",
                            "chargeable": false
                        }
                    ]
                },
                {
                    "legs": [
                        {
                            "id": "TUlBfFVJTw==",
                            "brand": {
                                "id": "MAIN",
                                "name": "MAIN CABIN",
                                "services": [
                                ]
                            }
                        }
                    ],
                    "baggage_allowances": [
                        {
                            "quantity": 1,
                            "weight": 3,
                            "type": "PERSONAL_ITEM",
                            "chargeable": false
                        },
                        {
                            "quantity": 2,
                            "weight": 40,
                            "type": "CARRY_ON",
                            "chargeable": false,
                            "dimension": 101,
                            "dimension_unit": "CM Lineales"
                        },
                        {
                            "quantity": 1,
                            "weight": 23,
                            "type": "CHECKED_BAGGAGE",
                            "chargeable": false
                        }
                    ]
                }
            ]
        },
        {

        },
        {

        },
        {

        },
        {

        }
    ],
    "upsell": true,
    "account_codes_used": [],
    "fare_type": "PUB",
    "payments_url": ""
}

De esta manera ya se obtienen las demás tarifas.

Flight Segments Booking (Data Completa de Booking) (Paso 7)

curl –location –request GET ‘https://api.basset.ws/flights/reservations/4cdaa90a-55ef-4fd0-b765-217fff0585d2/?site=AR&channel=API’ \
–header ‘x-api-key: KEY’ \
–header ‘x-client-id: ID’

Response:

{
“id”: “4cdaa90a-55ef-4fd0-b765-217fff0585d2”,
“reservation_id”: “369656351”,
“cluster”: {
“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:11”,
“arrival_date”: “2023-08-26”,
“arrival_time”: “10:34”,
“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:11”,
“arrival_date”: “2023-08-26”,
“arrival_time”: “10:34”,
“marketing_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“operating_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“duration”: “07:24”,
“flight_number”: “0278”,
“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:32”,
“arrival_date”: “2023-08-31”,
“arrival_time”: “21:49”,
“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:32”,
“arrival_date”: “2023-08-31”,
“arrival_time”: “21:49”,
“marketing_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“operating_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“duration”: “07:12”,
“flight_number”: “0500”,
“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”: 16086.4,
“type”: “AR”,
“collector”: “PROVIDER”
},
{
“total”: 16815,
“type”: “XR”,
“collector”: “PROVIDER”
},
{
“total”: 2360,
“type”: “TQ”,
“collector”: “PROVIDER”
},
{
“total”: 2950,
“type”: “QO”,
“collector”: “PROVIDER”
},
{
“total”: 10620,
“type”: “YQ”,
“collector”: “PROVIDER”
},
{
“total”: 11800,
“type”: “FZ”,
“collector”: “PROVIDER”
},
{
“total”: 737.6,
“type”: “AH”,
“collector”: “PROVIDER”
},
{
“total”: 3540,
“type”: “F3”,
“collector”: “PROVIDER”
},
{
“total”: 103412.3,
“type”: “Q1”,
“collector”: “PROVIDER”
},
{
“total”: 413,
“type”: “S7”,
“collector”: “PROVIDER”
},
{
“total”: 68941.5,
“type”: “O5”,
“collector”: “PROVIDER”
},
{
“total”: 57451.3,
“type”: “S5”,
“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
},
“detail”: {
“total”: 524598.34,
“taxes”: 295127.1,
“charges”: 10286.24,
“adults”: {
“passenger_total”: 524598.34,
“passenger_total_tax”: 295127.1,
“passenger_base_fare”: 219185,
“total”: 524598.34,
“passenger_base_tax”: 295127.1,
“quantity”: 1,
“passenger_type”: “ADT”,
“passenger_discount_type”: “ADT”,
“extra_taxes”: null,
“taxes”: [
{
“total”: 16086.4,
“type”: “AR”,
“collector”: “PROVIDER”
},
{
“total”: 16815,
“type”: “XR”,
“collector”: “PROVIDER”
},
{
“total”: 2360,
“type”: “TQ”,
“collector”: “PROVIDER”
},
{
“total”: 2950,
“type”: “QO”,
“collector”: “PROVIDER”
},
{
“total”: 10620,
“type”: “YQ”,
“collector”: “PROVIDER”
},
{
“total”: 11800,
“type”: “FZ”,
“collector”: “PROVIDER”
},
{
“total”: 737.6,
“type”: “AH”,
“collector”: “PROVIDER”
},
{
“total”: 3540,
“type”: “F3”,
“collector”: “PROVIDER”
},
{
“total”: 103412.3,
“type”: “Q1”,
“collector”: “PROVIDER”
},
{
“total”: 413,
“type”: “S7”,
“collector”: “PROVIDER”
},
{
“total”: 68941.5,
“type”: “O5”,
“collector”: “PROVIDER”
},
{
“total”: 57451.3,
“type”: “S5”,
“collector”: “PROVIDER”
}
],
“fees”: [
{
“total”: 10286.24,
“type”: “FEE”,
“collector”: “PROVIDER”
}
],
“metadata”: {
“n_etviax__rules”: [
{
“extended_properties”: [
{
“key”: “PoA”,
“value”: “%”
},
{
“key”: “GivenCurrency”,
“value”: “NA”
},
{
“key”: “Given”,
“value”: “0.00”
},
{
“key”: “GivenCurrencyAmount”,
“value”: “ARS”
},
{
“key”: “GivenAmount”,
“value”: “0.00”
},
{
“key”: “GrossCurrency”,
“value”: “NA”
},
{
“key”: “Gross”,
“value”: “0.00”
},
{
“key”: “GrossCurrencyAmount”,
“value”: “ARS”
},
{
“key”: “GrossAmount”,
“value”: “0.00”
}
],
“id”: “127053”,
“type”: “C”
},
{
“extended_properties”: null,
“id”: “126530”,
“type”: “CV”
},
{
“extended_properties”: [
{
“key”: “CalculatedCurrency”,
“value”: “ARS”
},
{
“key”: “CalculatedAmount”,
“value”: “10286.24”
}
],
“id”: “128368”,
“type”: “F”
},
{
“extended_properties”: null,
“id”: “127912”,
“type”: “RE”
}
]
},
“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
}
]
},
“currency”: “ARS”,
“conversion_rate”: 1,
“fees”: null,
“commission_rule_data”: {
“currency”: “ARS”,
“ceded_amount”: 0,
“airline_ceded_amount”: 0,
“agency_amount”: 0,
“reseller_amount”: 0,
“airline_amount”: 0
},
“over_commission_rule_data”: {
“currency”: “”,
“ceded_amount”: 0,
“airline_ceded_amount”: 0,
“agency_amount”: 0,
“reseller_amount”: 0,
“airline_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-c8d1-4565-b594-aceaxxx2c71”
},
“pnr”: “LSJYWC”,
“reseller_expiration_date”: “0001-01-01T00:00:00Z”,
“expiration_date”: “2023-08-11T15:57:00-03:00”,
“passengers”: [
{
“type”: “ADT”,
“firstname”: “JORGE”,
“lastname”: “SANCHEZ”,
“firstname_original”: “jorge”,
“lastname_original”: “sanchez”,
“gender”: “M”,
“birth”: “14/11/1979”,
“document”: {
“type”: “PAS”,
“number”: “1411122233”,
“issuing_country”: “AR”,
“valid_thru”: “2025-01-01”
},
“nationality”: “AR”
}
],
“activity_logs”: [
{
“new_status”: “BOOKED”,
“previous_status”: “NONE”,
“message”: “”,
“timestamp”: “2023-08-10T19:03:51.077710783Z”,
“action”: “RESERVE”
},
{
“new_status”: “BOOKED”,
“previous_status”: “BOOKED”,
“message”: “update itinerary when retrieve PNR”,
“agent”: {
“id”: “basset|198375827”,
“email”: “mail@correo.la”,
“name”: “Jorge Sanchez”,
“picture”: “https://s.gravatar.com/avatar/19a87b38ef3fa874e5f2e640f44e9b79?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fjo.png”
},
“timestamp”: “2023-08-10T19:12:28.718539149Z”,
“action”: “RETRIEVE”
},
{
“new_status”: “BOOKED”,
“previous_status”: “BOOKED”,
“message”: “update fare tax when retrieve PNR”,
“agent”: {
“id”: “basset|198375827”,
“email”: “mail@correo.la”,
“name”: “Jorge Sanchez”,
“picture”: “https://s.gravatar.com/avatar/19a87b38ef3fa874e5f2e640f44e9b79?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fjo.png”
},
“timestamp”: “2023-08-10T19:12:28.718541212Z”,
“action”: “RETRIEVE”
}
],
“contact”: {
“email”: “mail@correo.la”,
“language”: “es”,
“telephone”: {
“type”: “H”,
“country_code”: “54”,
“area_code”: “11”,
“number”: “343432223”
}
},
“fiscal_identification”: {
“type”: “”,
“number”: “”
},
“client_id”: “3a9fdce7-a307-42a2-aa06-73xxxxc418f”,
“site”: “AR”,
“config_source”: “”,
“channel”: “API”,
“created_at”: “2023-08-10T19:03:32.404783149Z”,
“status”: “BOOKED”,
“provider_id”: “NETVIAX”,
“source”: “SABRE”,
“remarks”: [
{
“text”: “X/-¥CUIL 1166543335”,
“type”: “GENERAL”
},
{
“text”: “X/-¥SITFISC”,
“type”: “GENERAL”
},
{
“text”: “X/-¥RAZSOC JORGE SANCHEZ”,
“type”: “GENERAL”
},
{
“text”: “X/-¥PROVINCIA”,
“type”: “GENERAL”
},
{
“text”: “X/-¥LOCALIDAD AR”,
“type”: “GENERAL”
},
{
“text”: “X/-¥CALLE”,
“type”: “GENERAL”
},
{
“text”: “X/-¥NRO 116525433854”,
“type”: “GENERAL”
},
{
“text”: “X/-¥PISO”,
“type”: “GENERAL”
},
{
“text”: “X/-¥DTO”,
“type”: “GENERAL”
},
{
“text”: “X/-¥PAIS AR”,
“type”: “GENERAL”
},
{
“text”: “X/-¥TIPO ID DNI”,
“type”: “GENERAL”
},
{
“text”: “X/-¥CODPOSTAL 1252”,
“type”: “GENERAL”
},
{
“text”: “X/-¥TEL 54115433372”,
“type”: “GENERAL”
},
{
“text”: “X/-¥MAILCOM LJISS.SANCHEZ AT BASSET.LA”,
“type”: “GENERAL”
},
{
“text”: “X/-¥BASSETID 369456351”,
“type”: “GENERAL”
},
{
“text”: “ASD/IA/PNR/NVX-WS”,
“type”: “HISTORICAL”
},
{
“text”: “NVX/C/ID/127053/1160310AUG23”,
“type”: “HISTORICAL”
},
{
“text”: “NVX/C/BP/P/BC/NA/B/0.00/BMC/ARS/BM/0.00/1160310AUG23”,
“type”: “HISTORICAL”
},
{
“text”: “NVX/C/CC/NA/C/0.00/CMC/ARS/CM/0.00/1160310AUG23”,
“type”: “HISTORICAL”
},
{
“text”: “NVX/CV/ID/126530/1160310AUG23”,
“type”: “HISTORICAL”
},
{
“text”: “NVX/F/ID/128368/1160310AUG23”,
“type”: “HISTORICAL”
},
{
“text”: “NVX/F/CAC/ARS/CAM/10286.24/1160310AUG23”,
“type”: “HISTORICAL”
},
{
“text”: “NVX/RE/ID/127912/1160310AUG23”,
“type”: “HISTORICAL”
}
],
“price_adjustment”: 0,
“voucher_url”: “”,
“provider_configuration_id”: “5609491a-53b4-4805-97b5-e9dd2543cc5b”,
“provider_configuration”: {
“id”: “5609491a-53b4-4805-97b5-e9dd65346cc5b”,
“owner_id”: “3a9fdce7-a307-42a2-aa06-432ecffc418f”,
“owner_name”: “basset”,
“owner_type”: “AGENCY”
},
“payments_url”: “”,
“queue”: null
}

Flight Reservation ID (Resumen Booking) (Paso 6)

curl –location –request GET ‘https://api.basset.ws/reservations/369656351?site=AR&channel=API’ \
–header ‘x-api-key: KEY’ \
–header ‘x-client-id: ID’

Response:

{
“id”: “369656351”,
“products”: [
{
“reservation_id”: “4cdaa90a-55ef-4fd0-b765-217fXXXX5d2”,
“provider_reservation_id”: “LSJYZZ”,
“type”: “FLIGHT”,
“status”: “BOOKED”,
“voucher_url”: “”,
“provider_configuration_id”: “5609491a-53b4-4805-97b5-e9dXXX26cc5b”,
“agent_id”: “”,
“user_group_id”: “”,
“business_unit_id”: “”,
“channel”: “API”,
“source”: “”,
“provider”: “SABRE”,
“messages”: [],
“route_type”: “INTERNATIONAL”,
“flight_type”: “ROUND_TRIP”,
“validating_carrier”: “CM”,
“pnr”: “LSJYZZ”,
“origin”: “Ezeiza”,
“origin_code”: “EZE”,
“destination”: “Tocumen”,
“destination_code”: “PTY”,
“departure_date”: “2023-08-26T05:11:00Z”,
“return_date”: “2023-08-31T12:32:00Z”,
“adults_qty”: 1,
“seniors_qty”: 0,
“disabled_qty”: 0,
“children_qty”: 0,
“infants_qty”: 0,
“fare”: {
“total”: 524598.34,
“currency”: “ARS”
},
“passengers”: [
{
“firstname”: “jorge”,
“lastname”: “sanchez”,
“birth”: “14/11/1979”,
“document”: {
“type”: “PAS”,
“number”: “1411122233”
}
}
],
“reseller_expiration_date”: “0001-01-01T00:00:00Z”,
“expiration_date”: “2023-08-11T15:57:00-03:00”
}
],
“client_id”: “3a9fdce7-a307-42a2-aa06-736ecffc418f”,
“contact”: {
“language”: “es”,
“email”: “mail@correo.com”,
“telephone”: {
“type”: “H”,
“country_code”: “54”,
“area_code”: “11”,
“number”: “333333333”
}
},
“fiscal_data”: {
“identification”: {
“type”: “DNI”,
“number”: “11633333333”,
“fiscal_name”: “jorge sanchez”,
“tax_situation”: “”
},
“address”: {
“state”: “”,
“city”: “AR”,
“country”: “AR”,
“street”: “”,
“number”: “11633333334”,
“floor”: “”,
“door”: “”,
“postal_code”: “1252”
}
},
“created_at”: “2023-08-10T19:03:32.391663659Z”,
“updated_at”: “2023-08-10T19:03:51.113632439Z”,
“messages”: [],
“payments”: [],
“fiscal_documents”: []
}

Reservations Process (Status de Booking) (Paso 5)

curl –location –request GET ‘https://api.basset.ws/reservations/process/44b9ced7-4ced-493d-b14c-a59181f5538d?site=AR&channel=DESKTOP’ \
–header ‘x-client-id: ID’ \
–header ‘x-client-type: AGENCY’ \
–header ‘x-api-key: KEY’

Response:

{
    “id”: “44b9ced7-4ced-493d-b14c-a59181f5538d”,
    “status”: “OK”,
    “reservation_id”: “369656351
}

API Reservation (Booking) (Paso 4)

curl –location –request POST ‘https://api.basset.ws/reservations/async?site=AR&channel=API’ \

–header ‘x-client-id: ID’ \
–header ‘x-client-type: AGENCY’ \
–header ‘x-api-key: KEY’ \
–header ‘Content-Type: application/json’ \
–data-raw ‘{

“products”: [
{
“item_id”: “c3254029-1c21-435f-a473-2b7aba78443d|13918627881584194915_c3254029-1c21-435f-a473-2b7aba78443d|7040208058982863180“,
“type”: “FLIGHT”,
“passengers”: [
{
“birth”: “14/11/1979”,
“document”: {
“number”: “888888888”,
“type”: “PAS”,
“issuing_country”: “AR”,
“valid_thru”: “2025-01-01”
},
“firstname”: “jorge”,
“lastname”: “sanchez”,
“gender”: “M”,
“nationality”: “AR”,
“type”: “ADT”
}
],
“itinerary_info”: {
“origin”: “EZE”,
“destination”: “PTY”,
“departure_date”: “2023-08-26”,
“return_date”: “2023-08-31”,
“currency”: “ARS”,
“price”: “524598.34”
}

}
],
“contact”: {
“email”: “nombre@mail.com”,
“language”: “es”,
“telephone”: {
“area_code”: “11”,
“country_code”: “54”,
“number”: “555555555”,
“type”: “H”
}
},
“fiscal_data”: {
“address”: {
“city”: “AR”,
“country”: “AR”,
“door”: “”,
“floor”: “”,
“number”: “1122222222”,
“postal_code”: “1252”,
“state”: “”,
“street”: “”
},
“identification”: {
“fiscal_name”: “jorge sanchez”,
“number”: “112222222222”,
“tax_situation”: “”,
“type”: “DNI”
}
}
}’

Response OK:

{
“id”: “44b9ced7-4ced-493d-b14c-a59181fXXXXd”,
“status”: “BOOKING”,
“reservation_id”: “”
}

Importante para  “passengers”:

Tipos de pasajeros: 

ADT = Adulto, Adulto Mayor, Discapacitado –
CHD = Niño 0 – 2 En brazo y Asiento –
INF = Niño de 2 a 11

Documento AR:

PAS = Pasaporte 
CI = Documento Único DNI

Get Clusters By ID (V1) (Paso 3)

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”: “”

}

API Clusters (Busqueda) (Paso 2)

Url

https://api.basset.ws/flights/clusters?channel=API&adults=1&limit=20&offset=0&site=AR&from=BUE,PTY&to=PTY,BUE&dates=2023-08-26,2023-08-31

 

Cabeceras

    • x-api-key (obligatorio): Clave de API proporcionada por Basset.

    • x-client-id (obligatorio): Identificador de cliente proporcionado por Basset.

Descripción de los query params

Request

Query Parameters

Type date

Descriptions

REQUIRED

Channel

string

Sales channel: WEB, DESKTOP, API, MOBILE

REQUIRED

From

string

Origen (Código de Ciudad o Aeropuerto) Ej. BUE

REQUIRED

To

string

Destino (Código de Ciudad o Aeropuerto) Ej. BOG

REQUIRED

Dates

string

Fechas de vuelo AAAA-MM-DD.

REQUIRED

Adults

string

Número de pasajeros y tipo de pasajero

(&adults=1&&infants=1&seat_infants=1&children=1&seniors=3&handicapped=2)

ADT = Adulto, Adulto Mayor, Discapacitado – CHD = Niño 0 – 2 En brazo y Asiento – INF = Niño de 2 a 11

 

REQUIRED

Site

string

ISO 3166-2 country code (Ej. AR)

REQUIRED

Limit

integer

Cantidad de cluster ej=20

REQUIRED

Offset

integer

Referencia que indica a partir de donde se va a mostrar la búsqueda del cluster (si asignas 10 mostrara: (noveno del cero al nueve))

REQUIRED

Type

parameter

El vuelo si es solo ida, si es ida y vuelta o si tiene múltiples destinos (ONE_WAY -ROUND_TRIP -MULTIPLE_DESTINATIONS)

REQUIRED

Cabin

string

Sección donde viajan los pasajeros (asiento)

(Y,M,W,C,F)

REQUIRED

checked_baggage

boolean

Equipage (true-false)

REQUIRED

Page

integer

Expresa las paginas sobre la segunda pantalla de búsqueda

REQUIRED

Stops

string

Si posee Paradas

Ejemplo de pasajeros:

https://app.basset.la/sales/flights/results?origin=BUE&destination=PTY&dates=2023-09-01,2023-09-30&type=ROUND_TRIP&adults=1&&infants=1&seat_infants=1&children=1&seniors=3&handicapped=2

Response:

{
“clusters”: [
{
“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”: “2f034eee-d4b0-47c9-bf66-598d986048ae|2080484556544533650”,
“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”: “2f034eee-d4b0-47c9-bf66-598d986048ae|386091495561925801”,
“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”
}
]
},
{
“id”: “2f034eee-d4b0-47c9-bf66-598d986048ae|9067548722710408684”,
“departure_date”: “2023-08-31”,
“departure_time”: “15:13”,
“arrival_date”: “2023-09-01”,
“arrival_time”: “00:25”,
“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”: “15:13”,
“arrival_date”: “2023-09-01”,
“arrival_time”: “00:25”,
“marketing_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“operating_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“duration”: “07:12”,
“flight_number”: “279”,
“aircraft_type”: “739”,
“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”
}
]
},
{
“id”: “2f034eee-d4b0-47c9-bf66-598d986048ae|4558417464413787117”,
“departure_date”: “2023-08-31”,
“departure_time”: “18:18”,
“arrival_date”: “2023-09-01”,
“arrival_time”: “03:33”,
“duration”: “07:15”,
“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”: “18:18”,
“arrival_date”: “2023-09-01”,
“arrival_time”: “03:33”,
“marketing_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“operating_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“duration”: “07:15”,
“flight_number”: “454”,
“aircraft_type”: “739”,
“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”
}
]
},
{
“id”: “2f034eee-d4b0-47c9-bf66-598d986048ae|6925318911813010053”,
“departure_date”: “2023-08-31”,
“departure_time”: “21:26”,
“arrival_date”: “2023-09-01”,
“arrival_time”: “06:41”,
“duration”: “07:15”,
“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”: “21:26”,
“arrival_date”: “2023-09-01”,
“arrival_time”: “06:41”,
“marketing_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“operating_carrier”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“duration”: “07:15”,
“flight_number”: “367”,
“aircraft_type”: “739”,
“cabin_type”: {
“code”: “S”,
“name”: “Economy”,
“quantity”: 8
},
“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”: “52bf8fc1-3277-47b8-a2ea-2b56e”
}
],
“total”: 19,
“limit”: 1,
“offset”: 0,
“filters”: {
“airlines”: [
{
“code”: “AR”,
“name”: “Aerolineas Argentinas”
},
{
“code”: “AV”,
“name”: “Avianca”
},
{
“code”: “CM”,
“name”: “COPA Airlines”
},
{
“code”: “DL”,
“name”: “Delta Air Lines”
},
{
“code”: “UA”,
“name”: “United Airlines”
}
],
“outbound_airports”: {
“outbound”: [
{
“code”: “EZE”,
“name”: “Buenos Aires, Argentina (EZE-A. Internacional Ministro Pistarini)”,
“country_code”: “AR”
},
{
“code”: “AEP”,
“name”: “Buenos Aires, Argentina (AEP-Aeroparque Jorge Newbery)”,
“country_code”: “AR”
}
],
“inbound”: [
{
“code”: “PTY”,
“name”: “Panamá, Panamá (PTY-A. Internacional de Tocumen)”,
“country_code”: “PA”
}
]
},
“inbound_airports”: {
“outbound”: [
{
“code”: “PTY”,
“name”: “Panamá, Panamá (PTY-A. Internacional de Tocumen)”,
“country_code”: “PA”
}
],
“inbound”: [
{
“code”: “EZE”,
“name”: “Buenos Aires, Argentina (EZE-A. Internacional Ministro Pistarini)”,
“country_code”: “AR”
},
{
“code”: “AEP”,
“name”: “Buenos Aires, Argentina (AEP-Aeroparque Jorge Newbery)”,
“country_code”: “AR”
}
]
},
“stops”: [
0,
1,
2
]
},
“matrix”: [
{
“airline”: {
“code”: “CM”,
“name”: “COPA Airlines”
},
“_stops”: {},
“stops”: {
“0”: {
“total”: 524598.34,
“currency”: “ARS”
}
}
},
{
“airline”: {
“code”: “AV”,
“name”: “Avianca”
},
“_stops”: {},
“stops”: {
“1”: {
“total”: 581624.46,
“currency”: “ARS”
}
}
},
{
“airline”: {
“code”: “DL”,
“name”: “Delta Air Lines”
},
“_stops”: {},
“stops”: {
“1”: {
“total”: 808593.67,
“currency”: “ARS”
},
“2”: {
“total”: 1279062.86,
“currency”: “ARS”
}
}
},
{
“airline”: {
“code”: “UA”,
“name”: “United Airlines”
},
“_stops”: {},
“stops”: {
“1”: {
“total”: 1058408.21,
“currency”: “ARS”
},
“2”: {
“total”: 992360.3,
“currency”: “ARS”
}
}
},
{
“airline”: {
“code”: “AR”,
“name”: “Aerolineas Argentinas”
},
“_stops”: {},
“stops”: {
“2”: {
“total”: 1279062.86,
“currency”: “ARS”
}
}
}
],
“metadata”: {
“min_price”: 524598.34,
“max_price”: 1718252.02
}
}