文档中心 > API类目 > 闲鱼已验货

alibaba.idle.item.user.publishitems (发布的商品列表)

为服务商的卖家提供发布的闲鱼商品列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_item_page_query ItemPageQuery 可选 查询参数
  • └ category_ids
  • Number []
  • 可选
  • [123]
  • 类目集
  • └ page_no
  • Number
  • 可选
  • 0
  • 页号
  • └ page_size
  • Number
  • 可选
  • 20
  • 页大小
  • └ status
  • String []
  • 可选
  • [0]
  • 商品状态 0:在线 1售出

响应参数

名称 类型 示例值 描述
result TopPageResult {} 查询结果
  • item_list
  • IdleItemApiDo []
  • []
  • 商品列表
  • └ item_id
  • Number
  • 12344
  • 商品ID
  • └ title
  • String
  • 99新iphone11
  • 商品标题
  • └ category_id
  • String
  • 121122
  • 商品类目
  • └ seller_nick
  • String
  • 闲小鱼
  • 卖家昵称(不唯一且用户可以自己更改)
  • └ channel_cat_id
  • String
  • 123211
  • 渠道类目ID
  • └ img_urls
  • String []
  • []
  • 商品图片
  • └ reserve_price
  • String
  • 1233.00
  • 商品价格
  • └ auction_type
  • String
  • b
  • 商品类型: b 一口价;a 拍卖
  • bid_data
  • IdleItemApiBidDo
  • 拍卖业务数据
  • └ bid_item_id
  • Number
  • 1332454564634
  • 拍卖商品id(与闲鱼商品id item_id不是同一个)
  • └ bid_start_time
  • Number
  • 245435656742
  • 拍卖开始时间,毫秒时间戳(精度为分钟)
  • └ bid_end_time
  • Number
  • 346546345
  • 拍卖结束时间,毫秒时间戳(精度为分钟)
  • └ current_bid_price
  • Number
  • 5500
  • 当前出价金额, 最高出价, 单位分(起拍价使用reserve_price)
  • └ bid_count
  • Number
  • 9
  • 总出价次数
  • └ item_biz_type
  • Number
  • 1
  • 业务模式 0不入仓,1入仓,2 C2C; (经常会新增,具体参见接入文档)
  • └ sp_biz_type
  • String
  • 1
  • 1 服务商商品业务分类,手机:1, 潮品:2, 家电:3, 乐器:8, 3C数码:9, 奢品:16, 母婴:17, 美妆:18, 文玩/珠宝:19, 潮玩:20, 家居:21
  • └ division_id
  • Number
  • 330110
  • 行政区划Id(城市编码),最小行政单位code,若是地区级别,则为地区级别的id;否则为城市级别的id(long型,6位)
  • └ original_price
  • String
  • 3898
  • 商品原价, 单位:元(最大99999999)
  • └ status
  • Number
  • 0
  • 商品状态,可选值为0(表示上架),-2(表示下架),-1(表示删除),99(其他)
  • └ stuff_status
  • Number
  • 99
  • 商品新旧程度, 值为-1~100的整数,例如100代表全新,95代表95新,-1比较特殊代表准新
  • └ encryption_seller_id
  • String
  • 2jGGzw9wRhGvQZjd7b6B6w==
  • 加密的卖家id
  • after_sales_data
  • IdleItemApiAfterSalesDo
  • 售后服务信息
  • └ support_sdr_policy
  • Boolean
  • true
  • 是否支持七天无理由
  • └ support_nfr_policy
  • Boolean
  • false
  • 是否支持描述不符包邮退
  • └ support_vnr_policy
  • Boolean
  • false
  • 是否支持 虚拟-描述不符包退
  • └ support_fd24hs_policy
  • Boolean
  • false
  • 是否支持 极速发货-24小时
  • └ support_fd10ms_policy
  • Boolean
  • false
  • 是否支持 极速发货-10分钟
  • idle_item_api_auto_recharge_do
  • IdleItemApiAutoRechargeDO
  • 商品直充相关信息
  • └ template_code
  • String
  • accountInputBox
  • 直充模板code
  • └ template_extra_info
  • String
  • PHONE
  • 模版的额外参数
  • └ owner
  • Boolean
  • true
  • 当前服务商是否拥有直充编辑权限
  • └ err_code
  • String
  • OK
  • 错误码
  • └ err_msg
  • String
  • OK
  • 错误描述
  • └ next_page
  • Boolean
  • true
  • 是否有下一页
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ total
  • Number
  • 100
  • 总结果数

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleItemUserPublishitemsRequest req = new AlibabaIdleItemUserPublishitemsRequest();
AlibabaIdleItemUserPublishitemsRequest.ItemPageQuery obj1 = new AlibabaIdleItemUserPublishitemsRequest.ItemPageQuery();
obj1.setCategoryIds(new Long[] { 123 };
);
obj1.setPageNo(0L);
obj1.setPageSize(20L);
obj1.setStatus("0");
req.setParamItemPageQuery(obj1);
AlibabaIdleItemUserPublishitemsResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_item_user_publishitems_response>
    <result>
        <item_list>
            <idle_item_api_do>
                <item_id>12344</item_id>
                <title>99新iphone11</title>
                <category_id>121122</category_id>
                <seller_nick>闲小鱼</seller_nick>
                <channel_cat_id>123211</channel_cat_id>
                <img_urls>
                    <string>[]</string>
                </img_urls>
                <reserve_price>1233.00</reserve_price>
                <auction_type>b</auction_type>
                <bid_data>
                    <bid_item_id>1332454564634</bid_item_id>
                    <bid_start_time>245435656742</bid_start_time>
                    <bid_end_time>346546345</bid_end_time>
                    <current_bid_price>5500</current_bid_price>
                    <bid_count>9</bid_count>
                </bid_data>
                <item_biz_type>1</item_biz_type>
                <sp_biz_type>1</sp_biz_type>
                <division_id>330110</division_id>
                <original_price>3898</original_price>
                <status>0</status>
                <stuff_status>99</stuff_status>
                <encryption_seller_id>2jGGzw9wRhGvQZjd7b6B6w==</encryption_seller_id>
                <after_sales_data>
                    <support_sdr_policy>true</support_sdr_policy>
                    <support_nfr_policy>false</support_nfr_policy>
                    <support_vnr_policy>false</support_vnr_policy>
                    <support_fd24hs_policy>false</support_fd24hs_policy>
                    <support_fd10ms_policy>false</support_fd10ms_policy>
                </after_sales_data>
                <idle_item_api_auto_recharge_do>
                    <template_code>accountInputBox</template_code>
                    <template_extra_info>PHONE</template_extra_info>
                    <owner>true</owner>
                </idle_item_api_auto_recharge_do>
            </idle_item_api_do>
        </item_list>
        <err_code>OK</err_code>
        <err_msg>OK</err_msg>
        <next_page>true</next_page>
        <success>true</success>
        <total>100</total>
    </result>
</alibaba_idle_item_user_publishitems_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

返回
顶部