alibaba.diantao.tripartite.right.pay.notify (三方权益支付成功通知)

三方权益支付成功通知

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
tripartite_pay_notify_dto TripartitePayNotifyDTO 可选 支付通知请求
  • └ extend
  • String
  • 可选
  • {}
  • 扩展信息
  • └ biz
  • String
  • 可选
  • 业务标识
  • flowPacket
  • └ amount
  • Number
  • 可选
  • 100
  • 支付金额
  • └ phone_number
  • String
  • 可选
  • 18072887365
  • 订购手机号
  • └ pay_time
  • Number
  • 可选
  • 1661766890994
  • 支付时间(时间戳)
  • └ right_code
  • String
  • 可选
  • flowPacket
  • 权益Code
  • └ idempotent_id
  • String
  • 可选
  • 18072887365_11434434554
  • 幂等Id
  • └ biz_scene
  • String
  • 可选
  • xx
  • 业务场景
  • └ title
  • String
  • 可选
  • 流量包
  • 标题
  • └ channel_id
  • Number
  • 可选
  • 1234
  • 渠道ID
  • └ source
  • String
  • 必须
  • 中国移动
  • 来源
  • └ outer_order_id
  • String
  • 必须
  • 1057706761588580000
  • 外部订单号

响应参数

名称 类型 示例值 描述
msg_info String 系统异常 错误描述
msg_code String 10001 错误码
succ Boolean true 是否成功
data TripartitePayNotifyRespDTO 返回结果
  • └ open_id
  • String
  • 334556214562145454534
  • 用户openId
  • └ order_id
  • String
  • 123656764
  • 内部订单Id

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaDiantaoTripartiteRightPayNotifyRequest req = new AlibabaDiantaoTripartiteRightPayNotifyRequest();
AlibabaDiantaoTripartiteRightPayNotifyRequest.TripartitePayNotifyDTO obj1 = new AlibabaDiantaoTripartiteRightPayNotifyRequest.TripartitePayNotifyDTO();
obj1.setExtend("{}");
obj1.setBiz("业务标识");
obj1.setAmount(100L);
obj1.setPhoneNumber("18072887365");
obj1.setPayTime(1661766890994L);
obj1.setRightCode("flowPacket");
obj1.setIdempotentId("18072887365_11434434554");
obj1.setBizScene("xx");
obj1.setTitle("流量包");
obj1.setChannelId(1234L);
obj1.setSource("中国移动");
obj1.setOuterOrderId("1057706761588580000");
req.setTripartitePayNotifyDto(obj1);
AlibabaDiantaoTripartiteRightPayNotifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_diantao_tripartite_right_pay_notify_response>
    <msg_info>系统异常</msg_info>
    <msg_code>10001</msg_code>
    <succ>true</succ>
    <data>
        <open_id>334556214562145454534</open_id>
        <order_id>123656764</order_id>
    </data>
</alibaba_diantao_tripartite_right_pay_notify_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

返回
顶部