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

alibaba.idle.coin.coindeduction.store.open (闲鱼币全店抵扣开通)

闲鱼币全店抵扣开通

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
store_deduction_open_param StoreDeductionOpenParam 必须 全店抵扣开通参数
  • └ deduction_ratio
  • Number
  • 可选
  • 5
  • 抵扣比例
  • └ channel
  • String
  • 可选
  • idlePC
  • 渠道

响应参数

名称 类型 示例值 描述
suc Boolean true 是否成功
model StoreDeductionOpenResponse 全店抵扣开通响应结果
  • └ total_item_count
  • Number
  • 20
  • 总宝贝数量
  • └ close_available_time
  • Number
  • 21313424131
  • 可关闭时间
  • └ operation_id
  • String
  • ADS1313
  • 本次操作ID
msg_info String - 错误信息
msg_code String - 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleCoinCoindeductionStoreOpenRequest req = new AlibabaIdleCoinCoindeductionStoreOpenRequest();
AlibabaIdleCoinCoindeductionStoreOpenRequest.StoreDeductionOpenParam obj1 = new AlibabaIdleCoinCoindeductionStoreOpenRequest.StoreDeductionOpenParam();
obj1.setDeductionRatio(5L);
obj1.setChannel("idlePC");
req.setStoreDeductionOpenParam(obj1);
AlibabaIdleCoinCoindeductionStoreOpenResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_coin_coindeduction_store_open_response>
    <suc>true</suc>
    <model>
        <total_item_count>20</total_item_count>
        <close_available_time>21313424131</close_available_time>
        <operation_id>ADS1313</operation_id>
    </model>
    <msg_info>-</msg_info>
    <msg_code>-</msg_code>
</alibaba_idle_coin_coindeduction_store_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

返回
顶部