youku.ott.pay.order.authpaywithprice (委托代扣可配定价服务)

应用中心sdk连续包月委托代扣服务,次月可配置营销价

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
buyer String 必须 lq@207.com cp用户名
original_order_no String 必须 dingdan12345 连续包月原始cp订单号
order_no String 必须 auth12345 委托扣款cp订单号
product_id String 必须 1234567 已配置开通连续包月的产品id
callback_url String 可选 http://xx.xxx/callback 回调
pay_price String 可选 100 用于次月扣款营销价,需小于签约时设定续费价

响应参数

名称 类型 示例值 描述
data TvOrderResultDTO 返回结果
  • └ qcode_url
  • String
  • http://xx.xxx
  • qcodeUrl
  • └ version_code
  • String
  • 1.0
  • 版本号
  • └ order_no
  • String
  • auth12345
  • cp本次订单号
  • └ cp_order_no
  • String
  • sign2345
  • cp原始订单号
  • └ message
  • String
  • true
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
YoukuOttPayOrderAuthpaywithpriceRequest req = new YoukuOttPayOrderAuthpaywithpriceRequest();
req.setBuyer("lq@207.com");
req.setOriginalOrderNo("dingdan12345");
req.setOrderNo("auth12345");
req.setProductId("1234567");
req.setCallbackUrl("http://xx.xxx/callback");
req.setPayPrice("100");
YoukuOttPayOrderAuthpaywithpriceResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<youku_ott_pay_order_authpaywithprice_response>
    <data>
        <qcode_url>http://xx.xxx</qcode_url>
        <version_code>1.0</version_code>
        <order_no>auth12345</order_no>
        <cp_order_no>sign2345</cp_order_no>
        <message>true</message>
    </data>
</youku_ott_pay_order_authpaywithprice_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

返回
顶部