近也电影接入文档
    近也电影接入文档
    • 对接必读
    • 全国城市
      POST
    • 城市行政区
      POST
    • 正在热映+即将上映
      POST
    • 附近影院列表+搜索影院
      POST
    • 电影详情+排期影院+排期日期
      POST
    • 排期日期,坐标,城市,电影id查询影院
      POST
    • 影院详情+排期电影
      POST
    • 影院的电影场次数据
      POST
    • 选座接口
      POST
    • 锁座下单接口
      POST
    • 订单详情
      POST
    • 确认下单
      POST
    • 释放座位
      POST

      锁座下单接口

      开发中
      测试环境
      http://test-cn.your-api-server.com
      测试环境
      http://test-cn.your-api-server.com
      POST
      /custom/film/lock_seat_order

      请求参数

      Body 参数application/x-www-form-urlencoded
      cinema_id
      integer 
      影院id
      可选
      film_id
      integer 
      电影id
      可选
      room_id
      integer 
      影厅id
      可选
      seat_data
      string 
      可选
      座位数据,json字符串
      tel
      string 
      订票手机号
      可选

      示例代码

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST 'http://test-cn.your-api-server.com/custom/film/lock_seat_order' \
      --data-urlencode 'cinema_id=' \
      --data-urlencode 'film_id=' \
      --data-urlencode 'room_id=' \
      --data-urlencode 'seat_data=' \
      --data-urlencode 'tel='

      返回响应

      🟢200成功
      application/json
      Body
      data
      object 
      必需
      city
      string 
      影院所在城市
      必需
      maoyan_price
      string 
      必需
      网售价(原价/猫眼价)
      final_price
      string 
      必需
      优惠价格(用户付款价/结算价)
      rule_price
      string 
      快速通道价格
      必需
      show_end_time
      string 
      电影结束时间戳
      必需
      fast_if
      boolean 
      必需
      是否支持快速出票通道(仅特惠接口使用,快票接口请忽略)
      order_info
      object 
      订单信息
      必需
      示例
      {
          "code": 1,
          "msg": "锁座下单成功",
          "time": "1678884149",
          "data": {
              "agent_id": 100684,
              "app_id": "724",
              "maoyan_price": 43,
              "final_price": 39,
              "qmm_price": 42.5,
              "rule_price": 42.5,
              "room_id": "3D9B4C107CE0CFCC47A7F0CA900F4C37",
              "seat_id": ",0004#0005",
              "film_id": 151197,
              "filminfo": {
                  "film_id": 151197,
                  "name": "保你平安",
                  "pic": "https://gw.alicdn.com/i1/O1CN01xwz4YW1shXCywHqIb_!!6000000005798-0-alipicbeacon.jpg_480x480Q30s150.jpg"
              },
              "cinemaid": 26080,
              "cinema_code": "31173801",
              "line_id": 18,
              "roominfo": {
                  "show_id": "MzExNzM4MDEjbWFuZ28jMDAxMDEwNDIwMjIjbWFuZ28jMTY3ODk0NzAwMA==",
                  "showid": "3D9B4C107CE0CFCC47A7F0CA900F4C37",
                  "cinemaid": 55982,
                  "cinema_code": "31173801",
                  "hall_name": "1号激光沙发厅",
                  "film_id": 1380161,
                  "film_code": "00101042022",
                  "film_name": "保你平安",
                  "duration": "112",
                  "show_time": "2023-03-16 14:10:00",
                  "stop_sell_time": "2023-03-16 13:55:00",
                  "show_version_type": "国语 2D",
                  "language": "国语",
                  "plan_type": "",
                  "city_id": 1,
                  "price": 0,
                  "min_price": 0,
                  "net_price": 43,
                  "original_price": 43,
                  "settle_price": "39.00",
                  "rebate_price": 39,
                  "rebate_price_pro": 43,
                  "tpp_prices": "[]",
                  "area_price": "[{\"area\":\"0\",\"price\":{\"user_price\":\"39.00\",\"supplier_price\":\"37.00\",\"agent_rebate\":\"2.00\",\"price\":\"43.00\"}},{\"area\":\"2319\",\"price\":{\"user_price\":\"39.00\",\"supplier_price\":\"37.00\",\"agent_rebate\":\"2.00\",\"price\":\"43.00\"}}]",
                  "area_price_pro": "[{\"area\":\"0\",\"price\":{\"user_price\":43,\"supplier_price\":37,\"agent_rebate\":6,\"price\":\"43.00\"}},{\"area\":\"2319\",\"price\":{\"user_price\":43,\"supplier_price\":37,\"agent_rebate\":6,\"price\":\"43.00\"}}]",
                  "form_company": 1,
                  "created_at": null,
                  "updated_at": null
              },
              "seatdata": [
                  {
                      "ColumnNum": "6",
                      "RowNum": "4",
                      "SeatCode": "0004#0005",
                      "area_id": "2319",
                      "lovestatus": "0",
                      "price": "39.00",
                      "seatNo": "4排5座",
                      "type": "1"
                  }
              ],
              "cinemainfo": {
                  "cinemaid": 26080,
                  "cinema_code": "31173801",
                  "std_cinema_id": "31173801",
                  "cinema_name": "苏宁影城(上海青浦激光沙发店)",
                  "city_name": "上海",
                  "cinema_addr": "青浦区公园路458号凯特利广场4楼苏宁影城",
                  "area_name": "青浦区",
                  "tel": "021-59800166 ",
                  "cinema_service": "[]",
                  "longitude": "121.117104",
                  "latitude": "31.148776",
                  "city_id": 1,
                  "regionid": 183,
                  "line_id": 18,
                  "sync_update": 1,
                  "avg_statistics": "{\"haly_year_count\":{\"avgFinalPrice\":\"40.36\",\"avgSupplier\":\"31.06\",\"avgMaoyanPrice\":\"43.56\"},\"limit_hundred\":{\"avgFinalPrice\":\"39.71\",\"avgSupplier\":\"30.94\",\"avgMaoyanPrice\":\"42.38\"}}",
                  "created_at": null,
                  "updated_at": null
              },
              "tel": "15137306816",
              "city": "上海",
              "ticket_num": 1,
              "supplier_max_price": "37.00",
              "agent_rebate_total": "2.00",
              "auto_check_seat": "0",
              "show_version_type": "国语 2D",
              "show_end_time": 1678953720,
              "order_type": 1,
              "attach": "",
              "customer_id": false,
              "form_company": 1,
              "business_type": 1,
              "order_info": {
                  "order_id": "9658",
                  "order_number": "2023031520423195183",
                  "created_at": "2023-03-15 20:42:31"
              },
              "fast_if": false
          }
      }
      修改于 2023-03-15 12:48:31
      上一页
      选座接口
      下一页
      订单详情
      Built with