返回商品API

方法名称:get_product_list

请求地址:https://open.patpat.com/api/get_product_list

支持请求方式: GET POST

接口说明: 只获取在售状态的商品


系统级输入参数:

名称类型是否必须描述
_timestampstring请求时间戳
_signatureString请求签名
access_tokenString用户授权令牌

应用级输入参数:

名称 类型 是否必须 描述 示例值
page Integer 当前页码 1
page_size Integer 每页个数,最大100,默认20 20
product_name String 商品名称,模糊搜索 bottom
last_updated_at Date 上一次更新时间,获取增量,可在ERP记录上一次更新时间。 传入此参,可获得上一次更新后商家变更过的商品(请传入UTC时间) 2017-08-23
product_code String 商品编码搜索字段 17908260

接口返回结果:

字段 参考值 类型 描述
status 200 Integer 返回状态码
msg success String 接口返回信息
content 接口返回内容

数据返回示例:

{
    "status": 200,
    "msg": "success",
    "content": {
        "current_page": 1,
        "total_page": 12,
        "product_count": 24,
        "products": [
            {
                "product_code": 17003295,
                "supplier_code": "22222",
                "name": "222222222",
                "description": "222222222",
                "icon": "http://patpatdev.s3-us-west-1.amazonaws.com/product/599834738a7e3/1503147123.jpg",
                "updated_at": "2017-08-19 21:14:29",
                "created_at": "2017-08-19 12:52:24",
                "skus": [
                    {
                        "sku_code": 1700329501,
                        "supplier_code": "22",
                        "price": "22.00",
                        "icon": "http://patpatdev.s3-us-west-1.amazonaws.com/product/599834764e2b4/1503147126.jpg",
                        "attributes_description": "颜色:白色,童装尺码:59CM",
                        "updated_at": "2017-08-19 13:14:29",
                        "created_at": "2017-08-19 13:14:29",
                        "stock": 22
                    },
                    {
                        "sku_code": 1700329502,
                        "supplier_code": "2222",
                        "price": "22.00",
                        "icon": "http://patpatdev.s3-us-west-1.amazonaws.com/product/599834784e7b8/1503147128.jpg",
                        "attributes_description": "颜色:红色,童装尺码:59CM",
                        "updated_at": "2017-08-19 13:14:29",
                        "created_at": "2017-08-19 13:14:29",
                        "stock": 22
                    }
                ],
                "stock": 44
            },
            {
                "product_code": 17003282,
                "supplier_code": "20170819",
                "name": "Cool Basketball Printed Tank & Shorts for Baby Boys",
                "description": "* Stripes print\n* Material: 98% Cotton, 2% Polyester\n* Include: 1 x top, 1 x pants\n* Machine wash, tumble dry\n* Imported\n\nCute two-piece set featuring a cute graphic top and classic pants made of cotton material.",
                "icon": "http://patpatdev.s3.amazonaws.com/Product/40009/1688Y-SY-001-00005-001.jpg/1490787885.jpg",s
                "updated_at": "2017-08-19 11:24:28",
                "created_at": "2017-03-25 04:04:14",
                "skus": [
                    {
                        "sku_code": 1700328201,
                        "supplier_code": "篮球背心套-白80",
                        "price": "3.69",
                        "icon": "http://patpatdev.s3.amazonaws.com/Product/40009/1688Y-SY-001-00005-001-1.jpg/1490787886.jpg",
                        "attributes_description": "颜色:白色,童装尺码:90CM",
                        "updated_at": "2017-08-19 03:24:28",
                        "created_at": "2017-08-19 03:24:28",
                        "stock": 22
                    },
                    {
                        "sku_code": 1700328202,
                        "supplier_code": "篮球背心套-白90",
                        "price": "3.69",
                        "icon": "http://patpatdev.s3.amazonaws.com/Product/40009/1688Y-SY-001-00005-001-1.jpg/1490787886.jpg",
                        "attributes_description": "颜色:白色,童装尺码:100CM",
                        "updated_at": "2017-08-19 03:24:28",
                        "created_at": "2017-08-19 03:24:28",
                        "stock": 22
                    },
                    {
                        "sku_code": 1700328203,
                        "supplier_code": "篮球背心套-白100",
                        "price": "3.69",
                        "icon": "http://patpatdev.s3.amazonaws.com/Product/40009/1688Y-SY-001-00005-001-1.jpg/1490787886.jpg",
                        "attributes_description": "颜色:白色,童装尺码:110CM",
                        "updated_at": "2017-08-19 03:24:28",
                        "created_at": "2017-08-19 03:24:28",
                        "stock": 22
                    },
                    {
                        "sku_code": 1700328204,
                        "supplier_code": "篮球背心套-白110",
                        "price": "3.69",
                        "icon": "http://patpatdev.s3.amazonaws.com/Product/40009/1688Y-SY-001-00005-001-1.jpg/1490787886.jpg",
                        "attributes_description": "颜色:白色,童装尺码:110CM",
                        "updated_at": "2017-08-19 03:24:28",
                        "created_at": "2017-08-19 03:24:28",
                        "stock": 22
                    }
                ],
                "stock": 220
            }
        ]
    }
}


©2015 Interfocus Inc. All Rights Reserved