# Products on the shelves

Note: Product has 2 copies of data, draft and online data Call the interface to add and modify the product data, the impact is only draft data, to tune the interface and audit, draft data will cover online data officially effective

Too many calls to the shelf interface may be pulled black It is recommended to check firstspu/getorspu/get_listCheck the fields in the itemedit_statusDo not resubmit if it is under review.

# Interface call request specification

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

# Request Parameter Sample

{
    "product_id":1234234,
    "out_product_id": "1234566"
}

# Return Package Example

{
    "errcode": 0,
    "errmsg":"ok"
}

# 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

# Return parameter specification

parameter type Introductions
Errcode number Error code
errmsg string Error message

# Return code

Return code Type of error
-1 System exception
-2 Token is too long
9401020 Wrong parameter
9401021 Call the api without permission
9401002 SPU does not exist
9401001 SPU already exists
9401023 SPU does not allow editing