文档
测试

通过规格id请求规格数据

POST
http://test.ywzyit.com/api.html

请求参数

参数名
类型
描述
必填
token
string
示例:de6d8a1d7ae1116e6ecc1a6704934a84
必填
method
string
示例:goods.getproductinfo
必填
site_token
int
示例:123456
必填
id
int
示例:9298
必填

响应参数

参数名
类型
描述
必填
status
boolean
示例:true
必填
msg
string
示例:获取成功
必填
data
object
数据字典
必填
id
int
示例:9298
必填
goods_id
int
示例:1484
必填
barcode
object
示例:null
必填
sn
string
示例:P6079284369573
必填
price
string
示例:22.90
必填
costprice
string
示例:21.90
必填
mktprice
string
示例:0.00
必填
marketable
int
示例:2
必填
stock
int
示例:199
必填
freeze_stock
int
示例:0
必填
spes_desc
string
示例:颜色:米色小熊围巾
必填
is_defalut
int
示例:2
必填
image_id
string
示例:1cfdc110550bd8ebda3c97d52271911d
必填
isdel
object
示例:null
必填
name
string
示例:冬季可爱超萌小熊帽子围巾一体两件套加厚毛绒保暖围脖
必填
buy_limit
int
示例:0
必填
bn
string
示例:G6079284369405
必填
image_path
string
示例:http://img.ywzyit.com/static/uploads/images/2020/12/14/16079283865fd70a421550f.jpg
必填
total_stock
int
示例:199
必填
grade_price
array
数据列表
必填
grade_info
object
数据字典
必填
id
int
示例:3
必填
default_spes_desc
object
数据字典
必填
颜色
object
数据字典
必填
咖色小熊围巾
object
数据字典
必填
name
string
示例:咖色小熊围巾
必填
product_id
int
示例:9297
必填
米色小熊围巾
object
数据字典
必填
name
string
示例:米色小熊围巾
必填
is_default
boolean
示例:true
必填
灰色小熊围巾
object
数据字典
必填
name
string
示例:灰色小熊围巾
必填
product_id
int
示例:9299
必填
白色小熊围巾
object
数据字典
必填
name
string
示例:白色小熊围巾
必填
product_id
int
示例:9300
必填
amount
string
示例:22.90
必填
promotion_list
array
数据列表
必填
promotion_amount
int
示例:0
必填