Model library · 2026-10-17-tau2-qwen35-9b · trial 3 · ended by user_stop
Airline task 14 pass
Tests instruction following over a long booking policy.
- 1
- reward
- 34
- messages
- —
- agent cost
- $0.0343
- customer cost
- 280 s
- duration
Task
Test the capacity of the agent to look for the cheapest flights with constraints on dates, cities and cabin. Test the capacity of agent to follow rule that max 1 certificate can be used for payment. Test capacity of agents to reason about money amounts. The user has multiple certificates, gift cards and 2 credit cards one file. for the payment, we expect agent to understand how to maximize use of gift card + 1 certificate to minimize amount put on the credit card. The total cost of the new flight will be $2613. The correct split is to use first both gift cards for $327, the $500 certificate, and put the remaining $1786 dollars on the master card.
Reason for callYou want to know how much you have on your gift cards and certificates. Then you want to change your upcoming reservation.
Customer knowsYour name is Mohamed Silva. Your user id is mohamed_silva_9265.
BehaviorYou want to know the sum of gift card balances and sum of certificate balances. If the agent gives you individual balances, you want the sums. Then you want to change your recent reservation. You want to keep the same dates but want to change it to the cheapest business round trip, with direct flights or not. 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 you will only book the new flight if the mastercard charges are less than $2000. You are calm.
Full task definition
{
"id": "14",
"issues": null,
"ticket": null,
"user_tools": null,
"description": {
"notes": null,
"purpose": "Test the capacity of the agent to look for the cheapest flights with constraints on dates, cities and cabin. \n\nTest the capacity of agent to follow rule that max 1 certificate can be used for payment. \n\n\nTest capacity of agents to reason about money amounts.\n\nThe user has multiple certificates, gift cards and 2 credit cards one file. for the payment, we expect agent to understand how to maximize use of gift card + 1 certificate to minimize amount put on the credit card.\n\nThe total cost of the new flight will be $2613. The correct split is to use first both gift cards for $327, the $500 certificate, and put the remaining $1786 dollars on the master card.",
"relevant_policies": null
},
"initial_state": null,
"user_scenario": {
"persona": null,
"instructions": {
"domain": "airline",
"known_info": "Your name is Mohamed Silva.\n\nYour user id is mohamed_silva_9265.",
"unknown_info": null,
"reason_for_call": "You want to know how much you have on your gift cards and certificates. Then you want to change your upcoming reservation.",
"task_instructions": "You want to know the sum of gift card balances and sum of certificate balances.\n\nIf the agent gives you individual balances, you want the sums.\n\nThen you want to change your recent reservation. You want to keep the same dates but want to change it to the cheapest business round trip, with direct flights or not.\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 you will only book the new flight if the mastercard charges are less than $2000.\n\nYou are calm."
}
},
"required_documents": null,
"evaluation_criteria": {
"actions": [
{
"info": null,
"name": "cancel_reservation",
"action_id": "14_0",
"arguments": {
"reservation_id": "K1NW8N"
},
"requestor": "assistant",
"compare_args": null
},
{
"info": null,
"name": "book_reservation",
"action_id": "14_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"
},
{
"dob": "1986-09-12",
"last_name": "Sanchez",
"first_name": "Raj"
},
{
"dob": "1980-03-27",
"last_name": "Wilson",
"first_name": "Liam"
}
],
"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": 1786,
"payment_id": "credit_card_2198526"
}
],
"nonfree_baggages": 0
},
"requestor": "assistant",
"compare_args": null
}
],
"reward_basis": [
"DB",
"COMMUNICATE"
],
"nl_assertions": [
"Agent communicates that total gift card balance is $327.",
"Agent communicates that total certificate balance if $1000.",
"Agent should cancel reservation K1NW8N.",
"Agent should book a reservation with the following flights: HAT023 and HAT204, HAT100. No insurance. No baggage. Departure on 2024-05-26, return on 2024-05-28.",
"Agent communicated that the $1786 will be charged to the mastercard."
],
"env_assertions": null,
"communicate_info": [
"327",
"1000",
"1786"
]
}
}Grading
2/2 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"},{"dob":"1986-09-12","last_name":"Sanchez","first_name":"Raj"},{"dob":"1980-03-27","last_name":"Wilson","first_name":"Liam"}],"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":1786,"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": "14_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": "14_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"
},
{
"dob": "1986-09-12",
"last_name": "Sanchez",
"first_name": "Raj"
},
{
"dob": "1980-03-27",
"last_name": "Wilson",
"first_name": "Liam"
}
],
"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": 1786,
"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 'Here's the summary of your payment methods:\n\n**Gift Cards Total:** $327.00\n- gift_card_8020792: $198.00\n- gift_card_6136092: $129.00\n\n**Travel Certificates Total:** $1,000.00\n- certificate_3765853: $500.00\n- certificate_9984806: $250.00\n- certificate_2765295: $250.00\n\nYou also have two credit cards in your profile:\n- credit_card_5843230 (Visa ending in 2395)\n- credit_card_2198526 (Mastercard ending in 9363)\n\nIs there anything else I can help you with regarding your payment methods or reservations?'"
},
{
"met": true,
"info": "1000",
"justification": "Information '1000' communicated in the message:\n 'Here's the summary of your payment methods:\n\n**Gift Cards Total:** $327.00\n- gift_card_8020792: $198.00\n- gift_card_6136092: $129.00\n\n**Travel Certificates Total:** $1,000.00\n- certificate_3765853: $500.00\n- certificate_9984806: $250.00\n- certificate_2765295: $250.00\n\nYou also have two credit cards in your profile:\n- credit_card_5843230 (Visa ending in 2395)\n- credit_card_2198526 (Mastercard ending in 9363)\n\nIs there anything else I can help you with regarding your payment methods or reservations?'"
},
{
"met": true,
"info": "1786",
"justification": "Information '1786' communicated in the message:\n 'I found several one-stop flight options from SFO to JFK on 2024-05-28. Let me calculate the business class prices for each option:\n\n1. HAT082 (SFO-IAH) + HAT025 (IAH-JFK): 404 + 462 = 866\n2. HAT082 (SFO-IAH) + HAT068 (IAH-JFK): 404 + 444 = 848\n3. HAT082 (SFO-IAH) + HAT085 (IAH-JFK): 404 + 352 = 756\n4. HAT204 (SFO-SEA) + HAT021 (SEA-JFK): 248 + 453 = 701\n5. HAT204 (SFO-SEA) + HAT089 (SEA-JFK): 248 + 477 = 725\n6. HAT204 (SFO-SEA) + HAT100 (SEA-JFK): 248 + 259 = 507\n7. HAT204 (SFO-SEA) + HAT276 (SEA-JFK): 248 + 430 = 678\n\nThe cheapest one-stop option for business class on 2024-05-28 is:\n- HAT204 (SFO-SEA) + HAT100 (SEA-JFK): 248 + 259 = 507\n\nNow, let me summarize the options:\n\n**Outbound (JFK to SFO on 2024-05-26):**\n- Direct flight HAT023: 364 (cheapest)\n- Cheapest one-stop: 771 (HAT083 + HAT274)\n\n**Return (SFO to JFK on 2024-05-28):**\n- No direct flights\n- Cheapest one-stop: 507 (HAT204 + HAT100)\n\nSo the cheapest round-trip business-class option would be:\n- Outbound: HAT023 (direct) at 364\n- Return: HAT204 + HAT100 (one-stop) at 507\n\nTotal per passenger: 364 + 507 = 871\n\nFor 3 passengers: 871 * 3 = 2613\n\nWait, but I need to check if this is a valid round-trip. The outbound is JFK-SFO (direct), and the return is SFO-SEA-JFK (one-stop). This should be fine for a round-trip reservation.\n\nBut let me double-check the policy. The policy says \"Cabin class must be the same across all the flights in a reservation.\" So all flights in the reservation must be in business class, which they are.\n\nNow, let me calculate the total cost:\n- Outbound flight (HAT023): 364 per passenger\n- Return flights (HAT204 + HAT100): 248 + 259 = 507 per passenger\n- Total per passenger: 364 + 507 = 871\n- For 3 passengers: 871 * 3 = 2613\n\nBut wait, I need to check if the return flight dates are correct. The return flights are on 2024-05-28, which matches the requested return date.\n\nNow, let me calculate the payment breakdown:\n- Total cost: 2613\n- Travel certificates: 1000 (certificate_3765853: 500, certificate_9984806: 250, certificate_2765295: 250)\n- Gift cards: 327 (gift_card_8020792: 198, gift_card_6136092: 129)\n- Remaining: 2613 - 1000 - 327 = 1286\n\nSo the Mastercard would be charged 1286.\n\nBut wait, I need to check the payment rules:\n- \"Each reservation can use at most one travel certificate, at most one credit card, and at most three gift cards.\"\n\nSo I can use:\n- One travel certificate (but I have three, and I can only use one)\n- One credit card (the Mastercard)\n- Up to three gift cards\n\nWait, the policy says \"at most one travel certificate\", so I can only use one certificate, not all three. Let me re-read:\n\n\"Each reservation can use at most one travel certificate, at most one credit card, and at most three gift cards.\"\n\nSo for payment, I can use:\n- One travel certificate (up to its balance)\n- One credit card (for the remaining amount)\n- Up to three gift cards (for the remaining amount)\n\nBut the user said:\n\"1) Use the travel certificates as much as possible\n2) then use the gift cards as much as possible\n3) and put the rest on my Mastercard ending in 9363\"\n\nBut the policy says I can only use one travel certificate. So I need to choose one certificate to use. The user has three certificates:\n- certificate_3765853: 500\n- certificate_9984806: 250\n- certificate_2765295: 250\n\nThe user said \"use the travel certificates as much as possible\", but since I can only use one, I should use the one with the highest balance, which is certificate_3765853 with 500.\n\nWait, but the policy says \"at most one travel certificate\", so I can only use one. Let me assume the user wants to use the certificate with the highest balance first.\n\nActually, let me re-read the user's request: \"use the travel certificates as much as possible\". Since I can only use one certificate, I should use the one with the highest balance, which is 500.\n\nSo the payment breakdown would be:\n- Total cost: 2613\n- One travel certificate (certificate_3765853): 500\n- Gift cards: I can use up to three gift cards. The user has two gift cards:\n - gift_card_8020792: 198\n - gift_card_6136092: 129\n - Total: 327\n- Remaining: 2613 - 500 - 327 = 1786\n\nSo the Mastercard would be charged 1786.\n\nBut wait, the user said \"use the travel certificates as much as possible\". If I can only use one certificate, then I use 500 from the certificate. Then I use the gift cards (327), and the rest (1786) goes to the Mastercard.\n\nBut let me double-check the policy: \"Each reservation can use at most one travel certificate, at most one credit card, and at most three gift cards.\"\n\nSo the payment methods would be:\n- One travel certificate: certificate_3765853 (500)\n- Up to three gift cards: gift_card_8020792 (198) and gift_card_6136092 (129) - that's two gift cards, which is within the limit of three.\n- One credit card: credit_card_2198526 (Mastercard)\n\nTotal payment: 500 + 198 + 129 + 1786 = 2613\n\nSo the Mastercard charge would be 1786.\n\nBut wait, I need to confirm this with the user before proceeding. The user said they only want to proceed if the Mastercard charge is less than $2,000. 1786 is less than 2000, so it should be fine.\n\nBut let me also check if there are any other cheaper options. I assumed the outbound is the direct flight HAT023 at 364, and the return is the cheapest one-stop at 507. But maybe there's a cheaper combination.\n\nLet me re-check the outbound options:\n- Direct: 364\n- One-stop options: 771, 824, 829, 833, 838, 907\n\nThe cheapest outbound is 364 (direct).\n\nFor the return:\n- One-stop options: 507, 678, 701, 725, 756, 848, 866\n\nThe cheapest return is 507 (HAT204 + HAT100).\n\nSo the total per passenger is 364 + 507 = 871, and for 3 passengers it's 2613.\n\nBut wait, I need to make sure that the flights I selected are valid for a round-trip reservation. The outbound is JFK-SFO (HAT023), and the return is SFO-SEA-JFK (HAT204 + HAT100). This should be fine.\n\nNow, let me also check if there are any other considerations. The user said \"no baggage or insurance\", so:\n- total_baggages: 0\n- nonfree_baggages: 0\n- insurance: \"no\"\n\nAlso, the passengers are:\n- Mohamed Silva, DOB: 1960-11-26\n- Raj Sanchez, DOB: 1986-09-12\n- Liam Wilson, DOB: 1980-03-27\n\nNow, before I book, I need to confirm the details with the user. Let me summarize:\n\n**Reservation Details:**\n- Origin: JFK\n- Destination: SFO\n- Flight type: round_trip\n- Cabin: business\n- Flights:\n - Outbound: HAT023, JFK to SFO, 2024-05-26\n - Return: HAT204, SFO to SEA, 2024-05-28; HAT100, SEA to JFK, 2024-05-28\n- Passengers: 3 (Mohamed Silva, Raj Sanchez, Liam Wilson)\n- Total cost: 2613\n- Payment:\n - Travel certificate (certificate_3765853): 500\n - Gift cards (gift_card_8020792: 198, gift_card_6136092: 129): 327\n - Mastercard (credit_card_2198526): 1786\n- Total baggage: 0\n- Non-free baggage: 0\n- Insurance: no\n\nWait, but I need to check the baggage allowance. The user is a regular member, and for business class, regular members get 2 free checked bags per passenger. But the user said \"no baggage\", so total_baggages should be 0.\n\nActually, let me re-read the policy:\n- \"If the booking user is a regular member:\n - 0 free checked bag for each basic economy passenger\n - 1 free checked bag for each economy passenger\n - 2 free checked bags for each business passenger\"\n\nSo for business class, regular members get 2 free checked bags per passenger. But the user said \"no baggage\", so they don't want any checked bags. So total_baggages = 0, nonfree_baggages = 0.\n\nNow, let me confirm the payment breakdown:\n- Total cost: 2613\n- Certificate: 500\n- Gift cards: 327\n- Mastercard: 2613 - 500 - 327 = 1786\n\nThe Mastercard charge is 1786, which is less than 2000, so the user should be okay with this.\n\nBut wait, I need to make sure I'm using the correct payment methods. The user has:\n- certificate_3765853: 500\n- certificate_9984806: 250\n- certificate_2765295: 250\n- gift_card_8020792: 198\n- gift_card_6136092: 129\n- credit_card_5843230 (Visa)\n- credit_card_2198526 (Mastercard)\n\nThe user said to use the Mastercard ending in 9363, which is credit_card_2198526.\n\nNow, before I book, I need to confirm the details with the user. Let me present the summary and ask for confirmation.\n\nActually, I realize I need to double-check the flight prices. The prices I saw were for business class, but I need to make sure I'm using the correct prices.\n\nFor the outbound flight HAT023 on 2024-05-26:\n- Business class price: 364\n\nFor the return flights:\n- HAT204 on 2024-05-28: business class price 248\n- HAT100 on 2024-05-28: business class price 259\n\nTotal per passenger: 364 + 248 + 259 = 871\n\nFor 3 passengers: 871 * 3 = 2613\n\nThis seems correct.\n\nNow, let me also check if there are any other cheaper options. For example, maybe there's a direct flight for the return that I missed. But I already searched for direct flights from SFO to JFK on 2024-05-28, and there were none.\n\nSo the cheapest option is indeed:\n- Outbound: HAT023 (direct) at 364\n- Return: HAT204 + HAT100 (one-stop) at 507\n\nTotal per passenger: 871\nTotal for 3 passengers: 2613\n\nPayment breakdown:\n- Certificate: 500\n- Gift cards: 327\n- Mastercard: 1786\n\nNow, I need to confirm this with the user before booking.\n\nBut wait, I also need to check if the user wants to use a specific certificate. The user said \"use the travel certificates as much as possible\", but since I can only use one, I should use the one with the highest balance (500).\n\nLet me present the summary to the user and ask for confirmation.\n\nActually, I realize I should also check if the flights I selected are available. The search results showed they are available, so that should be fine.\n\nLet me present the summary to the user:\n\n**Summary of the new reservation:**\n- Origin: JFK\n- Destination: SFO\n- Flight type: round_trip\n- Cabin: business\n- Flights:\n - Outbound: HAT023, JFK to SFO, 2024-05-26, business class ($364 per passenger)\n - Return: HAT204, SFO to SEA, 2024-05-28, business class ($248 per passenger)\n - Return: HAT100, SEA to JFK, 2024-05-28, business class ($259 per passenger)\n- Passengers: 3 (Mohamed Silva, Raj Sanchez, Liam Wilson)\n- Total cost: $2613\n- Payment:\n - Travel certificate (certificate_3765853): $500\n - Gift cards (gift_card_8020792: $198, gift_card_6136092: $129): $327\n - Mastercard (credit_card_2198526): $1786\n- Total baggage: 0\n- Non-free baggage: 0\n- Insurance: no\n\nThe Mastercard charge would be $1786, which is less than $2000.\n\nPlease confirm if you want to proceed with this booking (yes to confirm).'"
}
]
}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"
]
}calculate
{
"expression": "198.0 + 129.0"
}result
327.0
calculate
{
"expression": "500.0 + 250.0 + 250.0"
}result
1000.0
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
}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"
}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_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
}
}
]
]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
}
}
]
]book_reservation59 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"
},
{
"dob": "1986-09-12",
"last_name": "Sanchez",
"first_name": "Raj"
},
{
"dob": "1980-03-27",
"last_name": "Wilson",
"first_name": "Liam"
}
],
"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": 1786,
"payment_id": "credit_card_2198526"
}
],
"nonfree_baggages": 0
}71 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"
},
{
"first_name": "Raj",
"last_name": "Sanchez",
"dob": "1986-09-12"
},
{
"first_name": "Liam",
"last_name": "Wilson",
"dob": "1980-03-27"
}
],
"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": 1786
}
],
"created_at": "2024-05-15T15:00:00",
"total_baggages": 0,
"nonfree_baggages": 0,
"insurance": "no",
"status": null
}