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

alibaba.idle.coin.coindeduction.store.items (全店抵扣宝贝商品查询)

全店抵扣宝贝商品查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
store_deduction_items_param StoreDeductionItemsParam 必须 全店抵扣宝贝列表参数
  • └ page_number
  • Number
  • 可选
  • 1
  • 页码
  • └ channel
  • String
  • 可选
  • idlePC
  • 渠道来源:PC-PC闲管家, APP-端内
  • └ page_size
  • Number
  • 可选
  • 20
  • 每页大小
  • └ tab_type
  • Number
  • 可选
  • 3
  • 标签类型: 0-全部抵扣宝贝 1-全店抵扣宝贝(coinStore=1) 2-单品抵扣宝贝(有 idleCoinDeductionRatio 但无 coinStore) 3-全部商品(可开启抵扣的宝贝) 4-开通失败商品(从 OTS fail_item 表查询) 5-不可抵扣商品(在线商品中不满足抵扣条件的)

响应参数

名称 类型 示例值 描述
suc Boolean true 当次请求是否成功
model StoreDeductionItemsResponse 全店抵扣宝贝列表响应
  • └ total
  • Number
  • 20
  • 总数量(搜索引擎返回的精确总数
  • items
  • StoreItemVO []
  • 宝贝列表
  • └ item_id
  • Number
  • 23131313
  • 宝贝id
  • └ title
  • String
  • 测试商品
  • 宝贝标题
  • └ pic_url
  • String
  • https://wwwew.asdad.com
  • 宝贝图片
  • └ has_video
  • Boolean
  • true
  • 是否有视频
  • └ price
  • String
  • 100
  • 宝贝价格(单位:元,SKU 最低价)
  • └ extra_price
  • String
  • 200
  • SKU 最高价(单位:元,有多 SKU 且最高价 > 最低价时返回)
  • └ want_num
  • String
  • 100
  • 想要数
  • └ browse_count
  • String
  • 2000
  • 浏览量
  • └ exposure_num
  • String
  • 3000
  • 曝光量
  • └ can_open
  • Boolean
  • true
  • 是否可开启抵扣
  • └ deduction_ratio
  • Number
  • 20
  • 抵扣比例
  • └ store_deduction
  • Boolean
  • true
  • 是否全店抵扣来源
  • └ fail_reason
  • String
  • xxxxxx
  • 失败原因(仅 tabType=4 开通失败商品时返回)
  • └ fail_type
  • String
  • RETRYABLE
  • 失败类型:RETRYABLE-可重试,NON_RETRYABLE-不可重试(仅 tabType=4 时返回)
  • └ disable_reason
  • String
  • xxx
  • 不可抵扣原因(仅 tabType=5 不可抵扣商品时返回)
  • coin_deduction_info
  • CoinDeductionInfo
  • 抵扣信息
  • └ price
  • String
  • 100
  • 抵扣后价格
  • └ coin
  • String
  • 5000
  • 抵扣闲鱼币
  • └ ratio
  • String
  • 20
  • 抵扣比例
  • └ open
  • Boolean
  • true
  • 是否已开启抵扣
  • └ is_new_deduction
  • Boolean
  • true
  • 是否已开启抵扣
  • └ can_open
  • Boolean
  • true
  • 是否可以开启抵扣
  • └ store_deduction
  • Boolean
  • true
  • 是否为全店抵扣
  • └ is_store_ratio
  • Boolean
  • true
  • 是否为全店抵扣比例(标识当前选项等于用户的全店抵扣比例)
  • └ feet_limit
  • Boolean
  • true
  • 是否达到上限
  • sku_price_info
  • CoinDeductionSkuPriceDTO
  • 抵扣sku价格信息
  • └ min_price
  • String
  • 100
  • 最小抵扣后价格
  • └ max_price
  • String
  • 200
  • 最大抵扣后价格
  • └ min_coin
  • String
  • 10000
  • 最小抵扣闲鱼币
  • └ max_coin
  • String
  • 20000
  • 最大抵扣闲鱼币
  • coin_deduction_info_list
  • CoinDeductionInfo []
  • 可选抵扣配置列表
  • └ price
  • String
  • 100
  • 抵扣后价格
  • └ coin
  • String
  • 6000
  • 抵扣闲鱼币
  • └ ratio
  • String
  • 30
  • 抵扣比例
  • └ open
  • Boolean
  • true
  • 是否已开启抵扣
  • └ is_new_deduction
  • Boolean
  • true
  • 是否已开启抵扣
  • └ can_open
  • Boolean
  • true
  • 是否可以开启抵扣
  • └ store_deduction
  • Boolean
  • true
  • 是否为全店抵扣
  • └ is_store_ratio
  • Boolean
  • false
  • 是否为全店抵扣比例(标识当前选项等于用户的全店抵扣比例)
  • └ feet_limit
  • Boolean
  • true
  • 是否达到上限
  • sku_price_info
  • CoinDeductionSkuPriceDTO
  • 抵扣sku价格信息
  • └ min_price
  • String
  • 100
  • 最小抵扣后价格
  • └ max_price
  • String
  • 200
  • 最大抵扣后价格
  • └ min_coin
  • String
  • 10000
  • 最小抵扣闲鱼币
  • └ max_coin
  • String
  • 20000
  • 最大抵扣闲鱼币
  • └ next_page
  • Boolean
  • true
  • 是否有下一页
msg_info String - 错误信息
msg_code String - 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleCoinCoindeductionStoreItemsRequest req = new AlibabaIdleCoinCoindeductionStoreItemsRequest();
AlibabaIdleCoinCoindeductionStoreItemsRequest.StoreDeductionItemsParam obj1 = new AlibabaIdleCoinCoindeductionStoreItemsRequest.StoreDeductionItemsParam();
obj1.setPageNumber(1L);
obj1.setChannel("idlePC");
obj1.setPageSize(20L);
obj1.setTabType(3L);
req.setStoreDeductionItemsParam(obj1);
AlibabaIdleCoinCoindeductionStoreItemsResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_coin_coindeduction_store_items_response>
    <suc>true</suc>
    <model>
        <total>20</total>
        <items>
            <store_item_v_o>
                <item_id>23131313</item_id>
                <title>测试商品</title>
                <pic_url>https://wwwew.asdad.com</pic_url>
                <has_video>true</has_video>
                <price>100</price>
                <extra_price>200</extra_price>
                <want_num>100</want_num>
                <browse_count>2000</browse_count>
                <exposure_num>3000</exposure_num>
                <can_open>true</can_open>
                <deduction_ratio>20</deduction_ratio>
                <store_deduction>true</store_deduction>
                <fail_reason>xxxxxx</fail_reason>
                <fail_type>RETRYABLE</fail_type>
                <disable_reason>xxx</disable_reason>
                <coin_deduction_info>
                    <price>100</price>
                    <coin>5000</coin>
                    <ratio>20</ratio>
                    <open>true</open>
                    <is_new_deduction>true</is_new_deduction>
                    <can_open>true</can_open>
                    <store_deduction>true</store_deduction>
                    <is_store_ratio>true</is_store_ratio>
                    <feet_limit>true</feet_limit>
                    <sku_price_info>
                        <min_price>100</min_price>
                        <max_price>200</max_price>
                        <min_coin>10000</min_coin>
                        <max_coin>20000</max_coin>
                    </sku_price_info>
                </coin_deduction_info>
                <coin_deduction_info_list>
                    <coin_deduction_info>
                        <price>100</price>
                        <coin>6000</coin>
                        <ratio>30</ratio>
                        <open>true</open>
                        <is_new_deduction>true</is_new_deduction>
                        <can_open>true</can_open>
                        <store_deduction>true</store_deduction>
                        <is_store_ratio>false</is_store_ratio>
                        <feet_limit>true</feet_limit>
                        <sku_price_info>
                            <min_price>100</min_price>
                            <max_price>200</max_price>
                            <min_coin>10000</min_coin>
                            <max_coin>20000</max_coin>
                        </sku_price_info>
                    </coin_deduction_info>
                </coin_deduction_info_list>
            </store_item_v_o>
        </items>
        <next_page>true</next_page>
    </model>
    <msg_info>-</msg_info>
    <msg_code>-</msg_code>
</alibaba_idle_coin_coindeduction_store_items_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

返回
顶部