文档
测试

商品全量查询SPU

POST
https://thirdparty-stage.yanglaoban.com/thirdparty/api/mall/sku/queryspu

请求参数

参数名
类型
描述
必填
page
页码 示例:1
必填
size
String
每页条数 示例:10
必填
skucode
String
商品编码
必填
starttime
date
开始时间
必填
endtime
date
结束时间
必填

响应参数

参数名
类型
描述
必填
code
int
状态码 示例:0
必填
message
string
信息 示例:
必填
data
object
返回数据
必填
rows
array
数据列表
必填
skucode
string
商品编码 示例:7310304030000
必填
skuname
string
商品名称 示例:试一试
必填
skutype
int
商品类型 3
必填
multispecflag
boolean
是否多规格 true:是 ,false:否
必填
spec
string
规格 示例:
必填
categoryid
string
后端分类ID 示例:14010200
必填
salesunit
string
基本单位 示例:袋
必填
purchaseunit
string
采购单位 示例:袋
必填
status
int
状态 -1:淘汰 1:正常
必填
saleflag
int
是否可售 0:否 1 :是
必填
safepercent
int
安全库存比例 示例:30
可选
weightflag
boolean
是否称重商品(true-称重 false-非称重)
必填
balancerefund
boolean
是否支持称重退差价 (false 不支持 true支持)
必填
barcode
string
条码 示例:7310304040000747
必填
listimg
string
商品列表图 示例 "https://image.yanglaoban.com/FiqoGWDY2zuHnDW5YWLSjmv27gbd,https://image.yanglaoban.com/Fo2W4QJUsR0WiPqVkvdhI_jmJLZR,https://image.yanglaoban.com/Ftqx4Q6GGRTFAGSiu0ztJ1EIncjM,https://image.yanglaoban.com/Fo2W4QJUsR0WiPqVkvdhI_jmJLZR,https://image.yanglaoban.com/Ftqx4Q6GGRTFAGSiu0ztJ1EIncjM,https://image.yanglaoban.com/Ftqx4Q6GGRTFAGSiu0ztJ1EIncjM"
可选
mainimg
string
商品主图 示例:"https://image.yanglaoban.com/FiqoGWDY2zuHnDW5YWLSjmv27gbd"
可选
salesprice
decimal
店铺售价 示例:12
必填
shelflife
int
示例:0
可选
allotflag
boolean
是否分配到门店 false:否 true:是
必填
spuskus
array
数据列表
必填
skucode
string
商品编码 示例:7310304050000
必填
skuname
string
商品名称 示例:试一试
必填
subtitle
string
商品副标题 示例:
可选
skutype
int
商品类型 4
必填
multispecflag
boolean
是否多规格 true:是 ,false:否
必填
brand
string
品牌 示例:
可选
spec
string
规格 示例:中杯
必填
categoryid
string
分类ID 示例:14010200
必填
categoryname
string
分类名称 示例:眼影
可选
salesunit
string
基本单位 示例:袋
必填
purchaseunit
string
采购单位 示例:袋
必填
status
int
状态 示例:1
必填
saleflag
int
是否可售 示例:1
必填
safepercent
int
安全库存比例 示例:30
可选
weightflag
boolean
是否称重商品(true-称重 false-非称重)
必填
balancerefund
boolean
是否支持称重退差价 (false 不支持 true支持)
必填
barcode
string
条码 示例:7310304050000968
必填
innerbarcode
string
内部条码 示例:0000014035
必填
listimg
string
商品列表图
可选
detailimg
string
商品主图
可选
location
string
产地 示例:
必填
salesprice
decimal
店铺售价 示例:12
必填
shelflife
int
保质期天数 示例:0
可选
allotflag
boolean
是否分配到门店 false:否 true: 是
必填
scribingprice
decimal
指导价 示例:0
可选
grossweight
decimal
重量
必填
shelflifeflag
boolean
保质期天数 示例:false
可选
scribingprice
decimal
指导价 示例:0
可选
innerbarcode
string
内部条码
必填
brand
String
品牌
可选
subtitle
string
副标题
可选
virtualflag
Boolean
是否虚拟商品 true false
必填
detailimg
String
详情图片
必填
total
string
总数 示例:1
必填
page
int
页数 示例:1
必填
size
int
每页条数 示例:10
必填
traceid
string
链路ID 示例:c061dcf621606ae3
必填
now
date
时间戳 示例:1643015741159
必填

说明 / 示例

