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.