文档中心 > API类目 > 闲鱼电商SAAS

alibaba.idle.coin.coindeduction.open (开启闲鱼币交易抵扣)

开启闲鱼币交易抵扣

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
coin_deduction_open_request CoinDeductionOpenRequest 必须 闲鱼币抵扣开启请求
  • └ channel
  • String
  • 必须
  • "fishApp"
  • 标识抵扣任务来源
  • └ item_id_list
  • String []
  • 必须
  • ["12131"]
  • 闲鱼商品id列表
  • └ deduction_ratio
  • String
  • 必须
  • "30"
  • 抵扣比例

响应参数

名称 类型 示例值 描述
suc Boolean true 是否成功
model Boolean true 结果数据
msg_info String - 错误信息
msg_code String - 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleCoinCoindeductionOpenRequest req = new AlibabaIdleCoinCoindeductionOpenRequest();
AlibabaIdleCoinCoindeductionOpenRequest.CoinDeductionOpenRequest obj1 = new AlibabaIdleCoinCoindeductionOpenRequest.CoinDeductionOpenRequest();
obj1.setChannel("\"fishApp\"");
obj1.setItemIdList(""12131"");
obj1.setDeductionRatio("\"30\"");
req.setCoinDeductionOpenRequest(obj1);
AlibabaIdleCoinCoindeductionOpenResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_coin_coindeduction_open_response>
    <suc>true</suc>
    <model>true</model>
    <msg_info>-</msg_info>
    <msg_code>-</msg_code>
</alibaba_idle_coin_coindeduction_open_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

返回
顶部