# Get merchandise
# Dxplaination of Interface Call Request
http请求方式:POST
https://api.weixin.qq.com/shop/spu/get?access_token=xxxxxxxxx
# Example of request parameters
{
"product_id": 324545,
"out_product_id": "51514515",
"need_edit_spu": 1
}
# Examples of back-up
{
"errcode": 0,
"errmsg":"ok",
"spu":
{
"out_product_id": "1234566",
"title": "任天堂 Nintendo Switch 国行续航增强版 NS家用体感游戏机掌机 便携掌上游戏机 红蓝主机",
"path": "plugin-private://wx34345ae5855f892d/pages/productDetail/productDetail?productId=2176180",
"head_img":
[
"https://mmecimage.cn/p/wx77e672d6d34a4bed/HNTiaPWTllJ5R2pq9Jv9jRD5bZOWmq2svUUzJcZbcg"
],
"desc_info":
{
"desc": "xxxx",
"imgs":
[
"https://mmecimage.cn/p/wx77e672d6d34a4bed/HNTiaPWTllJ5R2pq9Jv9jRD5bZOWmq2svUUzJcZbcg"
]
},
"audit_info": {
"submit_time" : "2021-03-09 15:14:08",
"audit_time": "2021-03-09 15:16:08",
"reject_reason": "不通过",
},
"third_cat_id": 6666,
"brand_id": 2100000000,
"info_version": "xxx",
"create_time": "2020-12-25 00:00:00",
"update_time": "2020-12-26 00:00:00",
"skus":
[
{
"out_product_id": "1234566",
"out_sku_id": "1024",
"thumb_img": "https://mmecimage.cn/p/wx77e672d6d34a4bed/HNTiaPWTllJ5R2pq9Jv9jRD5bZOWmq2svUUzJcZbcg",
"sale_price": 1300,
"market_price": 1500,
"stock_num": 100,
"sku_code": "A24525252",
"barcode": "13251454",
"sku_attrs":
[
{
"attr_key": "选择颜色",
"attr_value": "红蓝主机"
},
{
"attr_key": "选择套装",
"attr_value": "主机+保护套"
}
]
}
]
}
}
# Dxplaination of request parameters
参数 | type | Is it compulsory? | Introductions |
---|---|---|---|
out_product_id | string | no | Choose between product_id and product_id |
product_id | number | no | Trade component platform internal product ID, or out_product_id |
need_edit_spu | number | no | Default 0: Get online data, 1: Get draft data |
# Dxplaination of callback parameters
参数 | type | Introductions |
---|---|---|
errcode | number | Error code |
errmsg | string | Error message |
spu.product_id | number | Trading Component Platform Internal Product ID |
spu.out_product_id | string | Merchant Custom Item ID |
spu.title | string | title |
spu.path | string | Bound Weixin Mini Program product path |
spu.head_img | string array | Main picture, multiple sheets, list |
spu.desc_info.desc | string | Product Details Graphic |
spu.desc_info.imgs | string array | Item Details Photo |
spu.audit_info | object | Product audit information |
spu.audit_info.submit_time | string | Last submitted, yyyy-MM-ddHH: mm: ss |
spu.audit_info.audit_time | string | Last audit time, yyyy-MM-dd HH: mm: ss |
spu.audit_info.reject_reason | string | Reason for rejection, only when edit_status is 3 |
spu.audit_info.audit_id | string | Audit Single ID |
spu.status | number | Item Status Online |
spu.edit_status | number | Draft status of commodities |
spu.third_cat_id | number | Third-level category ID |
spu.brand_id | number | Brand id |
spu.create_time | string | Created time |
spu.update_time | string | Updated time |
spu.info_version | string | Reserve fields for version control |
spu.skus[] | object array | sku array |
spu.skus[].out_product_id | string | Merchant Custom Item ID |
spu.skus[].out_sku_id | string | Merchant custom skuID |
spu.skus[].thumb_img | string | SCU diagram |
spu.skus[].sale_price | number | Sell prices divided into units |
spu.skus[].market_price | number | Market prices divided into units |
spu.skus[].stock_num | number | stock |
spu.skus[].barcode | string | barcode |
spu.skus[].sku_code | string | Product Codes |
spu.skus[].sku_attrs[].attr_key | string | Sales attribute key (custom) |
spu.skus[].sku_attrs[].attr_value | string | Sales attribute value (custom) |
scene_group_list | enum array | Product use scenarios |
# Enumeration - edit_status
枚举值 | describe |
---|---|
1 | Not reviewed |
2 | Under review |
3 | The audit failed |
4 | The audit was successful. |
# Enumeration - status
枚举值 | describe |
---|---|
0 | Initial value |
5 | Get on the shelves. |
11 | Take it off the shelves on her own. |
13 | Violations removed / Risk control removed |