# Update inventory

# Interface call request specification

Http request method: POST

# Request Parameter Sample

    "product_id": 23423523452345235,
    "out_product_id": "1234566",
    "sku_id": 1343,
    "out_sku_id": "1024",
    "type": 1,
    "stock_in a": 100

# Return Package Example

    "errcode": 0,
        "update_time": "2020-03-25 12:05:25"

# 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
type number yes 1: Full update 2: Incremental updates
stock_A number yes Full update, stock_Num must be greater than 0Incremental updates increase inventory by positive numbers and decrease inventory by negative numbers

# Return parameter specification

parameter type Introductions
Errcode number Error code
errmsg string Error message
data.update_time string Update time

# Return code

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