闲管家开放平台(作废)
  1. 商品
闲管家开放平台(作废)
  • 接入说明
  • 代码示例
  • 商品
    • 查询商品详情
      POST
    • 查询商品列表
      POST
    • 创建商品
      POST
    • 创建商品(批量)
      POST
    • 编辑商品
      POST
    • 下架商品
      POST
    • 删除商品
      POST
    • 库存同步
      POST
  • 订单
    • 查询订单
      POST
    • 订单发货
      POST
  • 推送
    • 订单推送
      POST
  • 用户
    • 查询闲鱼号授权列表
      POST
  1. 商品

查询商品列表

将废弃
POST
https://api.goofish.pro/sop/product/list
最后修改时间:2023-07-26 10:14:01
注意事项:
1:该接口只能查询最近三个月内修改过的商品
2:该接口只返回基础信息,更多信息请调用查询商品详情接口

请求参数

Query 参数
appid
string 
必需
开放平台的AppKey
默认值:
{{appid}}
timestamp
string 
必需
当前时间戳(单位秒,5分钟内有效)
默认值:
{{timestamp}}
sign
string 
必需
签名MD5值(参考签名说明)
默认值:
{{sign}}
Body 参数application/json
start_modified
integer 
起始的修改时间
可选
示例:1645286400,默认值为当天0点的时间戳
end_modified
integer 
结束的修改时间
可选
示例:1645545600,默认值为当前时间的时间戳
product_status
enum<integer> 
管家商品状态
可选
示例:22
枚举值:
-1102122233132
page_no
integer 
页码
可选
传入值为1代表第一页,传入值为2代表第二页,依此类推
>= 1<= 100
默认值:
1
page_size
integer 
每页行数
可选
当翻页获取的条数(page_no*page_size)超过1万,接口将报错,所以请大家尽可能的细化自己的搜索条件,例如缩短修改时间分段获取商品
>= 1<= 100
默认值:
50
示例
{
    "start_modified": 1645286400,
    "end_modified": 1645545600,
    "product_status": 22,
    "page_no": 1,
    "page_size": 50
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.goofish.pro/sop/product/list?appid=&timestamp=&sign=' \
--header 'Content-Type: application/json' \
--data-raw '{
    "start_modified": 1645286400,
    "end_modified": 1645545600,
    "product_status": 22,
    "page_no": 1,
    "page_size": 50
}'

返回响应

🟢200成功
application/json
Body
status
integer 
必需
data
array [object {22}] 
必需
product_id
string 
闲鱼管家商品ID
必需
示例:219530767978565
item_biz_type
integer 
商品类型ID
必需
示例:2
sp_biz_type
integer 
商品分类ID
必需
示例:1
channel_cat_id
string 
商品类目ID
必需
示例:e11455b218c06e7ae10cfa39bf43dc0f
original_price
integer 
商品原价(分)
必需
示例:299900
price
integer 
商品售价(分)
必需
示例:199900
stock
integer 
商品库存
必需
示例:10
title
string 
商品标题
必需
示例:iPhone 12 128G 黑色
district_id
integer 
发货地区ID
必需
示例:440305
outer_id
string 
商家编码
必需
示例:2021110112345
spec_type
enum<integer> 
商品规格类型
必需
示例:2
枚举值:
12
source
enum<integer> 
商品来源
必需
示例:91
枚举值:
11122191
stuff_status
integer 
商品成色
必需
示例:100
express_fee
integer 
运费(分)
必需
示例:10
product_status
enum<integer> 
管家商品状态:
必需
示例:10
枚举值:
-1102122233132
support_sdr_policy
enum<integer> 
是否支持七天无理由
必需
枚举值:
10
support_nfr_policy
enum<integer> 
是否支持描述不符包邮退
必需
枚举值:
10
online_time
integer 
商品上架时间
必需
示例:1636019388
offline_time
integer 
商品下架时间
必需
示例:1636019388
sold_time
integer 
商品售罄时间
必需
示例:1636019388
modify_time
integer 
商品更新时间
必需
示例:1636013302
create_time
integer 
商品创建时间
必需
示例:1636013302
示例
{
    "status": 200,
    "data": [
        {
            "product_id": "259601627181125",
            "product_status": 22,
            "item_biz_type": 2,
            "sp_biz_type": 18,
            "channel_cat_id": "f2b952f5a3130bbcacde29f76907b07f",
            "original_price": 0,
            "price": 100,
            "stock": 16,
            "title": "测试商品1",
            "district_id": 440305,
            "outer_id": "STXSCS01234",
            "stuff_status": 0,
            "express_fee": 0,
            "spec_type": 2,
            "source": 12,
            "online_time": 1645515702,
            "offline_time": 0,
            "sold_time": 0,
            "modify_time": 1645516370,
            "create_time": 1645515705
        },
        {
            "product_id": "259607688740933",
            "product_status": 22,
            "item_biz_type": 13,
            "sp_biz_type": 17,
            "channel_cat_id": "ffff91d2b7f8f648e10cfa39bf43dc0f",
            "original_price": 0,
            "price": 50,
            "stock": 16,
            "title": "测试商品2",
            "district_id": 442000,
            "outer_id": "LQBFXXSCS01234",
            "stuff_status": 100,
            "express_fee": 0,
            "spec_type": 2,
            "source": 12,
            "online_time": 1645517183,
            "offline_time": 0,
            "sold_time": 0,
            "modify_time": 1645525011,
            "create_time": 1645517185
        }
    ]
}
上一页
查询商品详情
下一页
创建商品
Built with