文档中心 > API类目 > 飞猪商业化API

alitrip.bp.ad.order.report (飞猪商业化订单埋点上报接口)

飞猪商业化订单埋点上报接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
order_request FliggyAdCommonOrderRequest 可选 入参
  • └ trace_id
  • String
  • 必须
  • S7272SMSHA8
  • 归因请求唯一id
  • └ report_channel
  • String
  • 必须
  • bmap
  • 上报渠道
  • └ ord_create_time
  • Number
  • 必须
  • 1732180704293
  • 创单时间,单位:毫秒
  • └ order_id
  • String
  • 必须
  • 123
  • 订单id
  • └ click_id
  • String
  • 必须
  • 272738UBSAT88
  • 归因点击id
  • └ user_id
  • String
  • 可选
  • xxx
  • 下单用户id
  • └ device_id
  • String
  • 必须
  • xxx
  • 下单设备id
  • └ order_channel
  • String
  • 必须
  • fliggy|other
  • 标识订单来源(飞猪或其他)
  • └ item_count
  • Number
  • 可选
  • 1
  • 订单商品数量
  • └ gmv
  • Number
  • 可选
  • 10000
  • 支付订单金额,单位:分
  • └ material_id
  • String
  • 可选
  • 35218834
  • 酒店shid

响应参数

名称 类型 示例值 描述
result TrackBaseResult 返回结果
  • └ success
  • Boolean
  • true
  • 埋点上报是否成功
  • └ error_code
  • String
  • success
  • 错误码
  • └ error_msg
  • String
  • 服务调用成功
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripBpAdOrderReportRequest req = new AlitripBpAdOrderReportRequest();
AlitripBpAdOrderReportRequest.FliggyAdCommonOrderRequest obj1 = new AlitripBpAdOrderReportRequest.FliggyAdCommonOrderRequest();
obj1.setTraceId("S7272SMSHA8");
obj1.setReportChannel("bmap");
obj1.setOrdCreateTime(1732180704293L);
obj1.setOrderId("123");
obj1.setClickId("272738UBSAT88");
obj1.setUserId("xxx");
obj1.setDeviceId("xxx");
obj1.setOrderChannel("fliggy|other");
obj1.setItemCount(1L);
obj1.setGmv(10000L);
obj1.setMaterialId("35218834");
req.setOrderRequest(obj1);
AlitripBpAdOrderReportResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_bp_ad_order_report_response>
    <result>
        <success>true</success>
        <error_code>success</error_code>
        <error_msg>服务调用成功</error_msg>
    </result>
</alitrip_bp_ad_order_report_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

返回
顶部