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

taobao.coin.tools.open (卖家开通淘金币工具)

用户商户开通淘金币工具

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
coinrate Number 可选 300
  • 默认值:300
  • 淘金币抵扣比例
    tool_id Number 必须 1 淘金币卖家工具id

    响应参数

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

    请求示例

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

    响应示例

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

    返回
    顶部