alibaba.diantao.tripartite.order.info (点淘对接三方接受交易状态推送)

点淘对接三方接受交易状态推送

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
tripartite_order_info_dto TripartiteOrderInfoDTO 可选 交易订单流水
  • └ extend
  • String
  • 必须
  • {}
  • 扩展信息,json字符串
  • └ amount
  • Number
  • 必须
  • 990
  • 金额,单位分
  • └ biz
  • String
  • 必须
  • xxx
  • 业务标识
  • └ phone_number
  • String
  • 可选
  • 15249762486
  • 手机号
  • └ order_id
  • String
  • 必须
  • 123
  • 点淘订单ID
  • └ pay_time
  • Number
  • 必须
  • 1661148782000
  • 支付时间,时间戳
  • └ out_order_id
  • String
  • 必须
  • 543125
  • 外部订单ID
  • └ biz_scene
  • String
  • 必须
  • xxx
  • 业务场景
  • └ appkey
  • String
  • 必须
  • 123456
  • 小程序appKey
  • └ trade_finished
  • Boolean
  • 必须
  • true
  • 交易状态
  • └ title
  • String
  • 必须
  • xxx
  • 标题
  • └ user_id
  • String
  • 必须
  • 123456
  • 用户ID

响应参数

名称 类型 示例值 描述
error_message String xxx 错误信息
error_info String 1001 错误码
is_success Boolean true 处理是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaDiantaoTripartiteOrderInfoRequest req = new AlibabaDiantaoTripartiteOrderInfoRequest();
AlibabaDiantaoTripartiteOrderInfoRequest.TripartiteOrderInfoDTO obj1 = new AlibabaDiantaoTripartiteOrderInfoRequest.TripartiteOrderInfoDTO();
obj1.setExtend("{}");
obj1.setAmount(990L);
obj1.setBiz("xxx");
obj1.setPhoneNumber("15249762486");
obj1.setOrderId("123");
obj1.setPayTime(1661148782000L);
obj1.setOutOrderId("543125");
obj1.setBizScene("xxx");
obj1.setAppkey("123456");
obj1.setTradeFinished(true);
obj1.setTitle("xxx");
obj1.setUserId("123456");
req.setTripartiteOrderInfoDto(obj1);
AlibabaDiantaoTripartiteOrderInfoResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_diantao_tripartite_order_info_response>
    <error_message>xxx</error_message>
    <error_info>1001</error_info>
    <is_success>true</is_success>
</alibaba_diantao_tripartite_order_info_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

返回
顶部