Loading…

Get the price and inventory of a certain SKU

There are two methods to get the product price of a specified sku: # Obtain directly from the product details interface The product details interface will return `skuList` data, which is a list of all available skus for the current product. In this data, there is price and inventory data. # Call the interface to obtain real-time prices and inventory ```javascript WXAPI.goodsPriceV2({ token: '000', goodsId: 1234, propertyChildIds: '' }) ``` + token current user login credentials + goodsId commodity id + propertyChildIds passes the sku information of the product (if there is no sku product, this parameter does not need to be passed) ```json { "code": 0, "data": { "fxType": 2, "goodsId": 810285, "id": 4444939, "originalPrice": 0, "pingtuanPrice": 0, "price": 299, "propertyChildIds": "30899:320215,30900:320217,30901:320220,", "propertyChildNames": "Network type: WIFI, new order prompt: beep sound, paper cutting method: manual tearing,", "score": 0, "stores": 999967, "userId": 951 }, "msg": "success" } ``` + originalPrice original price + pingtuanPrice group price + price current selling price + propertyChildIds SKU information + propertyChildNames SKU names + score How many points need to be deducted + stores current inventory number