Model library · 2026-10-17-tau2-qwen35-9b · trial 2 · ended by user_stop
Airline task 23 pass
Tests instruction following over a long booking policy.
- 1
- reward
- 30
- messages
- —
- agent cost
- $0.0336
- customer cost
- 1197 s
- duration
Task
Complex transaction testing understanding of one-certificate-per-reservation policy. Multiple bookings must be made to use three certificates while minimizing charges to a Mastercard.
Reason for callYou want to know the sum of gift card balances and the sum of certificate balances. Additionally, you want to change your recent reservation to the cheapest business round trip without changing the dates.
Customer knowsYou are Mohamed Silva. Your user id is mohamed_silva_9265.
BehaviorFor your reservation, you don't care about direct flight or stop over. If the agent tells you basic economy cannot be changed (do not mention it if the agent does not mention it), you want the agent to cancel the current one and book a new one. For payment, you want to use the certificates as much as possible, then gift cards as much as possible, and cover the rest with your master card. But you want to know how much your master card will be charged. You do not need baggage or insurance. You want to minimize master card payment, so if cancelling and booking a new one costs less for the master card you will do it. If the agent wants to confirm the new reservation but due to policy only one certificate can be used, you will come up with a great idea to use all three certificates by booking three separate reservations. You will then use the 500 dollar certificate and all gift cards for you, certificate_9984806 for Raj, and the other certificate for Liam, and pay the rest with your master card. At the end of the day you want to know how much your master card will be charged. You are calm.
Full task definition
{
"id": "23",
"issues": null,
"ticket": null,
"user_tools": null,
"description": {
"notes": null,
"purpose": "Complex transaction testing understanding of one-certificate-per-reservation policy. Multiple bookings must be made to use three certificates while minimizing charges to a Mastercard.",
"relevant_policies": null
},
"initial_state": null,
"user_scenario": {
"persona": null,
"instructions": {
"domain": "airline",
"known_info": "You are Mohamed Silva. Your user id is mohamed_silva_9265.",
"unknown_info": null,
"reason_for_call": "You want to know the sum of gift card balances and the sum of certificate balances.\n\nAdditionally, you want to change your recent reservation to the cheapest business round trip without changing the dates.",
"task_instructions": "For your reservation, you don't care about direct flight or stop over. \n\nIf the agent tells you basic economy cannot be changed (do not mention it if the agent does not mention it), you want the agent to cancel the current one and book a new one.\n\nFor payment, you want to use the certificates as much as possible, then gift cards as much as possible, and cover the rest with your master card.\n\nBut you want to know how much your master card will be charged.\n\nYou do not need baggage or insurance.\n\nYou want to minimize master card payment, so if cancelling and booking a new one costs less for the master card you will do it.\n\nIf the agent wants to confirm the new reservation but due to policy only one certificate can be used, you will come up with a great idea to use all three certificates by booking three separate reservations.\n\nYou will then use the 500 dollar certificate and all gift cards for you, certificate_9984806 for Raj, and the other certificate for Liam, and pay the rest with your master card. \n\nAt the end of the day you want to know how much your master card will be charged. \n\nYou are calm."
}
},
"required_documents": null,
"evaluation_criteria": {
"actions": [
{
"info": null,
"name": "cancel_reservation",
"action_id": "23_0",
"arguments": {
"reservation_id": "K1NW8N"
},
"requestor": "assistant",
"compare_args": null
},
{
"info": null,
"name": "book_reservation",
"action_id": "23_1",
"arguments": {
"cabin": "business",
"origin": "JFK",
"flights": [
{
"date": "2024-05-26",
"flight_number": "HAT023"
},
{
"date": "2024-05-28",
"flight_number": "HAT204"
},
{
"date": "2024-05-28",
"flight_number": "HAT100"
}
],
"user_id": "mohamed_silva_9265",
"insurance": "no",
"passengers": [
{
"dob": "1960-11-26",
"last_name": "Silva",
"first_name": "Mohamed"
}
],
"destination": "SFO",
"flight_type": "round_trip",
"total_baggages": 0,
"payment_methods": [
{
"amount": 500,
"payment_id": "certificate_3765853"
},
{
"amount": 198,
"payment_id": "gift_card_8020792"
},
{
"amount": 129,
"payment_id": "gift_card_6136092"
},
{
"amount": 44,
"payment_id": "credit_card_2198526"
}
],
"nonfree_baggages": 0
},
"requestor": "assistant",
"compare_args": null
},
{
"info": null,
"name": "book_reservation",
"action_id": "23_2",
"arguments": {
"cabin": "business",
"origin": "JFK",
"flights": [
{
"date": "2024-05-26",
"flight_number": "HAT023"
},
{
"date": "2024-05-28",
"flight_number": "HAT204"
},
{
"date": "2024-05-28",
"flight_number": "HAT100"
}
],
"user_id": "mohamed_silva_9265",
"insurance": "no",
"passengers": [
{
"dob": "1986-09-12",
"last_name": "Sanchez",
"first_name": "Raj"
}
],
"destination": "SFO",
"flight_type": "round_trip",
"total_baggages": 0,
"payment_methods": [
{
"amount": 250,
"payment_id": "certificate_9984806"
},
{
"amount": 621,
"payment_id": "credit_card_2198526"
}
],
"nonfree_baggages": 0
},
"requestor": "assistant",
"compare_args": null
},
{
"info": null,
"name": "book_reservation",
"action_id": "23_3",
"arguments": {
"cabin": "business",
"origin": "JFK",
"flights": [
{
"date": "2024-05-26",
"flight_number": "HAT023"
},
{
"date": "2024-05-28",
"flight_number": "HAT204"
},
{
"date": "2024-05-28",
"flight_number": "HAT100"
}
],
"user_id": "mohamed_silva_9265",
"insurance": "no",
"passengers": [
{
"dob": "1980-03-27",
"last_name": "Wilson",
"first_name": "Liam"
}
],
"destination": "SFO",
"flight_type": "round_trip",
"total_baggages": 0,
"payment_methods": [
{
"amount": 250,
"payment_id": "certificate_2765295"
},
{
"amount": 621,
"payment_id": "credit_card_2198526"
}
],
"nonfree_baggages": 0
},
"requestor": "assistant",
"compare_args": null
}
],
"reward_basis": [
"DB",
"COMMUNICATE"
],
"nl_assertions": [
"Agent mentions that total sum on gift cards is $327.",
"Agent mentions that total sum on certificates is $1000.",
"Agent cancels reservation K1NW8N.",
"Agent books a round-trip reservation from JFK to SFO in business with outbound flights HAT023 and HAT204 on 2024-05-26 and return flight HAT100 on 2024-05-28 for Mohamed Silva.",
"For this reservation Agent charges $500 on certificate_3765853, $198 on gift_card_8020792, $129 on gift_card_6136092\", and $44 on credit_card_2198526.",
"Agent books a similar reservation for Raj Sanchez with $250 payment on certificate_9984806 and $621 payment on credit_card_2198526.",
"Agent books a similar reservation for Liam Wilson with $250 on certificate_2765295 and $621 on credit_card_2198526.",
"Agent communicates that Mastercard will be charged $1286."
],
"env_assertions": null,
"communicate_info": [
"327",
"1000",
"1286"
]
}
}Grading
4/4 expected actions matched · database matches
- ✓
cancel_reservation{"reservation_id":"K1NW8N"} - ✓
book_reservation{"cabin":"business","origin":"JFK","flights":[{"date":"2024-05-26","flight_number":"HAT023"},{"date":"2024-05-28","flight_number":"HAT204"},{"date":"2024-05-28","flight_number":"HAT100"}],"user_id":"mohamed_silva_9265","insurance":"no","passengers":[{"dob":"1960-11-26","last_name":"Silva","first_name":"Mohamed"}],"destination":"SFO","flight_type":"round_trip","total_baggages":0,"payment_methods":[{"amount":500,"payment_id":"certificate_3765853"},{"amount":198,"payment_id":"gift_card_8020792"},{"amount":129,"payment_id":"gift_card_6136092"},{"amount":44,"payment_id":"credit_card_2198526"}],"nonfree_baggages":0} - ✓
book_reservation{"cabin":"business","origin":"JFK","flights":[{"date":"2024-05-26","flight_number":"HAT023"},{"date":"2024-05-28","flight_number":"HAT204"},{"date":"2024-05-28","flight_number":"HAT100"}],"user_id":"mohamed_silva_9265","insurance":"no","passengers":[{"dob":"1986-09-12","last_name":"Sanchez","first_name":"Raj"}],"destination":"SFO","flight_type":"round_trip","total_baggages":0,"payment_methods":[{"amount":250,"payment_id":"certificate_9984806"},{"amount":621,"payment_id":"credit_card_2198526"}],"nonfree_baggages":0} - ✓
book_reservation{"cabin":"business","origin":"JFK","flights":[{"date":"2024-05-26","flight_number":"HAT023"},{"date":"2024-05-28","flight_number":"HAT204"},{"date":"2024-05-28","flight_number":"HAT100"}],"user_id":"mohamed_silva_9265","insurance":"no","passengers":[{"dob":"1980-03-27","last_name":"Wilson","first_name":"Liam"}],"destination":"SFO","flight_type":"round_trip","total_baggages":0,"payment_methods":[{"amount":250,"payment_id":"certificate_2765295"},{"amount":621,"payment_id":"credit_card_2198526"}],"nonfree_baggages":0}
Raw grading
{
"info": {
"nl": null,
"env": null,
"action": null,
"communicate": null
},
"reward": 1,
"db_check": {
"db_match": true,
"db_reward": 1
},
"reward_basis": [
"DB",
"COMMUNICATE"
],
"action_checks": [
{
"action": {
"info": null,
"name": "cancel_reservation",
"action_id": "23_0",
"arguments": {
"reservation_id": "K1NW8N"
},
"requestor": "assistant",
"compare_args": null
},
"tool_type": "write",
"action_match": true,
"action_reward": 1
},
{
"action": {
"info": null,
"name": "book_reservation",
"action_id": "23_1",
"arguments": {
"cabin": "business",
"origin": "JFK",
"flights": [
{
"date": "2024-05-26",
"flight_number": "HAT023"
},
{
"date": "2024-05-28",
"flight_number": "HAT204"
},
{
"date": "2024-05-28",
"flight_number": "HAT100"
}
],
"user_id": "mohamed_silva_9265",
"insurance": "no",
"passengers": [
{
"dob": "1960-11-26",
"last_name": "Silva",
"first_name": "Mohamed"
}
],
"destination": "SFO",
"flight_type": "round_trip",
"total_baggages": 0,
"payment_methods": [
{
"amount": 500,
"payment_id": "certificate_3765853"
},
{
"amount": 198,
"payment_id": "gift_card_8020792"
},
{
"amount": 129,
"payment_id": "gift_card_6136092"
},
{
"amount": 44,
"payment_id": "credit_card_2198526"
}
],
"nonfree_baggages": 0
},
"requestor": "assistant",
"compare_args": null
},
"tool_type": "write",
"action_match": true,
"action_reward": 1
},
{
"action": {
"info": null,
"name": "book_reservation",
"action_id": "23_2",
"arguments": {
"cabin": "business",
"origin": "JFK",
"flights": [
{
"date": "2024-05-26",
"flight_number": "HAT023"
},
{
"date": "2024-05-28",
"flight_number": "HAT204"
},
{
"date": "2024-05-28",
"flight_number": "HAT100"
}
],
"user_id": "mohamed_silva_9265",
"insurance": "no",
"passengers": [
{
"dob": "1986-09-12",
"last_name": "Sanchez",
"first_name": "Raj"
}
],
"destination": "SFO",
"flight_type": "round_trip",
"total_baggages": 0,
"payment_methods": [
{
"amount": 250,
"payment_id": "certificate_9984806"
},
{
"amount": 621,
"payment_id": "credit_card_2198526"
}
],
"nonfree_baggages": 0
},
"requestor": "assistant",
"compare_args": null
},
"tool_type": "write",
"action_match": true,
"action_reward": 1
},
{
"action": {
"info": null,
"name": "book_reservation",
"action_id": "23_3",
"arguments": {
"cabin": "business",
"origin": "JFK",
"flights": [
{
"date": "2024-05-26",
"flight_number": "HAT023"
},
{
"date": "2024-05-28",
"flight_number": "HAT204"
},
{
"date": "2024-05-28",
"flight_number": "HAT100"
}
],
"user_id": "mohamed_silva_9265",
"insurance": "no",
"passengers": [
{
"dob": "1980-03-27",
"last_name": "Wilson",
"first_name": "Liam"
}
],
"destination": "SFO",
"flight_type": "round_trip",
"total_baggages": 0,
"payment_methods": [
{
"amount": 250,
"payment_id": "certificate_2765295"
},
{
"amount": 621,
"payment_id": "credit_card_2198526"
}
],
"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": [
{
"met": true,
"info": "327",
"justification": "Information '327' communicated in the message:\n 'I can see your user details. Let me first answer your questions about the balances:\n\n**Gift Cards:**\n- gift_card_8020792: $198.00\n- gift_card_6136092: $129.00\n- **Total gift card balance: $327.00**\n\n**Travel Certificates:**\n- certificate_3765853: $500.00\n- certificate_9984806: $250.00\n- certificate_2765295: $250.00\n- **Total travel certificate balance: $1000.00**\n\nNow, regarding your reservation - I can see you have one reservation: **K1NW8N**. Let me get the details of this reservation to understand what we're working with.'"
},
{
"met": true,
"info": "1000",
"justification": "Information '1000' communicated in the message:\n 'I can see your user details. Let me first answer your questions about the balances:\n\n**Gift Cards:**\n- gift_card_8020792: $198.00\n- gift_card_6136092: $129.00\n- **Total gift card balance: $327.00**\n\n**Travel Certificates:**\n- certificate_3765853: $500.00\n- certificate_9984806: $250.00\n- certificate_2765295: $250.00\n- **Total travel certificate balance: $1000.00**\n\nNow, regarding your reservation - I can see you have one reservation: **K1NW8N**. Let me get the details of this reservation to understand what we're working with.'"
},
{
"met": true,
"info": "1286",
"justification": "Information '1286' communicated in the message:\n 'I understand you want to minimize the Mastercard charge. Let me analyze both options:\n\n**Option (a): Change the existing reservation (K1NW8N)**\n- Current reservation: basic_economy, 3 passengers, cost $567\n- New reservation: business class, same flights (HAT023, HAT204, HAT100), 3 passengers\n- Price difference: The API will calculate this, but based on my earlier estimate, it would be approximately $2046 (2613 - 567)\n- Payment: Only one payment method can be used for the flight change. If you use your Mastercard, it would be charged for the entire price difference (~$2046).\n\n**Option (b): Cancel current booking and book a new one**\n\nFirst, I need to check if the current reservation can be cancelled. Let me review the cancellation rules:\n\nThe current reservation K1NW8N:\n- Created at: 2024-05-14T16:03:16\n- Current time: 2024-05-15 15:00:00 EST\n- The booking was made within the last 24 hours (about 23 hours ago), so it qualifies for cancellation based on the \"booking made within last 24 hours\" rule.\n- The reservation is basic_economy, but since it was booked within 24 hours, it can be cancelled.\n- No flights have been flown yet (flights are on 2024-05-26 and 2024-05-28).\n\nSo the reservation can be cancelled.\n\nHowever, I need to know the reason for cancellation. The policy requires the agent to obtain the reason for cancellation (change of plan, airline cancelled flight, or other reasons).\n\nAlso, after cancellation, the user would need to book a new reservation. For the new booking, the user can use multiple payment methods (up to one certificate, one credit card, and up to three gift cards).\n\nLet me first check if the cancellation is allowed. The reservation was created on 2024-05-14T16:03:16, and the current time is 2024-05-15 15:00:00. That's about 22 hours and 57 minutes ago, which is within 24 hours. So the reservation can be cancelled.\n\nBut I need the reason for cancellation. Let me ask the user for the reason.\n\nActually, before proceeding with cancellation, I need to confirm the reason. The policy says \"The agent must also obtain the reason for cancellation (change of plan, airline cancelled flight, or other reasons)\".\n\nAlso, I need to check if any portion of the flight has already been flown. The current date is 2024-05-15, and the flights are on 2024-05-26 and 2024-05-28, so no flight has been flown. So cancellation should be possible.\n\nNow, for the new booking, I need to:\n1. Get the trip type (round_trip)\n2. Get the origin (JFK) and destination (SFO)\n3. Get the cabin (business)\n4. Get the flights (HAT023 on 2024-05-26, HAT204 on 2024-05-28, HAT100 on 2024-05-28)\n5. Get the passenger information (3 passengers: Mohamed Silva, Raj Sanchez, Liam Wilson)\n6. Get the payment methods (user wants to use certificates first, then gift cards, then Mastercard)\n7. Get the baggage information\n8. Get the travel insurance preference\n\nBut first, I need to know the reason for cancellation. Let me ask the user.\n\nAlso, I need to calculate the cost of the new booking.\n\nFor the new booking:\n- Flights: HAT023 (JFK-SFO on 2024-05-26), HAT204 (SFO-SEA on 2024-05-28), HAT100 (SEA-JFK on 2024-05-28)\n- Cabin: business\n- Passengers: 3\n- The price per passenger would be 364 + 248 + 259 = 871\n- Total cost for 3 passengers: 871 * 3 = 2613\n\nBut I also need to consider baggage and insurance.\n\nFor baggage:\n- The user is a regular member.\n- For business class, regular members get 2 free checked bags per passenger.\n- So for 3 passengers, the user gets 3 * 2 = 6 free checked bags.\n- The user can choose how many total bags they want. If they want more than 6, each extra bag is $50.\n\nFor insurance:\n- Travel insurance is $30 per passenger.\n- For 3 passengers, insurance would be 30 * 3 = $90.\n\nSo the total cost would be:\n- Flight cost: 2613\n- Baggage cost: depends on how many bags the user wants (if more than 6, extra bags cost $50 each)\n- Insurance cost: $90 (if user wants insurance)\n\nThe user hasn't specified baggage or insurance preferences for the new booking. I need to ask.\n\nBut first, let me confirm the reason for cancellation.\n\nAlso, I realize that for the cancellation, I need to know the reason. Let me ask the user.\n\nActually, let me first respond to the user with the analysis and ask for the reason for cancellation and other details.\n\n**Response to user:**\n\nI understand you want to minimize the Mastercard charge. Let me analyze both options:\n\n**Option (a): Change the existing reservation (K1NW8N)**\n- For flight changes, only one payment method can be used.\n- If you use your Mastercard, it would be charged for the price difference between the new business-class reservation and the current basic_economy reservation.\n- Estimated price difference: ~$2046 (based on current reservation cost of $567 and new business-class cost of ~$2613 for 3 passengers).\n- So Mastercard would be charged approximately $2046.\n\n**Option (b): Cancel current booking and book a new one**\n- First, I need to know the reason for cancellation (change of plan, airline cancelled flight, or other reasons).\n- The current reservation was booked within the last 24 hours (on 2024-05-14), so it can be cancelled.\n- After cancellation, you can book a new reservation with the following payment order: certificates first, then gift cards, then Mastercard.\n\nFor the new booking:\n- Flights: HAT023 (JFK-SFO on 2024-05-26), HAT204 (SFO-SEA on 2024-05-28), HAT100 (SEA-JFK on 2024-05-28)\n- Cabin: business\n- Passengers: 3 (Mohamed Silva, Raj Sanchez, Liam Wilson)\n- Flight cost: 871 per passenger × 3 = $2613\n- Baggage: As a regular member, you get 2 free checked bags per business class passenger, so 6 free bags total. Any additional bags would cost $50 each.\n- Insurance: $30 per passenger ($90 total for 3 passengers), if you want it.\n\nThe total cost would be $2613 + baggage cost (if any) + insurance cost (if any).\n\nWith your payment methods:\n- Certificates: $1000 total (certificate_3765853: $500, certificate_9984806: $250, certificate_2765295: $250)\n- Gift cards: $327 total (gift_card_8020792: $198, gift_card_6136092: $129)\n- Mastercard: credit_card_2198526\n\nIf the total cost is $2613 (without baggage or insurance), the payment would be:\n- Certificates: $1000\n- Gift cards: $327\n- Remaining: $2613 - $1000 - $327 = $1286 on Mastercard\n\nBut if you add baggage or insurance, the Mastercard charge would increase.\n\n**To proceed with Option (b), I need:**\n1. The reason for cancellation (change of plan, airline cancelled flight, or other reasons)\n2. Your preference for travel insurance (yes or no)\n3. Your preference for checked bags (how many total bags you want)\n\nAlso, please confirm which option you prefer: (a) change the existing reservation, or (b) cancel and rebook.\n\nOnce you provide this information, I can calculate the exact Mastercard charge for each option and proceed accordingly.'"
}
]
}Conversation
AgentCustomer
get_user_details
{
"user_id": "mohamed_silva_9265"
}72 lines · click to expand
{
"user_id": "mohamed_silva_9265",
"name": {
"first_name": "Mohamed",
"last_name": "Silva"
},
"address": {
"address1": "638 Elm Street",
"address2": "Suite 548",
"city": "Los Angeles",
"country": "USA",
"state": "CA",
"zip": "91365"
},
"email": "mohamed.silva9198@example.com",
"dob": "1960-11-26",
"payment_methods": {
"credit_card_5843230": {
"source": "credit_card",
"id": "credit_card_5843230",
"brand": "visa",
"last_four": "2395"
},
"gift_card_8020792": {
"source": "gift_card",
"id": "gift_card_8020792",
"amount": 198
},
"certificate_3765853": {
"source": "certificate",
"id": "certificate_3765853",
"amount": 500
},
"gift_card_6136092": {
"source": "gift_card",
"id": "gift_card_6136092",
"amount": 129
},
"certificate_9984806": {
"source": "certificate",
"id": "certificate_9984806",
"amount": 250
},
"credit_card_2198526": {
"source": "credit_card",
"id": "credit_card_2198526",
"brand": "mastercard",
"last_four": "9363"
},
"certificate_2765295": {
"source": "certificate",
"id": "certificate_2765295",
"amount": 250
}
},
"saved_passengers": [
{
"first_name": "Raj",
"last_name": "Sanchez",
"dob": "1986-09-12"
},
{
"first_name": "Liam",
"last_name": "Wilson",
"dob": "1980-03-27"
}
],
"membership": "regular",
"reservations": [
"K1NW8N"
]
}get_reservation_details
{
"reservation_id": "K1NW8N"
}59 lines · click to expand
{
"reservation_id": "K1NW8N",
"user_id": "mohamed_silva_9265",
"origin": "JFK",
"destination": "SFO",
"flight_type": "round_trip",
"cabin": "basic_economy",
"flights": [
{
"flight_number": "HAT023",
"origin": "JFK",
"destination": "SFO",
"date": "2024-05-26",
"price": 53
},
{
"flight_number": "HAT204",
"origin": "SFO",
"destination": "SEA",
"date": "2024-05-28",
"price": 71
},
{
"flight_number": "HAT021",
"origin": "SEA",
"destination": "JFK",
"date": "2024-05-28",
"price": 65
}
],
"passengers": [
{
"first_name": "Mohamed",
"last_name": "Silva",
"dob": "1960-11-26"
},
{
"first_name": "Raj",
"last_name": "Sanchez",
"dob": "1986-09-12"
},
{
"first_name": "Liam",
"last_name": "Wilson",
"dob": "1980-03-27"
}
],
"payment_history": [
{
"payment_id": "gift_card_6136092",
"amount": 567
}
],
"created_at": "2024-05-14T16:03:16",
"total_baggages": 0,
"nonfree_baggages": 0,
"insurance": "no",
"status": null
}search_direct_flight
{
"date": "2024-05-26",
"origin": "JFK",
"destination": "SFO"
}21 lines · click to expand
[
{
"flight_number": "HAT023",
"origin": "JFK",
"destination": "SFO",
"status": "available",
"scheduled_departure_time_est": "14:00:00",
"scheduled_arrival_time_est": "20:00:00",
"date": null,
"available_seats": {
"basic_economy": 8,
"economy": 14,
"business": 6
},
"prices": {
"basic_economy": 69,
"economy": 162,
"business": 364
}
}
]search_direct_flight
{
"date": "2024-05-28",
"origin": "SFO",
"destination": "JFK"
}result
[]
search_onestop_flight
{
"date": "2024-05-28",
"origin": "SFO",
"destination": "JFK"
}282 lines · click to expand
[
[
{
"flight_number": "HAT082",
"origin": "SFO",
"destination": "IAH",
"status": "available",
"scheduled_departure_time_est": "23:00:00",
"scheduled_arrival_time_est": "03:00:00+1",
"date": "2024-05-28",
"available_seats": {
"basic_economy": 5,
"economy": 5,
"business": 10
},
"prices": {
"basic_economy": 54,
"economy": 135,
"business": 404
}
},
{
"flight_number": "HAT025",
"origin": "IAH",
"destination": "JFK",
"status": "available",
"scheduled_departure_time_est": "04:00:00",
"scheduled_arrival_time_est": "07:30:00",
"date": "2024-05-29",
"available_seats": {
"basic_economy": 16,
"economy": 7,
"business": 14
},
"prices": {
"basic_economy": 62,
"economy": 163,
"business": 462
}
}
],
[
{
"flight_number": "HAT082",
"origin": "SFO",
"destination": "IAH",
"status": "available",
"scheduled_departure_time_est": "23:00:00",
"scheduled_arrival_time_est": "03:00:00+1",
"date": "2024-05-28",
"available_seats": {
"basic_economy": 5,
"economy": 5,
"business": 10
},
"prices": {
"basic_economy": 54,
"economy": 135,
"business": 404
}
},
{
"flight_number": "HAT068",
"origin": "IAH",
"destination": "JFK",
"status": "available",
"scheduled_departure_time_est": "11:00:00",
"scheduled_arrival_time_est": "14:30:00",
"date": "2024-05-29",
"available_seats": {
"basic_economy": 3,
"economy": 12,
"business": 19
},
"prices": {
"basic_economy": 81,
"economy": 199,
"business": 444
}
}
],
[
{
"flight_number": "HAT082",
"origin": "SFO",
"destination": "IAH",
"status": "available",
"scheduled_departure_time_est": "23:00:00",
"scheduled_arrival_time_est": "03:00:00+1",
"date": "2024-05-28",
"available_seats": {
"basic_economy": 5,
"economy": 5,
"business": 10
},
"prices": {
"basic_economy": 54,
"economy": 135,
"business": 404
}
},
{
"flight_number": "HAT085",
"origin": "IAH",
"destination": "JFK",
"status": "available",
"scheduled_departure_time_est": "06:00:00",
"scheduled_arrival_time_est": "09:30:00",
"date": "2024-05-29",
"available_seats": {
"basic_economy": 3,
"economy": 4,
"business": 8
},
"prices": {
"basic_economy": 74,
"economy": 163,
"business": 352
}
}
],
[
{
"flight_number": "HAT204",
"origin": "SFO",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "08:00:00",
"scheduled_arrival_time_est": "10:00:00",
"date": "2024-05-28",
"available_seats": {
"basic_economy": 4,
"economy": 1,
"business": 17
},
"prices": {
"basic_economy": 100,
"economy": 121,
"business": 248
}
},
{
"flight_number": "HAT021",
"origin": "SEA",
"destination": "JFK",
"status": "available",
"scheduled_departure_time_est": "19:00:00",
"scheduled_arrival_time_est": "01:00:00+1",
"date": "2024-05-28",
"available_seats": {
"basic_economy": 20,
"economy": 16,
"business": 16
},
"prices": {
"basic_economy": 88,
"economy": 108,
"business": 453
}
}
],
[
{
"flight_number": "HAT204",
"origin": "SFO",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "08:00:00",
"scheduled_arrival_time_est": "10:00:00",
"date": "2024-05-28",
"available_seats": {
"basic_economy": 4,
"economy": 1,
"business": 17
},
"prices": {
"basic_economy": 100,
"economy": 121,
"business": 248
}
},
{
"flight_number": "HAT089",
"origin": "SEA",
"destination": "JFK",
"status": "available",
"scheduled_departure_time_est": "10:00:00",
"scheduled_arrival_time_est": "16:00:00",
"date": "2024-05-28",
"available_seats": {
"basic_economy": 4,
"economy": 5,
"business": 7
},
"prices": {
"basic_economy": 69,
"economy": 147,
"business": 477
}
}
],
[
{
"flight_number": "HAT204",
"origin": "SFO",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "08:00:00",
"scheduled_arrival_time_est": "10:00:00",
"date": "2024-05-28",
"available_seats": {
"basic_economy": 4,
"economy": 1,
"business": 17
},
"prices": {
"basic_economy": 100,
"economy": 121,
"business": 248
}
},
{
"flight_number": "HAT100",
"origin": "SEA",
"destination": "JFK",
"status": "available",
"scheduled_departure_time_est": "13:00:00",
"scheduled_arrival_time_est": "19:00:00",
"date": "2024-05-28",
"available_seats": {
"basic_economy": 8,
"economy": 20,
"business": 9
},
"prices": {
"basic_economy": 94,
"economy": 108,
"business": 259
}
}
],
[
{
"flight_number": "HAT204",
"origin": "SFO",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "08:00:00",
"scheduled_arrival_time_est": "10:00:00",
"date": "2024-05-28",
"available_seats": {
"basic_economy": 4,
"economy": 1,
"business": 17
},
"prices": {
"basic_economy": 100,
"economy": 121,
"business": 248
}
},
{
"flight_number": "HAT276",
"origin": "SEA",
"destination": "JFK",
"status": "available",
"scheduled_departure_time_est": "18:00:00",
"scheduled_arrival_time_est": "00:00:00+1",
"date": "2024-05-28",
"available_seats": {
"basic_economy": 19,
"economy": 1,
"business": 8
},
"prices": {
"basic_economy": 53,
"economy": 197,
"business": 430
}
}
]
]search_onestop_flight
{
"date": "2024-05-26",
"origin": "JFK",
"destination": "SFO"
}282 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": "2024-05-26",
"available_seats": {
"basic_economy": 7,
"economy": 1,
"business": 9
},
"prices": {
"basic_economy": 92,
"economy": 133,
"business": 470
}
},
{
"flight_number": "HAT011",
"origin": "SEA",
"destination": "SFO",
"status": "available",
"scheduled_departure_time_est": "13:00:00",
"scheduled_arrival_time_est": "15:00:00",
"date": "2024-05-26",
"available_seats": {
"basic_economy": 20,
"economy": 17,
"business": 17
},
"prices": {
"basic_economy": 50,
"economy": 188,
"business": 368
}
}
],
[
{
"flight_number": "HAT069",
"origin": "JFK",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "06:00:00",
"scheduled_arrival_time_est": "12:00:00",
"date": "2024-05-26",
"available_seats": {
"basic_economy": 7,
"economy": 1,
"business": 9
},
"prices": {
"basic_economy": 92,
"economy": 133,
"business": 470
}
},
{
"flight_number": "HAT258",
"origin": "SEA",
"destination": "SFO",
"status": "available",
"scheduled_departure_time_est": "17:00:00",
"scheduled_arrival_time_est": "19:00:00",
"date": "2024-05-26",
"available_seats": {
"basic_economy": 15,
"economy": 9,
"business": 20
},
"prices": {
"basic_economy": 80,
"economy": 170,
"business": 363
}
}
],
[
{
"flight_number": "HAT069",
"origin": "JFK",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "06:00:00",
"scheduled_arrival_time_est": "12:00:00",
"date": "2024-05-26",
"available_seats": {
"basic_economy": 7,
"economy": 1,
"business": 9
},
"prices": {
"basic_economy": 92,
"economy": 133,
"business": 470
}
},
{
"flight_number": "HAT274",
"origin": "SEA",
"destination": "SFO",
"status": "available",
"scheduled_departure_time_est": "20:00:00",
"scheduled_arrival_time_est": "22:00:00",
"date": "2024-05-26",
"available_seats": {
"basic_economy": 8,
"economy": 18,
"business": 16
},
"prices": {
"basic_economy": 88,
"economy": 162,
"business": 310
}
}
],
[
{
"flight_number": "HAT083",
"origin": "JFK",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "01:00:00",
"scheduled_arrival_time_est": "07:00:00",
"date": "2024-05-26",
"available_seats": {
"basic_economy": 9,
"economy": 6,
"business": 16
},
"prices": {
"basic_economy": 51,
"economy": 146,
"business": 461
}
},
{
"flight_number": "HAT011",
"origin": "SEA",
"destination": "SFO",
"status": "available",
"scheduled_departure_time_est": "13:00:00",
"scheduled_arrival_time_est": "15:00:00",
"date": "2024-05-26",
"available_seats": {
"basic_economy": 20,
"economy": 17,
"business": 17
},
"prices": {
"basic_economy": 50,
"economy": 188,
"business": 368
}
}
],
[
{
"flight_number": "HAT083",
"origin": "JFK",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "01:00:00",
"scheduled_arrival_time_est": "07:00:00",
"date": "2024-05-26",
"available_seats": {
"basic_economy": 9,
"economy": 6,
"business": 16
},
"prices": {
"basic_economy": 51,
"economy": 146,
"business": 461
}
},
{
"flight_number": "HAT107",
"origin": "SEA",
"destination": "SFO",
"status": "available",
"scheduled_departure_time_est": "09:00:00",
"scheduled_arrival_time_est": "11:00:00",
"date": "2024-05-26",
"available_seats": {
"basic_economy": 18,
"economy": 15,
"business": 13
},
"prices": {
"basic_economy": 82,
"economy": 121,
"business": 446
}
}
],
[
{
"flight_number": "HAT083",
"origin": "JFK",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "01:00:00",
"scheduled_arrival_time_est": "07:00:00",
"date": "2024-05-26",
"available_seats": {
"basic_economy": 9,
"economy": 6,
"business": 16
},
"prices": {
"basic_economy": 51,
"economy": 146,
"business": 461
}
},
{
"flight_number": "HAT258",
"origin": "SEA",
"destination": "SFO",
"status": "available",
"scheduled_departure_time_est": "17:00:00",
"scheduled_arrival_time_est": "19:00:00",
"date": "2024-05-26",
"available_seats": {
"basic_economy": 15,
"economy": 9,
"business": 20
},
"prices": {
"basic_economy": 80,
"economy": 170,
"business": 363
}
}
],
[
{
"flight_number": "HAT083",
"origin": "JFK",
"destination": "SEA",
"status": "available",
"scheduled_departure_time_est": "01:00:00",
"scheduled_arrival_time_est": "07:00:00",
"date": "2024-05-26",
"available_seats": {
"basic_economy": 9,
"economy": 6,
"business": 16
},
"prices": {
"basic_economy": 51,
"economy": 146,
"business": 461
}
},
{
"flight_number": "HAT274",
"origin": "SEA",
"destination": "SFO",
"status": "available",
"scheduled_departure_time_est": "20:00:00",
"scheduled_arrival_time_est": "22:00:00",
"date": "2024-05-26",
"available_seats": {
"basic_economy": 8,
"economy": 18,
"business": 16
},
"prices": {
"basic_economy": 88,
"economy": 162,
"business": 310
}
}
]
]cancel_reservation
{
"reservation_id": "K1NW8N"
}63 lines · click to expand
{
"reservation_id": "K1NW8N",
"user_id": "mohamed_silva_9265",
"origin": "JFK",
"destination": "SFO",
"flight_type": "round_trip",
"cabin": "basic_economy",
"flights": [
{
"flight_number": "HAT023",
"origin": "JFK",
"destination": "SFO",
"date": "2024-05-26",
"price": 53
},
{
"flight_number": "HAT204",
"origin": "SFO",
"destination": "SEA",
"date": "2024-05-28",
"price": 71
},
{
"flight_number": "HAT021",
"origin": "SEA",
"destination": "JFK",
"date": "2024-05-28",
"price": 65
}
],
"passengers": [
{
"first_name": "Mohamed",
"last_name": "Silva",
"dob": "1960-11-26"
},
{
"first_name": "Raj",
"last_name": "Sanchez",
"dob": "1986-09-12"
},
{
"first_name": "Liam",
"last_name": "Wilson",
"dob": "1980-03-27"
}
],
"payment_history": [
{
"payment_id": "gift_card_6136092",
"amount": 567
},
{
"payment_id": "gift_card_6136092",
"amount": -567
}
],
"created_at": "2024-05-14T16:03:16",
"total_baggages": 0,
"nonfree_baggages": 0,
"insurance": "no",
"status": "cancelled"
}book_reservation49 lines · click to expand
{
"cabin": "business",
"origin": "JFK",
"flights": [
{
"date": "2024-05-26",
"flight_number": "HAT023"
},
{
"date": "2024-05-28",
"flight_number": "HAT204"
},
{
"date": "2024-05-28",
"flight_number": "HAT100"
}
],
"user_id": "mohamed_silva_9265",
"insurance": "no",
"passengers": [
{
"dob": "1960-11-26",
"last_name": "Silva",
"first_name": "Mohamed"
}
],
"destination": "SFO",
"flight_type": "round_trip",
"total_baggages": 0,
"payment_methods": [
{
"amount": 500,
"payment_id": "certificate_3765853"
},
{
"amount": 198,
"payment_id": "gift_card_8020792"
},
{
"amount": 129,
"payment_id": "gift_card_6136092"
},
{
"amount": 44,
"payment_id": "credit_card_2198526"
}
],
"nonfree_baggages": 0
}61 lines · click to expand
{
"reservation_id": "HATHAT",
"user_id": "mohamed_silva_9265",
"origin": "JFK",
"destination": "SFO",
"flight_type": "round_trip",
"cabin": "business",
"flights": [
{
"flight_number": "HAT023",
"origin": "JFK",
"destination": "SFO",
"date": "2024-05-26",
"price": 364
},
{
"flight_number": "HAT204",
"origin": "SFO",
"destination": "SEA",
"date": "2024-05-28",
"price": 248
},
{
"flight_number": "HAT100",
"origin": "SEA",
"destination": "JFK",
"date": "2024-05-28",
"price": 259
}
],
"passengers": [
{
"first_name": "Mohamed",
"last_name": "Silva",
"dob": "1960-11-26"
}
],
"payment_history": [
{
"payment_id": "certificate_3765853",
"amount": 500
},
{
"payment_id": "gift_card_8020792",
"amount": 198
},
{
"payment_id": "gift_card_6136092",
"amount": 129
},
{
"payment_id": "credit_card_2198526",
"amount": 44
}
],
"created_at": "2024-05-15T15:00:00",
"total_baggages": 0,
"nonfree_baggages": 0,
"insurance": "no",
"status": null
}book_reservation41 lines · click to expand
{
"cabin": "business",
"origin": "JFK",
"flights": [
{
"date": "2024-05-26",
"flight_number": "HAT023"
},
{
"date": "2024-05-28",
"flight_number": "HAT204"
},
{
"date": "2024-05-28",
"flight_number": "HAT100"
}
],
"user_id": "mohamed_silva_9265",
"insurance": "no",
"passengers": [
{
"dob": "1986-09-12",
"last_name": "Sanchez",
"first_name": "Raj"
}
],
"destination": "SFO",
"flight_type": "round_trip",
"total_baggages": 0,
"payment_methods": [
{
"amount": 250,
"payment_id": "certificate_9984806"
},
{
"amount": 621,
"payment_id": "credit_card_2198526"
}
],
"nonfree_baggages": 0
}53 lines · click to expand
{
"reservation_id": "HATHAU",
"user_id": "mohamed_silva_9265",
"origin": "JFK",
"destination": "SFO",
"flight_type": "round_trip",
"cabin": "business",
"flights": [
{
"flight_number": "HAT023",
"origin": "JFK",
"destination": "SFO",
"date": "2024-05-26",
"price": 364
},
{
"flight_number": "HAT204",
"origin": "SFO",
"destination": "SEA",
"date": "2024-05-28",
"price": 248
},
{
"flight_number": "HAT100",
"origin": "SEA",
"destination": "JFK",
"date": "2024-05-28",
"price": 259
}
],
"passengers": [
{
"first_name": "Raj",
"last_name": "Sanchez",
"dob": "1986-09-12"
}
],
"payment_history": [
{
"payment_id": "certificate_9984806",
"amount": 250
},
{
"payment_id": "credit_card_2198526",
"amount": 621
}
],
"created_at": "2024-05-15T15:00:00",
"total_baggages": 0,
"nonfree_baggages": 0,
"insurance": "no",
"status": null
}book_reservation41 lines · click to expand
{
"cabin": "business",
"origin": "JFK",
"flights": [
{
"date": "2024-05-26",
"flight_number": "HAT023"
},
{
"date": "2024-05-28",
"flight_number": "HAT204"
},
{
"date": "2024-05-28",
"flight_number": "HAT100"
}
],
"user_id": "mohamed_silva_9265",
"insurance": "no",
"passengers": [
{
"dob": "1980-03-27",
"last_name": "Wilson",
"first_name": "Liam"
}
],
"destination": "SFO",
"flight_type": "round_trip",
"total_baggages": 0,
"payment_methods": [
{
"amount": 250,
"payment_id": "certificate_2765295"
},
{
"amount": 621,
"payment_id": "credit_card_2198526"
}
],
"nonfree_baggages": 0
}53 lines · click to expand
{
"reservation_id": "HATHAV",
"user_id": "mohamed_silva_9265",
"origin": "JFK",
"destination": "SFO",
"flight_type": "round_trip",
"cabin": "business",
"flights": [
{
"flight_number": "HAT023",
"origin": "JFK",
"destination": "SFO",
"date": "2024-05-26",
"price": 364
},
{
"flight_number": "HAT204",
"origin": "SFO",
"destination": "SEA",
"date": "2024-05-28",
"price": 248
},
{
"flight_number": "HAT100",
"origin": "SEA",
"destination": "JFK",
"date": "2024-05-28",
"price": 259
}
],
"passengers": [
{
"first_name": "Liam",
"last_name": "Wilson",
"dob": "1980-03-27"
}
],
"payment_history": [
{
"payment_id": "certificate_2765295",
"amount": 250
},
{
"payment_id": "credit_card_2198526",
"amount": 621
}
],
"created_at": "2024-05-15T15:00:00",
"total_baggages": 0,
"nonfree_baggages": 0,
"insurance": "no",
"status": null
}