# Acquire inventory

# Interface call request specification

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

# Request Parameter Sample

{
    "product_id": 23423523452345235,
    "out_product_id": "1234566",
    "sku_id": 1343,
    "out_sku_id": "1024",
}

# Return Package Example

{
    "errcode": 0,
    "errmsg":"ok",
    "data": 
    {
       "stock_in a": 100
    }
}

# Request Parameter Dxplaination

parameter type Is it necessary to fill out Introductions
product_id number no Mini Store internal product ID, with out_product_Id choose two
out_product_id string no Merchant custom product ID, with product_Id choose two
sku_id number no Mini Store interior skuid, with out_sku_Id choose two
out_sku_id string no Merchant custom skuID, with sku_Id choose two

# Return parameter specification

parameter type Introductions
Errcode number Error code
errmsg string Error message
data.stock_A number Stock amount

# Return code

Return code Type of error
100004 Sku doesn't exist
100002 product_ID does not exist
-1 System exception