库存报表接口.md 2.6 KB

1、查询库存报表

查询库存报表(/seller/getStorageStatisticsList)

请求参数

参数名称 参数类型 可否为空 示例 备注
page int 2 第几页
size int 10 每页条数
type int 1 1 日 2 周 3 月
reqTime int type为1或者3必填 日报示例20160521 月报示例 201605 日报或者月报日期, 周报则通过以下两个字段传入
beginTime string type为2必传 20160521 周报:开始日期
endTime string type为2必传 20160527 周报:结束日期
productSkn long 1222 skn
productSkc long 1222 skc
productSku long 1222 sku
factoryCode string 234234 厂家编号
sortId int 12 产品分类 最小的分类ID 如果用户只筛选一级品类传一级品类ID 如果用户筛选到二级品类传入二级品类ID,以此类推
shopsId int 17 店铺ID

注意,通用的头部没有列出。
请求示例 http://192.168.102.210:8088/platform/seller/getStorageStatisticsList

请求样例:
{
"beginTime": "20160516",
"endTime": "20160528",
"type":2
}
正常返回:
{
    "alg": "SALT_MD5",
    "code": 200,
    "data": {
        "additionInfo": {
            "dateId": 20170611,
            "storageTotalMoney": 66.33,
            "onSaleTotalNum": 1,
            "storageTotalNum": 2
        },
        "total": 1,
        "size": 10,
        "totalPage": 1,
        "page": 1,
        "list": [
            {
                "factoryCode": "厂家编号",
                "maxSortName": "鞋靴",
                "productSkc": 681266,
                "colorName": "白色",
                "sizeId": 22,
                "brandName": "brand名称",
                "smallSortId": 299,
                "colorId": 1,
                "storageAmount": 66.33,
                "maxSortId": 6,
                "shopName": "shopName",
                "middleSortId": 298,
                "purchasePrice": 22,
                "productSku": 2028386,
                "sizeName": "XL",
                "smallSortName": "厚底鞋",
                "brandId": 422,
                "dateId": 20170611,
                "storeNums": 2,
                "middleSortName": "厚底鞋",
                "productSkn": 512588578,
                "shopId": 222,
                "goodsName": "商品名称",
                "status": "1"
            }
        ]
    },
    "md5": "549ea7ea8118c8f7527010b8434469a3",
    "message": "storage statistics list"
}


异常返回:
{
    "code": 405,
    "data": [],
    "md5": "d751713988987e9331980363e24189ce",
    "message": "getOrdersGoodsRptForApi"
}