文档中心 > API类目 > 大麦票务云分销API

alibaba.damai.maitix.seat.info.query (分销商查询座位信息)

分销查询座位文案信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
seat_query_param SeatQueryParam 必须 入参
  • stands
  • StandQueryParam []
  • 可选
  • 有条件必传-看台信息,如果传了下面的seat_info信息可以不传这个,否则必传
  • └ seat_ids
  • Number []
  • 可选
  • [1,2]
  • 座位ID
  • └ stand_id
  • Number
  • 可选
  • 123
  • 看台ID
  • └ perform_id
  • Number
  • 可选
  • 55
  • 必传-场次ID
  • └ project_id
  • Number
  • 可选
  • 888
  • 必传-项目ID
  • └ token
  • String
  • 可选
  • 6b9e4af247642cd8d72cbc
  • 必传--token
  • └ request_id
  • String
  • 可选
  • 6b9e4af2476423cddfb2d2c
  • 必传-会话ID,必须和请求token接口传入的request_id一致.不是top接口返回的requestId
  • └ city_id
  • Number
  • 可选
  • 15543
  • 有条件必传-城市ID,如果传了下面的seat_info信息可以不传这个
  • └ seat_info
  • String
  • 可选
  • {"cityId":"100010","buyParamList":[{"count":1,"priceId":224133032},{"count":1,"priceId":224133035}],"seatIds":"3398181_613014265_3017024,3398181_613014266_3017024,3398181_613014246"}
  • 可选,选座信息,只需要把回调的seatInfoV2对应的json数据urlDecode后直接赋值给这个字段就行,

响应参数

