# Get SKU information
# Interface call request specification
Http request method: POST
https://api.weixin.qq.com/product/sku/get?access_token=xxxxxxxxx
# Request Parameter Sample
{
"out_sku_id": "1024",
"sku_id": 2352525,
"need_edit_sku": 1, // Default 0: Get online data, 1: Get draft data
"need_real_stock": 1 // Default 0: Gets draft inventory, 1: Get real inventory online
}
# Return Package Example
{
"errcode": 0,
"errmsg":"ok",
"data":
{
"product_id": 23423523452345235,
"out_product_id": "1234566",
"out_sku_id": "1024",
"sku_id": 2352525,
"thumb_img": " http://img10.360buyimg.com/n1/s450x450_jfs/t1/100778/17/13648/424215/5e590a40E2d68e774/e171d222a0c9b763.jpg",
"sale_price": 1300,
"market_price": 1500,
"stock_in a": 100,
"sku_code": "A24525252",
"barcode": 13251454,
"status": 5,
"sku_attrs":
[
{
"attr_key": "Choose a color,"
"attr_value": "Red and blue host."
},
{
"attr_key": "Choose a suit,"
"attr_value": "Host + Protective Case"
}
]
}
}
# Request Parameter Dxplaination
parameter | type | Is it necessary to fill out | Introductions |
---|---|---|---|
sku_id | number | no | out_sku_id、sku_id Either way, |
out_sku_id | string | no | out_sku_id、sku_Id choose two |
need_real_stock | number | no | Default 0: Gets draft inventory, 1: Get real inventory online |
need_edit_sku | number | no | Default 0: Get online data, 1: Get draft data |
# Return parameter specification
parameter | type | Introductions |
---|---|---|
Errcode | number | Error code |
errmsg | string | Error message |
data.product_id | number | Mini Store Internal Product ID |
data.out_product_id | string | Custom Product ID |
data.sku_id | number | Mini Store interior skuID |
data.out_sku_id | string | Merchant definition skuID, string |
data.thumb_img | string | sku small diagram |
data.sale_price | number | Sale Price in Units |
data.market_price | number | Field prices, divided into units |
data.stock_A | number | stock |
data.barcode | string | barcode |
data.sku_code | string | Product code |
data.status | number | The sku state |
data.sku_attrs[].attr_key | string | Attribute key (for attribute customization) |
data.sku_attrs[].attr_value | string | Property values (for property customization) |
# Enumerate - status
Enumeration value | describe |
---|---|
5 | On the shelf |
21 | False deletion |
# Return code
Return code | Type of error |
---|---|
-1 | System exception |
-2 | Token is too long |
9401020 | Wrong parameter |
9401006 | SKU does not exist |
9401005 | SKU already exists |
9401025 | SKU does not allow editing |