文档
测试

商品添加

POST
https://ygp.sany.com.cn/product_api

接口描述

商品添加的接口

请求头

参数名
类型
描述
必填
Content-Type
string
application/json
必填

请求参数

参数名
类型
描述
必填
filters
object
数据字典
必填
Spu
object
SPU数据字典
必填
category_1
string
一级分类 示例:1
必填
category_2
string
二级分类
必填
category_3
string
三级分类
必填
name
string
商品名称 示例:精工 SSD机械表
必填
spu_no
string
商品货号 示例:S109-110-101
必填
product_attr
string
商品型号 示例:S109-110-101
必填
sale_price
string
售价 示例:5522
必填
item_price
string
划线价 示例:8000
必填
item_pcs
string
单位 示例:个
必填
real_sold
string
实际销量 示例:0
必填
set_sold
string
系统预设销量 示例:540
必填
together_time
string
拼单时效 示例:24
必填
together_members
string
完成拼单人数 示例:2
必填
server_item
array
服务保障 示例:7天退还,全场包邮
必填
is_show
boolean
是否显示(false不显示,true显示)
必填
ex_link
string
额外链接 示例:https://i-item.jd.com/4675659.html#crumb-wrap
必填
spu_img
array
商品图片的数组
必填
img_url
string
图片路径
必填
img_type
string
图片类型
必填
brand
string
品牌
必填
store_id
string
商家id
必填
Sku
array
SKU数据列表
必填
product_attr
string
规格 示例:蓝色+M
必填
single_price
string
单独售价 示例:36000
必填
sharing_price
拼单价 示例 54230
必填
img
string
图片的Base64编码
必填
imageType
string
图片类型 示例:1
必填
isDelete
string
是否删除(逻辑删除,0不删除,1删除)
必填
product_count
string
库存 示例:999
必填
sku_img
string
sku图片
必填
product_item_no
string
商品型号 示例:S109-110-101
必填

响应参数

参数名
类型
描述
必填
status
string
状态码 示例:200
必填
msg
string
响应消息 示例:add product success.
必填

说明 / 示例

```json { "Spu":{ "gCategory":"101010", "gName":"精工 SSD机械表", "gSubtitle":"一次性手套", "gBrand":"101", "gStore":"101", "gSPU":"1011", "gItemNO":"10011", "gImportance":"1", "gItemSalePrice":"55.22", "gItemPrice":"80.00", "gItemPcs":"个", "gRealSold":"0", "gSetSold":"540", "gTogetherTime":"24", "gTogetherMembers":"2", "gServerItem":"7天退还,全场包邮", "isShow":"1", "isDelete":"0", "exLink":"https://i-item.jd.com/4675659.html#crumb-wrap" }, "Sku":[ { "pSKU":"10106", "pSpec":"蓝色+M", "pItemNO":"100106", "pPrice":"36.00", "pQTY":"999", "pRealSold":"0", "pSetSold":"99", "isDelete":"0", "sku_img":[ { "img":"'''/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7EaVcWb5VU+0S/OUuVVPtEvzlIRpUlmuVVPtEvzlLlVT7RL85SEaRJZvlVT7RL85S5VU+0S/OUhGlSWa5VU+0S/OUuVVPtEvzlIRpElm+VVPtEvzlLlVT7RL85SEaVJZrlVT7RL85S5VU+0S/OUhGlSWa5VU+0S/OUuVVPtEvzlIQqrpc3iO80lGSXEkkknUk9aSiOf/Z\n\n\n\n\n \n\n\n'''", "imageType":"1", "isDelete":"0" } ] } ], } ``` 返回数据: ```json { "status": "200", "msg": "add product success." } ```