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

alibaba.idle.coin.coindeduction.item.query (查询商品相关闲鱼币抵扣信息)

查询商品相关闲鱼币抵扣信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
coin_deduction_item_request CoinDeductionItemRequest 必须 商品id
  • └ item_id_list
  • Number []
  • 必须
  • 商品id列表

响应参数

名称 类型 示例值 描述
suc Boolean true 是否成功
model CoinDeductionListDTO 闲鱼币抵扣列表
  • card_list
  • CardDataDTO []
  • 商品信息
  • └ id
  • String
  • "231323"
  • 商品id
  • └ title
  • String
  • "哈哈哈测试商品"
  • 商品标题
  • └ can_open
  • Boolean
  • true
  • 是否可以开启抵扣
  • coin_deduction_info
  • CoinDeductionInfoDTO
  • 闲鱼币抵扣信息
  • └ price
  • String
  • "180.00"
  • 抵扣后价格
  • └ coin
  • String
  • 2000
  • 抵扣闲鱼币
  • └ ratio
  • String
  • 20
  • 抵扣比例
  • └ open
  • Boolean
  • true
  • 是否已开启抵扣
  • └ can_open
  • Boolean
  • true
  • 是可开启抵扣
  • └ is_new_deduction
  • Boolean
  • true
  • 是否开通新版抵扣
  • coin_deduction_info_list
  • CoinDeductionInfoDTO []
  • 闲鱼币可抵扣的金额列表
  • └ price
  • String
  • -
  • 抵扣后价格
  • └ coin
  • String
  • -
  • 抵扣闲鱼币
  • └ ratio
  • String
  • -
  • 抵扣比例
  • └ open
  • Boolean
  • true
  • 是否已开启抵扣
  • └ total_count
  • Number
  • 10
  • 总数
msg_info String "xxx" 错误信息
msg_code String "xxx" 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleCoinCoindeductionItemQueryRequest req = new AlibabaIdleCoinCoindeductionItemQueryRequest();
AlibabaIdleCoinCoindeductionItemQueryRequest.CoinDeductionItemRequest obj1 = new AlibabaIdleCoinCoindeductionItemQueryRequest.CoinDeductionItemRequest();
obj1.setItemIdList(new Long[] {  };
);
req.setCoinDeductionItemRequest(obj1);
AlibabaIdleCoinCoindeductionItemQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_coin_coindeduction_item_query_response>
    <suc>true</suc>
    <model>
        <card_list>
            <card_data_d_t_o>
                <id>&quot;231323&quot;</id>
                <title>&quot;哈哈哈测试商品&quot;</title>
                <can_open>true</can_open>
                <coin_deduction_info>
                    <price>&quot;180.00&quot;</price>
                    <coin>2000</coin>
                    <ratio>20</ratio>
                    <open>true</open>
                    <can_open>true</can_open>
                    <is_new_deduction>true</is_new_deduction>
                </coin_deduction_info>
                <coin_deduction_info_list>
                    <coin_deduction_info_d_t_o>
                        <price>-</price>
                        <coin>-</coin>
                        <ratio>-</ratio>
                        <open>true</open>
                    </coin_deduction_info_d_t_o>
                </coin_deduction_info_list>
            </card_data_d_t_o>
        </card_list>
        <total_count>10</total_count>
    </model>
    <msg_info>&quot;xxx&quot;</msg_info>
    <msg_code>&quot;xxx&quot;</msg_code>
</alibaba_idle_coin_coindeduction_item_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

返回
顶部