关于Amadeus自助REST API(flight-offers/flight-dates)price.total是否含税费的问询
Great question—let’s break this down clearly for you:
1. Does price.total include all taxes?
Your observation is spot-on: No, price.total does not cover all taxes in the Amadeus v1/shopping/flight-offers and flight-dates APIs.
The total field represents the sum of the base fare plus mandatory taxes only, while totalTaxes captures the full amount of all taxes (both mandatory and any applicable optional ones). That’s why adding these two values together gives you the final all-in price that matches what airlines display directly.
Using your example data:
"price": { "total": "259.91", "totalTaxes": "185.91" }
The actual total cost to the passenger would be 259.91 + 185.91 = 445.82—this is the full amount they’d pay.
2. Where to find detailed field documentation?
You can find the exact field definitions in the official Amadeus self-service API docs, right within the "Response Schema" section for each API:
- For flight-offers: Expand the
Priceobject in the response schema to see thattotalis defined as "Base fare plus mandatory taxes", andtotalTaxesis "Total amount of all taxes". - For flight-dates: The price structure follows the same logic, so the same field definitions apply.
These details are embedded directly in the API documentation pages you referenced—keep an eye out for the schema expanders, they’re easy to miss if you’re scrolling quickly!
内容的提问来源于stack exchange,提问作者Chris Han

