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

alibaba.idle.coin.coindeduction.list (闲鱼币交易抵扣商品查询)

闲鱼币交易抵扣商品查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
coin_deduction_list_request CoinDeductionListRequest 必须 闲鱼币抵扣列表
  • └ page_number
  • Number
  • 可选
  • 1
  • 页码
  • └ sort_type
  • Number
  • 必须
  • 0
  • * 排序类型,枚举: * 0 按照修改时间降序 * 1 按照价格升序 * 2 按照价格降序
  • └ deduction_type
  • Number
  • 必须
  • 0
  • 0--全部商品列表 1--已开启抵扣商品 2--未开启抵扣商品
  • └ page_size
  • Number
  • 可选
  • 10
  • 每页大小
  • └ up_item_id
  • Number
  • 可选
  • 32323
  • 指定商品id

响应参数

名称 类型 示例值 描述
suc Boolean true 是否成功
model CoinDeductionListDTO 闲鱼币抵扣列表
  • card_list
  • CardDataDTO []
  • 商品信息
  • └ id
  • String
  • 3233
  • 商品id
  • └ title
  • String
  • "xxx"
  • 商品标题
  • └ pic_url
  • String
  • "htt:xx"
  • 主图链接
  • └ has_video
  • Boolean
  • false
  • 是否有视频
  • └ price
  • String
  • "30"
  • 价格
  • └ extra_price
  • String
  • -
  • * 单sku,extraPrice为null * 多sku,extraPrice为较大的值 */
  • └ want_num
  • String
  • -
  • 想要量
  • └ browse_count
  • String
  • -
  • 浏览量
  • └ exposure_num
  • String
  • -
  • 曝光量
  • └ can_open
  • Boolean
  • false
  • 是否可以开启抵扣
  • coin_deduction_info
  • CoinDeductionInfoDTO
  • 闲鱼币抵扣信息
  • └ price
  • String
  • -
  • 抵扣后价格
  • └ coin
  • String
  • -
  • 抵扣闲鱼币
  • └ ratio
  • String
  • -
  • 抵扣比例
  • └ open
  • Boolean
  • -
  • 是否已开启抵扣
  • └ can_open
  • Boolean
  • -
  • 是否可以开启抵扣
  • └ is_new_deduction
  • Boolean
  • -
  • 是否开通新版本抵扣
  • coin_deduction_info_list
  • CoinDeductionInfoDTO []
  • 闲鱼币可抵扣的金额列表
  • └ price
  • String
  • -
  • 抵扣后价格
  • └ coin
  • String
  • -
  • 抵扣闲鱼币
  • └ ratio
  • String
  • -
  • 抵扣比例
  • └ open
  • Boolean
  • -
  • 是否已开启抵扣
  • └ can_open
  • Boolean
  • -
  • 是否可以开启抵扣
  • └ is_new_deduction
  • Boolean
  • -
  • 无用
  • └ next_page
  • Boolean
  • false
  • 是否下一页
  • └ total_count
  • Number
  • 100
  • 总数
msg_info String - 错误信息
msg_code String - 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleCoinCoindeductionListRequest req = new AlibabaIdleCoinCoindeductionListRequest();
AlibabaIdleCoinCoindeductionListRequest.CoinDeductionListRequest obj1 = new AlibabaIdleCoinCoindeductionListRequest.CoinDeductionListRequest();
obj1.setPageNumber(1L);
obj1.setSortType(0L);
obj1.setDeductionType(0L);
obj1.setPageSize(10L);
obj1.setUpItemId(32323L);
req.setCoinDeductionListRequest(obj1);
AlibabaIdleCoinCoindeductionListResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_coin_coindeduction_list_response>
    <suc>true</suc>
    <model>
        <card_list>
            <card_data_d_t_o>
                <id>3233</id>
                <title>&quot;xxx&quot;</title>
                <pic_url>&quot;htt:xx&quot;</pic_url>
                <has_video>false</has_video>
                <price>&quot;30&quot;</price>
                <extra_price>-</extra_price>
                <want_num>-</want_num>
                <browse_count>-</browse_count>
                <exposure_num>-</exposure_num>
                <can_open>false</can_open>
                <coin_deduction_info>
                    <price>-</price>
                    <coin>-</coin>
                    <ratio>-</ratio>
                    <open>-</open>
                    <can_open>-</can_open>
                    <is_new_deduction>-</is_new_deduction>
                </coin_deduction_info>
                <coin_deduction_info_list>
                    <coin_deduction_info_d_t_o>
                        <price>-</price>
                        <coin>-</coin>
                        <ratio>-</ratio>
                        <open>-</open>
                        <can_open>-</can_open>
                        <is_new_deduction>-</is_new_deduction>
                    </coin_deduction_info_d_t_o>
                </coin_deduction_info_list>
            </card_data_d_t_o>
        </card_list>
        <next_page>false</next_page>
        <total_count>100</total_count>
    </model>
    <msg_info>-</msg_info>
    <msg_code>-</msg_code>
</alibaba_idle_coin_coindeduction_list_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

返回
顶部