# Batch Acquisition of SKU Information

# Interface call request specification

Http request method: POST
https://api.weixin.qq.com/product/sku/get_list?access_token=xxxxxxxxx

# Request Parameter Sample

{
    "product_id": 23423523452345235,
    "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",
    "skus":
    [
      {
         "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,
         "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
product_id number yes Mini Store Internal Product ID
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
skus[].product_id number Mini Store Internal Product ID
skus[].out_product_id string Custom Product ID
skus[].sku_id number Mini Store interior skuID
skus[].out_sku_id string Merchant definition skuID, string
skus[].thumb_img string sku small diagram
skus[].sale_price number Sale Price in Units
skus[].market_price number Field prices, divided into units
skus[].stock_A number stock
skus[].barcode string barcode
skus[].sku_code string Product code
skus[].status number The sku state
skus[].sku_attrs[].attr_key string Attribute key (for attribute customization)
skus[].sku_attrs[].attr_value string Property values (for property customization)

# Enumerate - status

Enumeration value describe
0 Not on shelves
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