Basset Help

Help Basset

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
}