1. 机票
龙虾开放平台(通用版)
  • 欢迎语
  • 快速开始
    • 接入流程
    • 公共请求头
    • 注意事项
    • 速率限制与配额策略
    • 鉴权说明
    • 错误码
  • 机票
    • 机票接口说明
    • 机场搜索
      GET
    • 创建机票订单
      POST
    • 机票验价
      POST
    • 机票查询列表
      POST
  • 酒店
    • 酒店接口说明
    • 酒店查询列表
      POST
    • 酒店房型详情
      POST
    • 创建酒店订单
      POST
  • 数据模型
    • response.Response
    • schema.AirportSearchResponse
    • schema.FlightOrderCreateRequest
    • schema.FlightOrderCreateResponse
    • schema.FlightPricingRequest
    • schema.FlightPricingResponse
    • schema.FlightSearchResponse
    • schema.HotelOrderCreateRequest
    • schema.HotelOrderCreateResponse
    • schema.HotelRoomsRequest
    • schema.HotelRoomsResponse
    • schema.HotelSearchRequest
    • schema.HotelSearchResponse
    • schema.AirportItem
    • schema.ContactInfo
    • schema.InvoiceAddress
    • schema.PassengerInfo
    • schema.PassengerFareItem
    • schema.FlightItem
    • schema.GuestInfo
    • schema.RoomType
    • schema.HotelSearchFilters
    • schema.HotelItem
    • schema.PageInfo
    • schema.CabinFareItem
    • schema.RoomTypeProduct
  1. 机票

机票验价

POST
/open/v1/flight/pricing
支付前校验价格、舱位、退改签规则,返回可下单 offer_id(10分钟有效)用于后续下单。

请求参数

Authorization
Header 参数

Body 参数application/json必填

示例
{
    "passengers": [
        {
            "birthday": "1990-01-01",
            "card_valid_end_date": "2030-12-31",
            "id_number": "330106199001011234",
            "id_type": "ID_CARD",
            "name": "张三",
            "name_en": "ZHANG/SAN",
            "nationality_code": "CN",
            "phone": "13800138000",
            "sex": 1,
            "type": "adult"
        }
    ],
    "return_search_offer_id": "eyJhbGciOiJBMjU2R0NNIi...",
    "search_offer_id": "eyJhbGciOiJBMjU2R0NNIi..."
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://open.longxiachuxing.com/api/open/v1/flight/pricing' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data '{
    "passengers": [
        {
            "birthday": "1990-01-01",
            "card_valid_end_date": "2030-12-31",
            "id_number": "330106199001011234",
            "id_type": "ID_CARD",
            "name": "张三",
            "name_en": "ZHANG/SAN",
            "nationality_code": "CN",
            "phone": "13800138000",
            "sex": 1,
            "type": "adult"
        }
    ],
    "return_search_offer_id": "eyJhbGciOiJBMjU2R0NNIi...",
    "search_offer_id": "eyJhbGciOiJBMjU2R0NNIi..."
}'

返回响应

🟢200
application/json
OK
Bodyapplication/json

示例
{
    "code": 0,
    "data": {
        "baggage_rule": "20kg",
        "change_rule": "起飞前24小时改签免费",
        "combined_total_fare": 1222,
        "expired_at": "2026-05-28 14:30:00",
        "offer_id": "eyJhbGciOiJBMjU2R0NNIi...",
        "passenger_fares": [
            {
                "airport_tax": 50,
                "base_fare": 580,
                "fuel_tax": 0,
                "passenger_type": "adult",
                "service_fee": 20,
                "total": 650
            }
        ],
        "price_changed": false,
        "refund_rule": "起飞前2小时退票收取票面50%",
        "return_baggage_rule": "20kg",
        "return_change_rule": "起飞前24小时改签免费",
        "return_offer_id": "eyJhbGciOiJBMjU2R0NNIi...",
        "return_passenger_fares": [
            {
                "airport_tax": 50,
                "base_fare": 580,
                "fuel_tax": 0,
                "passenger_type": "adult",
                "service_fee": 20,
                "total": 650
            }
        ],
        "return_refund_rule": "起飞前2小时退票收取票面50%",
        "return_supplier_changed": false,
        "supplier_changed": false,
        "total_fare": 650
    },
    "message": "success",
    "request_id": "req_a1b2c3"
}
🟠400
修改于 2026-06-10 04:01:22
上一页
创建机票订单
下一页
机票查询列表
Built with