名称 类型 示例值 描述
result OpenResult { "success": true, "errorCode": null, "model": { "seatStatus": 2, "combineSeatDTOS": [ { "ordinaryTickets": [ { "rowNo": "1", "price": "200", "thirdCombineJointTicketId": 2418273, "standId": 2998067, "seatId": 506745634, "floorName": "一层", "priceId": 222285040, "standName": "1", "seatNo": "9" }, { "rowNo": "1", "price": "200", "thirdCombineJointTicketId": 2418273, "standId": 2998067, "seatId": 506745633, "floorName": "一层", "priceId": 222285040, "standName": "1", "seatNo": "8" } ], "combineTicketPrice": "300", "thirdCombineJointTicketId": 2418273, "combineTicketId": 222569297, "thirdCombineTicketId": 222569297, "combineTicketName": "两张3元" } ], "ordinarySeatDTOS": [ { "rowNo": "1", "price": "200", "thirdCombineJointTicketId": null, "standId": 2998067, "seatId": 506745635, "floorName": "一层", "priceId": 222285040, "standName": "1", "seatNo": "10" } ], }, "errorMsg": null } 返回信息
  • model
  • SeatQueryDto
  • 参考result
  • model
  • ordinary_seat_d_t_o_s
  • OrdinarySeatDto []
  • "ordinarySeatDTOS": [ { "rowNo": "1", "price": "200", "thirdCombineJointTicketId": null, "standId": 2998067, "seatId": 506745635, "floorName": "一层", "priceId": 222285040, "standName": "1", "seatNo": "10" } ]
  • 单票座位信息
  • └ seat_no
  • String
  • 5
  • 座位号
  • └ row_no
  • String
  • 5
  • 排号
  • └ floor_name
  • String
  • 一层
  • 楼层名称
  • └ stand_name
  • String
  • 1
  • 看台名称
  • └ stand_id
  • Number
  • 1
  • 看台ID
  • └ seat_id
  • Number
  • 1
  • 座位ID
  • └ price
  • String
  • 100
  • 价格,单位分
  • └ price_id
  • Number
  • 1
  • 票品ID,价格id,和ticket_item_id等价
  • └ seat_status
  • Number
  • 2
  • 座位状态,2有效
  • combine_seat_d_t_o_s
  • CombineSeatDto []
  • "combineSeatDTOS": [ { "ordinaryTickets": [ { "rowNo": "1", "price": "200", "thirdCombineJointTicketId": 2418273, "standId": 2998067, "seatId": 506745634, "floorName": "一层", "priceId": 222285040, "standName": "1", "seatNo": "9" }, { "rowNo": "1", "price": "200", "thirdCombineJointTicketId": 2418273, "standId": 2998067, "seatId": 506745633, "floorName": "一层", "priceId": 222285040, "standName": "1", "seatNo": "8" } ], "combineTicketPrice": "300", "thirdCombineJointTicketId": 2418273, "combineTicketId": 222569297, "thirdCombineTicketId": 222569297, "combineTicketName": "两张3元" } ]
  • 套票座位信息
  • ordinary_tickets
  • OrdinarySeatDto []
  • "ordinaryTickets": [ { "rowNo": "1", "price": "200", "thirdCombineJointTicketId": 2418273, "standId": 2998067, "seatId": 506745634, "floorName": "一层", "priceId": 222285040, "standName": "1", "seatNo": "9" }, { "rowNo": "1", "price": "200", "thirdCombineJointTicketId": 2418273, "standId": 2998067, "seatId": 506745633, "floorName": "一层", "priceId": 222285040, "standName": "1", "seatNo": "8" } ]
  • 套票下的单票信息
  • └ price_id
  • Number
  • 1
  • 票品ID,价格id,和ticket_item_id等价
  • └ price
  • String
  • 100
  • 价格,单位分
  • └ seat_id
  • Number
  • 1
  • 座位ID
  • └ stand_id
  • Number
  • 1
  • 看台ID
  • └ stand_name
  • String
  • 1
  • 看台名称
  • └ floor_name
  • String
  • 一层
  • 楼层名称
  • └ row_no
  • String
  • 5
  • 排号
  • └ seat_no
  • String
  • 5
  • 座位号
  • └ third_combine_joint_ticket_id
  • Number
  • 1243
  • 套票组合ID,和下单参数的combine_id一个意思
  • └ third_combine_ticket_id
  • Number
  • 123
  • 套票ID,如果是套票。下单的时候传这个给ticket_item_id,和下面的combine_ticket_id一样
  • └ combine_ticket_price
  • String
  • 180
  • 套票价格,单位为分
  • └ combine_ticket_name
  • String
  • 套票1
  • 套票名称
  • └ combine_ticket_id
  • Number
  • 11
  • 套票ID,如果是套票。下单的时候传这个给ticket_item_id,和上面的third_combine_ticket_id一样
  • └ error_code
  • String
  • 10010
  • 错误码
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ error_msg
  • String
  • 系统错误
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaDamaiMaitixSeatInfoQueryRequest req = new AlibabaDamaiMaitixSeatInfoQueryRequest();
AlibabaDamaiMaitixSeatInfoQueryRequest.SeatQueryParam obj1 = new AlibabaDamaiMaitixSeatInfoQueryRequest.SeatQueryParam();
List<AlibabaDamaiMaitixSeatInfoQueryRequest.StandQueryParam> list3 = new ArrayList<AlibabaDamaiMaitixSeatInfoQueryRequest.StandQueryParam>();
AlibabaDamaiMaitixSeatInfoQueryRequest.StandQueryParam obj4 = new AlibabaDamaiMaitixSeatInfoQueryRequest.StandQueryParam();
list3.add(obj4);
obj4.setSeatIds(new Long[] { 1,2 };
);
obj4.setStandId(123L);
obj1.setStands(list3);
obj1.setPerformId(55L);
obj1.setProjectId(888L);
obj1.setToken("6b9e4af247642cd8d72cbc");
obj1.setRequestId("6b9e4af2476423cddfb2d2c");
obj1.setCityId(15543L);
obj1.setSeatInfo("{\"cityId\":\"100010\",\"buyParamList\":[{\"count\":1,\"priceId\":224133032},{\"count\":1,\"priceId\":224133035}],\"seatIds\":\"3398181_613014265_3017024,3398181_613014266_3017024,3398181_613014246\"}");
req.setSeatQueryParam(obj1);
AlibabaDamaiMaitixSeatInfoQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_damai_maitix_seat_info_query_response>
    <result>
        <model>
            <ordinary_seat_d_t_o_s>
                <ordinary_seat_dto>
                    <seat_no>5</seat_no>
                    <row_no>5</row_no>
                    <floor_name>一层</floor_name>
                    <stand_name>1</stand_name>
                    <stand_id>1</stand_id>
                    <seat_id>1</seat_id>
                    <price>100</price>
                    <price_id>1</price_id>
                </ordinary_seat_dto>
            </ordinary_seat_d_t_o_s>
            <seat_status>2</seat_status>
            <combine_seat_d_t_o_s>
                <combine_seat_dto>
                    <ordinary_tickets>
                        <ordinary_seat_dto>
                            <price_id>1</price_id>
                            <price>100</price>
                            <seat_id>1</seat_id>
                            <stand_id>1</stand_id>
                            <stand_name>1</stand_name>
                            <floor_name>一层</floor_name>
                            <row_no>5</row_no>
                            <seat_no>5</seat_no>
                        </ordinary_seat_dto>
                    </ordinary_tickets>
                    <third_combine_joint_ticket_id>1243</third_combine_joint_ticket_id>
                    <third_combine_ticket_id>123</third_combine_ticket_id>
                    <combine_ticket_price>180</combine_ticket_price>
                    <combine_ticket_name>套票1</combine_ticket_name>
                    <combine_ticket_id>11</combine_ticket_id>
                </combine_seat_dto>
            </combine_seat_d_t_o_s>
        </model>
        <error_code>10010</error_code>
        <success>true</success>
        <error_msg>系统错误</error_msg>
    </result>
</alibaba_damai_maitix_seat_info_query_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部