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

alibaba.idle.coin.coindeduction.store.modify (闲鱼币全店抵扣比例修改)

闲鱼币全店抵扣比例修改

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
store_deduction_modify_param StoreDeductionModifyParam 可选 全店抵扣修改参数
  • └ action
  • String
  • 可选
  • MODIFY_RATIO-修改比例, CLOSE-关闭
  • 操作类型
  • └ deduction_ratio
  • Number
  • 可选
  • 20
  • 抵扣比例(仅当action为MODIFY_RATIO时需要)
  • └ channel
  • String
  • 可选
  • idlePC
  • 渠道信息

响应参数

名称 类型 示例值 描述
suc Boolean true 是否成功
model StoreDeductionModifyResponse 全店抵扣修改响应返回体
  • └ suc
  • Boolean
  • true
  • 操作是否成功
  • └ close_available_time
  • Number
  • 21313131
  • 可关闭时间
  • └ close_message
  • String
  • action=CLOSE 时返回
  • 关闭提示信息(action=CLOSE 时返回)
  • └ single_deduction_item_count
  • Number
  • 1
  • 已开通单品抵扣的宝贝数量(action=CLOSE 时返回)
  • └ closed_item_count
  • Number
  • 20
  • 本次关闭全店抵扣的宝贝数量(不含单品抵扣宝贝)
  • └ operation_id
  • String
  • ASD231
  • 本次操作ID
msg_info String - 错误信息
msg_code String - 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleCoinCoindeductionStoreModifyRequest req = new AlibabaIdleCoinCoindeductionStoreModifyRequest();
AlibabaIdleCoinCoindeductionStoreModifyRequest.StoreDeductionModifyParam obj1 = new AlibabaIdleCoinCoindeductionStoreModifyRequest.StoreDeductionModifyParam();
obj1.setAction("MODIFY_RATIO-修改比例, CLOSE-关闭");
obj1.setDeductionRatio(20L);
obj1.setChannel("idlePC");
req.setStoreDeductionModifyParam(obj1);
AlibabaIdleCoinCoindeductionStoreModifyResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_coin_coindeduction_store_modify_response>
    <suc>true</suc>
    <model>
        <suc>true</suc>
        <close_available_time>21313131</close_available_time>
        <close_message>action=CLOSE 时返回</close_message>
        <single_deduction_item_count>1</single_deduction_item_count>
        <closed_item_count>20</closed_item_count>
        <operation_id>ASD231</operation_id>
    </model>
    <msg_info>-</msg_info>
    <msg_code>-</msg_code>
</alibaba_idle_coin_coindeduction_store_modify_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

返回
顶部