Loading…

User publishes products

Suitable for functions similar to Taobao and Xianyu, allowing users to publish their own products for sale ```javascript WXAPI.pushNewGoods({ token: ''000 }) ``` + token current user login credentials + pics product carousel, multiple pictures separated by commas + name product name + minPrice selling price + contentText product introduction + categoryId category ID + extJsonStr extended attribute, string in JSON format + stores inventory number + deleteOldPics Whether to delete the original product pictures when modifying the product, true means deletion, and the default is not deletion ["Please see here for parameter description"](##/%E5%89%8D%E7%AB%AFapi%E6%8E%A5%E5%8F %A3%E6%96%87%E6%A1%A3/%E5%95%86%E5%9F%8E%E6%A8%A1%E5%9D%97/putOrUpdateUsingPOST) This method is also used to edit products. If you are editing a product, you only need to add the `id` parameter, which means modifying the product information with the product id to this Products published and modified by users need to be reviewed by administrators before they can be put on the shelves. ["How to settle with users after the goods are sold, please check this tutorial"](https://www.yuque.com/apifm/doc/qytmng)