文档中心 > API类目 > 飞猪机票前台类目

alitrip.checkin.merchant.result.seat (座位图webhook)

座位图webhook

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
web_hook_seat_map_request WebHookSeatMapRequest 必须 回调参数
  • └ request_id
  • String
  • 必须
  • 123123123
  • 会话ID
  • └ external_order_id
  • String
  • 可选
  • 111111111111
  • 商家业务单号
  • └ results
  • String
  • 必须
  • {"seatMap": [{"row": "1", "seats": [{"number": "1A", "status": "available"}, {"number": "1B", "status": "occupied"}]}]}
  • 座位图信息,JSON格式字符串
  • └ caller_id
  • String
  • 必须
  • yutu_channel
  • 调用方渠道标识

响应参数

名称 类型 示例值 描述
result_code Number 200 返回code
result_message String receive success 返回信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripCheckinMerchantResultSeatRequest req = new AlitripCheckinMerchantResultSeatRequest();
AlitripCheckinMerchantResultSeatRequest.WebHookSeatMapRequest obj1 = new AlitripCheckinMerchantResultSeatRequest.WebHookSeatMapRequest();
obj1.setRequestId("123123123");
obj1.setExternalOrderId("111111111111");
obj1.setResults("{\"seatMap\": [{\"row\": \"1\", \"seats\": [{\"number\": \"1A\", \"status\": \"available\"}, {\"number\": \"1B\", \"status\": \"occupied\"}]}]}");
obj1.setCallerId("yutu_channel");
req.setWebHookSeatMapRequest(obj1);
AlitripCheckinMerchantResultSeatResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_checkin_merchant_result_seat_response>
    <result_code>200</result_code>
    <result_message>receive success</result_message>
</alitrip_checkin_merchant_result_seat_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

返回
顶部