响应参数: {"code":0,"message":"","data":{ "rows": [ { "skucode": "7310304030000", "skuname": "试一试", "skutype": 3, "multispecflag": false, "spec": "中杯", "categoryid": "14010200", "categoryname": "眼影", "salesunit": "袋", "purchaseunit": "袋", "status": 1, "saleflag": 1, "scaleflag": 1, "safepercent": 30.0000, "weightflag": false, "balancerefund": false, "barcode": "7310304040000747", "listimg": "", "detailimg": "", "salesprice": 12.0000, "shelflife": 0, "createdat": 1642761669000, "panelflag": "1", "panelshowflag": 1, "allotflag": false, "jointoperation": false, "recommendtype": 0, "spuskus": [ { "skucode": "7310304050000", "skuname": "试一试", "subtitle": "", "skutype": 4, "multispecflag": false, "brand": "", "spec": "中杯", "categoryid": "14010200", "categoryname": "眼影", "salesunit": "袋", "purchaseunit": "袋", "status": 1, "saleflag": 1, "scaleflag": 1, "safepercent": 30.0000, "weightflag": false, "balancerefund": false, "barcode": "7310304050000968", "innerbarcode": "0000014035", "barcodelist": [ "7310304050000968" ], "listimg": [], "detailimg": [], "location": "", "salesprice": 12.0000, "shelflife": 0, "ingredient": "", "createdat": 1642761669000, "panelflag": "0", "panelshowflag": 0, "allotflag": false, "grossprofitrate": 0.000, "vendorid": "", "grossweight": 3.000, "validtype": 0, "verificationtype": 0, "verificationmax": 0, "jointoperation": false, "recommendtype": 0, "moveavgprice": 3.0000, "shelflifeflag": false, "shelflifewarning": 0, "stockunit": "袋", "wholesaleunit": "袋", "deliveryunit": "袋", "purchaseunitrate": 1.0000, "salesunitrate": 1.0000, "stockunitrate": 1.0000, "wholesaleunitrate": 1.0000, "deliveryunitrate": 1.0000, "supplytype": 1, "promoreason": "", "wholesaleflag": 1, "shoppriceflag": true, "pospriceflag": true, "scribingprice": 0.0000, "repetition": false, "freighttemplate": "1", "boxgauge": "", "taxtype": 3 }, { "skucode": "7310304060000", "skuname": "试一试", "subtitle": "", "skutype": 4, "multispecflag": false, "brand": "", "spec": "大杯", "categoryid": "14010200", "categoryname": "眼影", "salesunit": "袋", "purchaseunit": "袋", "status": 1, "saleflag": 1, "scaleflag": 1, "safepercent": 30.0000, "weightflag": false, "balancerefund": false, "barcode": "7310304060000532", "innerbarcode": "0000014036", "barcodelist": [ "7310304060000532" ], "listimg": [], "detailimg": [], "location": "", "salesprice": 15.0000, "shelflife": 0, "ingredient": "", "createdat": 1642761669000, "panelflag": "0", "panelshowflag": 0, "allotflag": false, "grossprofitrate": 0.000, "vendorid": "", "grossweight": 5.000, "validtype": 0, "verificationtype": 0, "verificationmax": 0, "jointoperation": false, "recommendtype": 0, "moveavgprice": 6.0000, "shelflifeflag": false, "shelflifewarning": 0, "stockunit": "袋", "wholesaleunit": "袋", "deliveryunit": "袋", "purchaseunitrate": 1.0000, "salesunitrate": 1.0000, "stockunitrate": 1.0000, "wholesaleunitrate": 1.0000, "deliveryunitrate": 1.0000, "supplytype": 1, "promoreason": "", "wholesaleflag": 1, "shoppriceflag": true, "pospriceflag": true, "scribingprice": 0.0000, "repetition": false, "freighttemplate": "1", "boxgauge": "", "taxtype": 3 }, { "skucode": "7310304070000", "skuname": "试一试", "subtitle": "", "skutype": 4, "multispecflag": false, "brand": "", "spec": "超大杯", "categoryid": "14010200", "categoryname": "眼影", "salesunit": "袋", "purchaseunit": "袋", "status": 1, "saleflag": 1, "scaleflag": 1, "safepercent": 30.0000, "weightflag": false, "balancerefund": false, "barcode": "7310304070000416", "innerbarcode": "0000014037", "barcodelist": [ "7310304070000416" ], "listimg": [], "detailimg": [], "location": "", "salesprice": 19.0000, "shelflife": 0, "ingredient": "", "createdat": 1642761669000, "panelflag": "0", "panelshowflag": 0, "allotflag": false, "grossprofitrate": 0.000, "vendorid": "", "grossweight": 9.000, "validtype": 0, "verificationtype": 0, "verificationmax": 0, "jointoperation": false, "recommendtype": 0, "moveavgprice": 9.0000, "shelflifeflag": false, "shelflifewarning": 0, "stockunit": "袋", "wholesaleunit": "袋", "deliveryunit": "袋", "purchaseunitrate": 1.0000, "salesunitrate": 1.0000, "stockunitrate": 1.0000, "wholesaleunitrate": 1.0000, "deliveryunitrate": 1.0000, "supplytype": 1, "promoreason": "", "wholesaleflag": 1, "shoppriceflag": true, "pospriceflag": true, "scribingprice": 0.0000, "repetition": false, "freighttemplate": "1", "boxgauge": "", "taxtype": 3 } ], "shelflifeflag": false, "shelflifewarning": 0, "stockunit": "袋", "wholesaleunit": "袋", "deliveryunit": "袋", "purchaseunitrate": 1.0000, "salesunitrate": 1.0000, "stockunitrate": 1.0000, "wholesaleunitrate": 1.0000, "deliveryunitrate": 1.0000, "promoreason": "", "wholesaleflag": 1, "shoppriceflag": true, "pospriceflag": true, "scribingprice": 0.0000, "repetition": false } ], "total": "43", "page": 1, "size": 1 },"traceid":"45f6f0ffe1b44ad8","now":1643016537763}