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

alibaba.idle.coin.coindeduction.query (查询闲鱼币协议是否开通)

查询闲鱼币协议是否开通

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
coin_deduction_agree_request CoinDeductionAgreeRequest 必须 闲鱼币抵扣同意协议请求
  • └ agree_flag
  • Number
  • 可选
  • 0
  • /** * 是否同意协议标识 * 1 同意协议 * 0 关闭协议 */

响应参数

名称 类型 示例值 描述
suc Boolean true 请求是否成功
model CoinDeductionAgreeDTO 查询闲鱼币闲鱼是否开通
  • └ agree_flag
  • Number
  • 0
  • 是否同意协议标识 * 1 同意协议 * 0 关闭协议
msg_info String - 错误信息
msg_code String - 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleCoinCoindeductionQueryRequest req = new AlibabaIdleCoinCoindeductionQueryRequest();
AlibabaIdleCoinCoindeductionQueryRequest.CoinDeductionAgreeRequest obj1 = new AlibabaIdleCoinCoindeductionQueryRequest.CoinDeductionAgreeRequest();
obj1.setAgreeFlag(0L);
req.setCoinDeductionAgreeRequest(obj1);
AlibabaIdleCoinCoindeductionQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_coin_coindeduction_query_response>
    <suc>true</suc>
    <model>
        <agree_flag>0</agree_flag>
    </model>
    <msg_info>-</msg_info>
    <msg_code>-</msg_code>
</alibaba_idle_coin_coindeduction_query_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

返回
顶部