Model library · 2026-10-17-tau2-qwen35-9b · trial 2 · ended by user_stop
Airline task 20 pass
Tests instruction following over a long booking policy.
- 1
- reward
- 40
- messages
- —
- agent cost
- $0.0408
- customer cost
- 292 s
- duration
Task
Book a flight with time and payment constraints.
Reason for callYou want to fly from New York to Seattle on May 20 (one way).
Customer knowsYour name is Mia Li. Your user id is mia_li_3668.
BehaviorYou do not want to fly before 11am est. You want to fly in economy. You prefer direct flights but one stopover also fine. If there are multiple options, you prefer the one with the lowest price. You have 3 baggages. You do not want insurance. You want to use your two certificates to pay. If only one certificate can be used, you prefer using the larger one, and pay the rest with your 7447 card. You are reactive to the agent and will not say anything that is not asked. Your birthday is in your user profile so you do not prefer to provide it.
Full task definition
{
"id": "20",
"issues": null,
"ticket": null,
"user_tools": null,
"description": {
"notes": null,
"purpose": "Book a flight with time and payment constraints.",
"relevant_policies": null
},
"initial_state": null,
"user_scenario": {
"persona": null,
"instructions": {
"domain": "airline",
"known_info": "Your name is Mia Li.\nYour user id is mia_li_3668.",
"unknown_info": null,
"reason_for_call": "You want to fly from New York to Seattle on May 20 (one way).",
"task_instructions": "You do not want to fly before 11am est.\n\nYou want to fly in economy.\n\nYou prefer direct flights but one stopover also fine.\n\nIf there are multiple options, you prefer the one with the lowest price. \n\nYou have 3 baggages.\n\nYou do not want insurance.\n\nYou want to use your two certificates to pay. \n\nIf only one certificate can be used, you prefer using the larger one, and pay the rest with your 7447 card.\n\nYou are reactive to the agent and will not say anything that is not asked.\n\nYour birthday is in your user profile so you do not prefer to provide it."
}
},
"required_documents": null,
"evaluation_criteria": {
"actions": [
{
"info": null,
"name": "book_reservation",
"action_id": "20_0",
"arguments": {
"cabin": "economy",
"origin": "JFK",
"flights": [
{
"date": "2024-05-20",
"flight_number": "HAT136"
},
{
"date": "2024-05-20",
"flight_number": "HAT039"
}
],
"user_id": "mia_li_3668",
"insurance": "no",
"passengers": [
{
"dob": "1990-04-05",
"last_name": "Li",
"first_name": "Mia"
}
],
"destination": "SEA",
"flight_type": "one_way",
"total_baggages": 3,
"payment_methods": [
{
"amount": 250,
"payment_id": "certificate_7504069"
},
{
"amount": 5,
"payment_id": "credit_card_4421486"
}
],
"nonfree_baggages": 0
},
"requestor": "assistant",
"compare_args": null
}
],
"reward_basis": [
"DB",
"COMMUNICATE"
],
"nl_assertions": [
"Agent books one-way one-stop economy trip from JFK to SEA with flights HAT136 and HAT039 on 2024-05-20, 3 baggages, no insurance.",
"Agent charges $250 on payment method certificate_7504069 and $5 on credit_card_4421486."
],
"env_assertions": null,
"communicate_info": []
}
}Grading
1/1 expected actions matched · database matches
- ✓
book_reservation{"cabin":"economy","origin":"JFK","flights":[{"date":"2024-05-20","flight_number":"HAT136"},{"date":"2024-05-20","flight_number":"HAT039"}],"user_id":"mia_li_3668","insurance":"no","passengers":[{"dob":"1990-04-05","last_name":"Li","first_name":"Mia"}],"destination":"SEA","flight_type":"one_way","total_baggages":3,"payment_methods":[{"amount":250,"payment_id":"certificate_7504069"},{"amount":5,"payment_id":"credit_card_4421486"}],"nonfree_baggages":0}
Raw grading
{
"info": {
"nl": null,
"env": null,
"action": null,
"communicate": {
"note": "No communicate_info to evaluate"
}
},
"reward": 1,
"db_check": {
"db_match": true,
"db_reward": 1
},
"reward_basis": [
"DB",
"COMMUNICATE"
],
"action_checks": [
{
"action": {
"info": null,
"name": "book_reservation",
"action_id": "20_0",
"arguments": {
"cabin": "economy",
"origin": "JFK",
"flights": [
{
"date": "2024-05-20",
"flight_number": "HAT136"
},
{
"date": "2024-05-20",
"flight_number": "HAT039"
}
],
"user_id": "mia_li_3668",
"insurance": "no",
"passengers": [
{
"dob": "1990-04-05",
"last_name": "Li",
"first_name": "Mia"
}
],
"destination": "SEA",
"flight_type": "one_way",
"total_baggages": 3,
"payment_methods": [
{
"amount": 250,
"payment_id": "certificate_7504069"
},
{
"amount": 5,
"payment_id": "credit_card_4421486"
}
],
"nonfree_baggages": 0
},
"requestor": "assistant",
"compare_args": null
},
"tool_type": "write",
"action_match": true,
"action_reward": 1
}
],
"nl_assertions": null,
"env_assertions": [],
"reward_breakdown": {
"DB": 1,
"COMMUNICATE": 1
},
"communicate_checks": null
}Conversation
AgentCustomer
get_user_details
{
"user_id": "mia_li_3668"
}54 lines · click to expand
{
"user_id": "mia_li_3668",
"name": {
"first_name": "Mia",
"last_name": "Li"
},
"address": {
"address1": "975 Sunset Drive",
"address2": "Suite 217",
"city": "Austin",
"country": "USA",
"state": "TX",
"zip": "78750"
},
"email": "mia.li3818@example.com",
"dob": "1990-04-05",
"payment_methods": {
"credit_card_4421486": {
"source": "credit_card",
"id": "credit_card_4421486",
"brand": "visa",
"last_four": "7447"
},
"certificate_4856383": {
"source": "certificate",
"id": "certificate_4856383",
"amount": 100
},
"certificate_7504069": {
"source": "certificate",
"id": "certificate_7504069",
"amount": 250
},
"credit_card_1955700": {
"source": "credit_card",
"id": "credit_card_1955700",
"brand": "visa",
"last_four": "1907"
}
},
"saved_passengers": [
{
"first_name": "Amelia",
"last_name": "Ahmed",
"dob": "1957-03-21"
}
],
"membership": "gold",
"reservations": [
"NO6JO3",
"AIXC49",
"HKEG34"
]
}list_all_airports
{}82 lines · click to expand
[
{
"iata": "SFO",
"city": "San Francisco"
},
{
"iata": "JFK",
"city": "New York"
},
{
"iata": "LAX",
"city": "Los Angeles"
},
{
"iata": "ORD",
"city": "Chicago"
},
{
"iata": "DFW",
"city": "Dallas"
},
{
"iata": "DEN",
"city": "Denver"
},
{
"iata": "SEA",
"city": "Seattle"
},
{
"iata": "ATL",
"city": "Atlanta"
},
{
"iata": "MIA",
"city": "Miami"
},
{
"iata": "BOS",
"city": "Boston"
},
{
"iata": "PHX",
"city": "Phoenix"
},
{
"iata": "IAH",
"city": "Houston"
},
{
"iata": "LAS",
"city": "Las Vegas"
},
{
"iata": "MCO",
"city": "Orlando"
},
{
"iata": "EWR",
"city": "Newark"
},
{
"iata": "CLT",
"city": "Charlotte"
},
{
"iata": "MSP",
"city": "Minneapolis"
},
{
"iata": "DTW",
"city": "Detroit"
},
{
"iata": "PHL",
"city": "Philadelphia"
},
{
"iata": "LGA",
"city": "LaGuardia"
}
]search_direct_flight
{
"date": "2024-05-20",
"origin": "JFK",
"destination": "SEA"
}40 lines · click to expand
[
{
"flight_number": "HAT069",
"origin": "JFK",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "06:00:00",
"scheduled_arrival_time_est": "12:00:00",
"date": null,
"available_seats": {
"basic_economy": 17,
"economy": 12,
"business": 3
},
"prices": {
"basic_economy": 51,
"economy": 121,
"business": 239
}
},
{
"flight_number": "HAT083",
"origin": "JFK",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "01:00:00",
"scheduled_arrival_time_est": "07:00:00",
"date": null,
"available_seats": {
"basic_economy": 16,
"economy": 7,
"business": 3
},
"prices": {
"basic_economy": 87,
"economy": 100,
"business": 276
}
}
]search_onestop_flight
{
"date": "2024-05-20",
"origin": "JFK",
"destination": "SEA"
}162 lines · click to expand
[
[
{
"flight_number": "HAT057",
"origin": "JFK",
"destination": "ATL",
"status": "available",
"scheduled_departure_time_est": "07:00:00",
"scheduled_arrival_time_est": "09:30:00",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 7,
"economy": 3,
"business": 9
},
"prices": {
"basic_economy": 76,
"economy": 141,
"business": 477
}
},
{
"flight_number": "HAT039",
"origin": "ATL",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "22:00:00",
"scheduled_arrival_time_est": "03:00:00+1",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 18,
"economy": 10,
"business": 2
},
"prices": {
"basic_economy": 52,
"economy": 103,
"business": 283
}
}
],
[
{
"flight_number": "HAT136",
"origin": "JFK",
"destination": "ATL",
"status": "available",
"scheduled_departure_time_est": "19:00:00",
"scheduled_arrival_time_est": "21:30:00",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 15,
"economy": 14,
"business": 2
},
"prices": {
"basic_economy": 52,
"economy": 152,
"business": 277
}
},
{
"flight_number": "HAT039",
"origin": "ATL",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "22:00:00",
"scheduled_arrival_time_est": "03:00:00+1",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 18,
"economy": 10,
"business": 2
},
"prices": {
"basic_economy": 52,
"economy": 103,
"business": 283
}
}
],
[
{
"flight_number": "HAT218",
"origin": "JFK",
"destination": "ATL",
"status": "available",
"scheduled_departure_time_est": "18:00:00",
"scheduled_arrival_time_est": "20:30:00",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 12,
"economy": 1,
"business": 4
},
"prices": {
"basic_economy": 76,
"economy": 158,
"business": 342
}
},
{
"flight_number": "HAT039",
"origin": "ATL",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "22:00:00",
"scheduled_arrival_time_est": "03:00:00+1",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 18,
"economy": 10,
"business": 2
},
"prices": {
"basic_economy": 52,
"economy": 103,
"business": 283
}
}
],
[
{
"flight_number": "HAT268",
"origin": "JFK",
"destination": "ATL",
"status": "available",
"scheduled_departure_time_est": "07:00:00",
"scheduled_arrival_time_est": "09:30:00",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 17,
"economy": 19,
"business": 12
},
"prices": {
"basic_economy": 91,
"economy": 101,
"business": 453
}
},
{
"flight_number": "HAT039",
"origin": "ATL",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "22:00:00",
"scheduled_arrival_time_est": "03:00:00+1",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 18,
"economy": 10,
"business": 2
},
"prices": {
"basic_economy": 52,
"economy": 103,
"business": 283
}
}
]
]search_direct_flight
{
"date": "2024-05-20",
"origin": "EWR",
"destination": "SEA"
}result
[]
search_direct_flight
{
"date": "2024-05-20",
"origin": "LGA",
"destination": "SEA"
}result
[]
search_onestop_flight
{
"date": "2024-05-20",
"origin": "EWR",
"destination": "SEA"
}162 lines · click to expand
[
[
{
"flight_number": "HAT213",
"origin": "EWR",
"destination": "DFW",
"status": "available",
"scheduled_departure_time_est": "12:00:00",
"scheduled_arrival_time_est": "15:30:00",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 20,
"economy": 0,
"business": 2
},
"prices": {
"basic_economy": 56,
"economy": 106,
"business": 355
}
},
{
"flight_number": "HAT067",
"origin": "DFW",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "23:00:00",
"scheduled_arrival_time_est": "03:00:00+1",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 11,
"economy": 4,
"business": 12
},
"prices": {
"basic_economy": 98,
"economy": 149,
"business": 412
}
}
],
[
{
"flight_number": "HAT213",
"origin": "EWR",
"destination": "DFW",
"status": "available",
"scheduled_departure_time_est": "12:00:00",
"scheduled_arrival_time_est": "15:30:00",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 20,
"economy": 0,
"business": 2
},
"prices": {
"basic_economy": 56,
"economy": 106,
"business": 355
}
},
{
"flight_number": "HAT099",
"origin": "DFW",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "16:00:00",
"scheduled_arrival_time_est": "20:00:00",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 14,
"economy": 20,
"business": 16
},
"prices": {
"basic_economy": 57,
"economy": 173,
"business": 386
}
}
],
[
{
"flight_number": "HAT213",
"origin": "EWR",
"destination": "DFW",
"status": "available",
"scheduled_departure_time_est": "12:00:00",
"scheduled_arrival_time_est": "15:30:00",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 20,
"economy": 0,
"business": 2
},
"prices": {
"basic_economy": 56,
"economy": 106,
"business": 355
}
},
{
"flight_number": "HAT234",
"origin": "DFW",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "19:00:00",
"scheduled_arrival_time_est": "23:00:00",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 5,
"economy": 5,
"business": 19
},
"prices": {
"basic_economy": 90,
"economy": 149,
"business": 474
}
}
],
[
{
"flight_number": "HAT231",
"origin": "EWR",
"destination": "DFW",
"status": "available",
"scheduled_departure_time_est": "16:00:00",
"scheduled_arrival_time_est": "19:30:00",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 11,
"economy": 12,
"business": 6
},
"prices": {
"basic_economy": 71,
"economy": 171,
"business": 204
}
},
{
"flight_number": "HAT067",
"origin": "DFW",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "23:00:00",
"scheduled_arrival_time_est": "03:00:00+1",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 11,
"economy": 4,
"business": 12
},
"prices": {
"basic_economy": 98,
"economy": 149,
"business": 412
}
}
]
]search_onestop_flight
{
"date": "2024-05-20",
"origin": "LGA",
"destination": "SEA"
}482 lines · click to expand
[
[
{
"flight_number": "HAT002",
"origin": "LGA",
"destination": "PHX",
"status": "available",
"scheduled_departure_time_est": "21:00:00",
"scheduled_arrival_time_est": "01:30:00+1",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 7,
"economy": 12,
"business": 15
},
"prices": {
"basic_economy": 53,
"economy": 175,
"business": 344
}
},
{
"flight_number": "HAT045",
"origin": "PHX",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "23:00:00",
"scheduled_arrival_time_est": "02:00:00+1",
"date": "2024-05-21",
"available_seats": {
"basic_economy": 16,
"economy": 9,
"business": 14
},
"prices": {
"basic_economy": 99,
"economy": 120,
"business": 409
}
}
],
[
{
"flight_number": "HAT002",
"origin": "LGA",
"destination": "PHX",
"status": "available",
"scheduled_departure_time_est": "21:00:00",
"scheduled_arrival_time_est": "01:30:00+1",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 7,
"economy": 12,
"business": 15
},
"prices": {
"basic_economy": 53,
"economy": 175,
"business": 344
}
},
{
"flight_number": "HAT156",
"origin": "PHX",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "07:00:00",
"scheduled_arrival_time_est": "10:00:00",
"date": "2024-05-21",
"available_seats": {
"basic_economy": 3,
"economy": 19,
"business": 13
},
"prices": {
"basic_economy": 89,
"economy": 112,
"business": 324
}
}
],
[
{
"flight_number": "HAT002",
"origin": "LGA",
"destination": "PHX",
"status": "available",
"scheduled_departure_time_est": "21:00:00",
"scheduled_arrival_time_est": "01:30:00+1",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 7,
"economy": 12,
"business": 15
},
"prices": {
"basic_economy": 53,
"economy": 175,
"business": 344
}
},
{
"flight_number": "HAT251",
"origin": "PHX",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "12:00:00",
"scheduled_arrival_time_est": "15:00:00",
"date": "2024-05-21",
"available_seats": {
"basic_economy": 12,
"economy": 8,
"business": 10
},
"prices": {
"basic_economy": 61,
"economy": 135,
"business": 270
}
}
],
[
{
"flight_number": "HAT114",
"origin": "LGA",
"destination": "PHX",
"status": "available",
"scheduled_departure_time_est": "21:00:00",
"scheduled_arrival_time_est": "01:30:00+1",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 16,
"economy": 2,
"business": 9
},
"prices": {
"basic_economy": 69,
"economy": 186,
"business": 284
}
},
{
"flight_number": "HAT045",
"origin": "PHX",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "23:00:00",
"scheduled_arrival_time_est": "02:00:00+1",
"date": "2024-05-21",
"available_seats": {
"basic_economy": 16,
"economy": 9,
"business": 14
},
"prices": {
"basic_economy": 99,
"economy": 120,
"business": 409
}
}
],
[
{
"flight_number": "HAT114",
"origin": "LGA",
"destination": "PHX",
"status": "available",
"scheduled_departure_time_est": "21:00:00",
"scheduled_arrival_time_est": "01:30:00+1",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 16,
"economy": 2,
"business": 9
},
"prices": {
"basic_economy": 69,
"economy": 186,
"business": 284
}
},
{
"flight_number": "HAT156",
"origin": "PHX",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "07:00:00",
"scheduled_arrival_time_est": "10:00:00",
"date": "2024-05-21",
"available_seats": {
"basic_economy": 3,
"economy": 19,
"business": 13
},
"prices": {
"basic_economy": 89,
"economy": 112,
"business": 324
}
}
],
[
{
"flight_number": "HAT114",
"origin": "LGA",
"destination": "PHX",
"status": "available",
"scheduled_departure_time_est": "21:00:00",
"scheduled_arrival_time_est": "01:30:00+1",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 16,
"economy": 2,
"business": 9
},
"prices": {
"basic_economy": 69,
"economy": 186,
"business": 284
}
},
{
"flight_number": "HAT251",
"origin": "PHX",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "12:00:00",
"scheduled_arrival_time_est": "15:00:00",
"date": "2024-05-21",
"available_seats": {
"basic_economy": 12,
"economy": 8,
"business": 10
},
"prices": {
"basic_economy": 61,
"economy": 135,
"business": 270
}
}
],
[
{
"flight_number": "HAT201",
"origin": "LGA",
"destination": "PHX",
"status": "available",
"scheduled_departure_time_est": "03:00:00",
"scheduled_arrival_time_est": "07:30:00",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 15,
"economy": 19,
"business": 14
},
"prices": {
"basic_economy": 100,
"economy": 118,
"business": 272
}
},
{
"flight_number": "HAT045",
"origin": "PHX",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "23:00:00",
"scheduled_arrival_time_est": "02:00:00+1",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 6,
"economy": 3,
"business": 1
},
"prices": {
"basic_economy": 78,
"economy": 196,
"business": 437
}
}
],
[
{
"flight_number": "HAT201",
"origin": "LGA",
"destination": "PHX",
"status": "available",
"scheduled_departure_time_est": "03:00:00",
"scheduled_arrival_time_est": "07:30:00",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 15,
"economy": 19,
"business": 14
},
"prices": {
"basic_economy": 100,
"economy": 118,
"business": 272
}
},
{
"flight_number": "HAT251",
"origin": "PHX",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "12:00:00",
"scheduled_arrival_time_est": "15:00:00",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 19,
"economy": 4,
"business": 9
},
"prices": {
"basic_economy": 68,
"economy": 181,
"business": 470
}
}
],
[
{
"flight_number": "HAT219",
"origin": "LGA",
"destination": "PHX",
"status": "available",
"scheduled_departure_time_est": "14:00:00",
"scheduled_arrival_time_est": "18:30:00",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 11,
"economy": 2,
"business": 18
},
"prices": {
"basic_economy": 85,
"economy": 188,
"business": 397
}
},
{
"flight_number": "HAT045",
"origin": "PHX",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "23:00:00",
"scheduled_arrival_time_est": "02:00:00+1",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 6,
"economy": 3,
"business": 1
},
"prices": {
"basic_economy": 78,
"economy": 196,
"business": 437
}
}
],
[
{
"flight_number": "HAT245",
"origin": "LGA",
"destination": "PHX",
"status": "available",
"scheduled_departure_time_est": "00:00:00",
"scheduled_arrival_time_est": "04:30:00",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 11,
"economy": 5,
"business": 1
},
"prices": {
"basic_economy": 93,
"economy": 132,
"business": 420
}
},
{
"flight_number": "HAT045",
"origin": "PHX",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "23:00:00",
"scheduled_arrival_time_est": "02:00:00+1",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 6,
"economy": 3,
"business": 1
},
"prices": {
"basic_economy": 78,
"economy": 196,
"business": 437
}
}
],
[
{
"flight_number": "HAT245",
"origin": "LGA",
"destination": "PHX",
"status": "available",
"scheduled_departure_time_est": "00:00:00",
"scheduled_arrival_time_est": "04:30:00",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 11,
"economy": 5,
"business": 1
},
"prices": {
"basic_economy": 93,
"economy": 132,
"business": 420
}
},
{
"flight_number": "HAT156",
"origin": "PHX",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "07:00:00",
"scheduled_arrival_time_est": "10:00:00",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 4,
"economy": 20,
"business": 3
},
"prices": {
"basic_economy": 80,
"economy": 122,
"business": 361
}
}
],
[
{
"flight_number": "HAT245",
"origin": "LGA",
"destination": "PHX",
"status": "available",
"scheduled_departure_time_est": "00:00:00",
"scheduled_arrival_time_est": "04:30:00",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 11,
"economy": 5,
"business": 1
},
"prices": {
"basic_economy": 93,
"economy": 132,
"business": 420
}
},
{
"flight_number": "HAT251",
"origin": "PHX",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "12:00:00",
"scheduled_arrival_time_est": "15:00:00",
"date": "2024-05-20",
"available_seats": {
"basic_economy": 19,
"economy": 4,
"business": 9
},
"prices": {
"basic_economy": 68,
"economy": 181,
"business": 470
}
}
]
]book_reservation37 lines · click to expand
{
"cabin": "economy",
"origin": "EWR",
"flights": [
{
"date": "2024-05-20",
"flight_number": "HAT213"
},
{
"date": "2024-05-20",
"flight_number": "HAT067"
}
],
"user_id": "mia_li_3668",
"insurance": "no",
"passengers": [
{
"dob": "1990-04-05",
"last_name": "Li",
"first_name": "Mia"
}
],
"destination": "SEA",
"flight_type": "one_way",
"total_baggages": 3,
"payment_methods": [
{
"amount": 250,
"payment_id": "certificate_7504069"
},
{
"amount": 5,
"payment_id": "credit_card_4421486"
}
],
"nonfree_baggages": 0
}result
Error: Not enough seats on flight HAT213
book_reservation37 lines · click to expand
{
"cabin": "economy",
"origin": "JFK",
"flights": [
{
"date": "2024-05-20",
"flight_number": "HAT136"
},
{
"date": "2024-05-20",
"flight_number": "HAT039"
}
],
"user_id": "mia_li_3668",
"insurance": "no",
"passengers": [
{
"dob": "1990-04-05",
"last_name": "Li",
"first_name": "Mia"
}
],
"destination": "SEA",
"flight_type": "one_way",
"total_baggages": 3,
"payment_methods": [
{
"amount": 250,
"payment_id": "certificate_7504069"
},
{
"amount": 11,
"payment_id": "credit_card_4421486"
}
],
"nonfree_baggages": 0
}result
Error: Payment amount does not add up, total price is 255, but paid 261
book_reservation37 lines · click to expand
{
"cabin": "economy",
"origin": "JFK",
"flights": [
{
"date": "2024-05-20",
"flight_number": "HAT136"
},
{
"date": "2024-05-20",
"flight_number": "HAT039"
}
],
"user_id": "mia_li_3668",
"insurance": "no",
"passengers": [
{
"dob": "1990-04-05",
"last_name": "Li",
"first_name": "Mia"
}
],
"destination": "SEA",
"flight_type": "one_way",
"total_baggages": 3,
"payment_methods": [
{
"amount": 250,
"payment_id": "certificate_7504069"
},
{
"amount": 5,
"payment_id": "credit_card_4421486"
}
],
"nonfree_baggages": 0
}46 lines · click to expand
{
"reservation_id": "HATHAT",
"user_id": "mia_li_3668",
"origin": "JFK",
"destination": "SEA",
"flight_type": "one_way",
"cabin": "economy",
"flights": [
{
"flight_number": "HAT136",
"origin": "JFK",
"destination": "ATL",
"date": "2024-05-20",
"price": 152
},
{
"flight_number": "HAT039",
"origin": "ATL",
"destination": "SEA",
"date": "2024-05-20",
"price": 103
}
],
"passengers": [
{
"first_name": "Mia",
"last_name": "Li",
"dob": "1990-04-05"
}
],
"payment_history": [
{
"payment_id": "certificate_7504069",
"amount": 250
},
{
"payment_id": "credit_card_4421486",
"amount": 5
}
],
"created_at": "2024-05-15T15:00:00",
"total_baggages": 3,
"nonfree_baggages": 0,
"insurance": "no",
"status": null
}get_reservation_details
{
"reservation_id": "HATHAT"
}46 lines · click to expand
{
"reservation_id": "HATHAT",
"user_id": "mia_li_3668",
"origin": "JFK",
"destination": "SEA",
"flight_type": "one_way",
"cabin": "economy",
"flights": [
{
"flight_number": "HAT136",
"origin": "JFK",
"destination": "ATL",
"date": "2024-05-20",
"price": 152
},
{
"flight_number": "HAT039",
"origin": "ATL",
"destination": "SEA",
"date": "2024-05-20",
"price": 103
}
],
"passengers": [
{
"first_name": "Mia",
"last_name": "Li",
"dob": "1990-04-05"
}
],
"payment_history": [
{
"payment_id": "certificate_7504069",
"amount": 250
},
{
"payment_id": "credit_card_4421486",
"amount": 5
}
],
"created_at": "2024-05-15T15:00:00",
"total_baggages": 3,
"nonfree_baggages": 0,
"insurance": "no",
"status": null
}