文档中心 > API类目 > 淘金币API

taobao.coin.tools.coinrate.set (设置全店淘金币抵扣比例)

设置全店淘金币抵扣比例

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
coinrate Number 必须 300 淘金币抵扣比例

响应参数

名称 类型 示例值 描述
biz_ok Boolean true 是否设置成功
trace_id String aabb 故障排查跟踪ID
biz_err_code String isp.systerm-error 错误码
biz_err_msg String 系统出错了 错误中文描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CoinToolsCoinrateSetRequest req = new CoinToolsCoinrateSetRequest();
req.setCoinrate(300L);
CoinToolsCoinrateSetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<coin_tools_coinrate_set_response>
    <biz_ok>true</biz_ok>
    <trace_id>aabb</trace_id>
    <biz_err_code>isp.systerm-error</biz_err_code>
    <biz_err_msg>系统出错了</biz_err_msg>
</coin_tools_coinrate_set_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

返回
顶部