跳转到主要内容
POST
Search Flexible Fares

请求规范

  • 方法与路径: POST /apis/v1/ignav-flights/search-flexible-fares
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/ignav-flights/search-flexible-fares
  • Runtime 事实版本: 409a5cc699368723aa03cc1aa98096f9361fe3f453fa90923b5d89360b65123a
完整 OpenAPI 定义 有效请求与价格声明(包括认证和引用的 schema):

费用与请求规则

按用量计费;默认请求预估费用:$0.0023 USD(不是固定价格)。 声明的单位费率:每 provider_credit $0.000001 USD。 最终费用以账户适用价格及实际结算为准。 公开参考值不是你的账户报价或最终扣费。对于支持 X-AISA-Cost-Mode: quote 的接口,执行前请针对完整请求获取免费报价;执行后通过响应费用元数据和 Usage Logs 核对结算费用。1 USD 等于 1,000,000 个整数 micro-USD。
  • 默认请求参考估价(USD): 0.0023
  • 声明的单位费率(USD): 1e-06
  • 计费单位: provider_credit
  • 计费依据: response_units
  • 公开参考倍率: 1.0
  • 声明的最大计数或单位数: 10000000
  • 结算证据来源: response_body

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
legs
object[]
必填

One or two ordered trip legs in chronological date order. Use airport or supported metro IATA codes. Itinerary segments identify concrete airports.

Required array length: 1 - 2 elements
market
enum<string>
必填

Provider-supported ISO 3166-1 alpha-2 market controlling availability and currency.

可用选项:
US
adults
integer
默认值:1

Number of adult passengers; total passengers across all categories cannot exceed 9.

必填范围: x >= 1
children
integer
默认值:0

Number of child passengers.

必填范围: x >= 0
max_price
integer

Strict maximum total price in the selected market's currency.

必填范围: x >= 0
cabin_class
enum<string>
默认值:economy

Requested cabin class.

可用选项:
economy,
premium_economy,
business,
first
infants_on_lap
integer
默认值:0

Number of lap infants; cannot exceed the adult count.

必填范围: x >= 0
infants_in_seat
integer
默认值:0

Number of infants occupying seats.

必填范围: x >= 0
airlines_exclude
string[]

Non-empty list of 2-character uppercase airline codes to exclude; cannot overlap airlines_include.

Minimum array length: 1
示例:
airlines_include
string[]

Non-empty list of 2-character uppercase airline codes to include exclusively; cannot overlap airlines_exclude.

Minimum array length: 1
示例:
min_checked_bags
integer

Minimum number of included checked bags.

必填范围: x >= 0
min_carry_on_bags
integer

Minimum number of included carry-on bags.

必填范围: x >= 0
allow_self_transfer
boolean
默认值:true

Allow identifiable self-transfers. False is a best-effort filter, not a guarantee of a protected through-ticket.

响应

Tool result data

legs
object[]
必填
itineraries
object[]
必填
cache_hit
boolean | null
observed_at
string | null