```javascript
WXAPI.goodsDetailV2({
id: 123,
token: '000',
showWholesale: false
})
```
+ id item number
+ token This parameter is not required and visitors do not need to fill it in; if this parameter is filled in, the browsing history will be recorded. Login users are recommended to pass this parameter.
+ showWholesale whether to return wholesale setting information
+ showBillDiscounts Show full discount settings
```json
{
"code": 0,
"data": {
"pics2": [
"https://dcdn.it120.cc/2020/04/15/0a86e7ef-3680-4f9f-a22c-2afb26672b7d.png"
],
"skuList": [
{
"fxType": 2,
"goodsId": 810285,
"id": 4359784,
"originalPrice": 800,
"pingtuanPrice": 0,
"price": 599,
"propertyChildIds": "30899:320216,30900:320218,30901:320221,",
"propertyChildNames": "Network type: 4G, new order prompt: human voice, paper cutting method: automatic paper cutting,",
"score": 0,
"stores": 999996,
"userId": 951
},
{
"fxType": 2,
"goodsId": 810285,
"id": 4359785,
"originalPrice": 800,
"pingtuanPrice": 0,
"price": 499,
"propertyChildIds": "30899:320216,30900:320218,30901:320220,",
"propertyChildNames": "Network type: 4G, new order prompt: human voice, paper cutting method: manual tearing,",
"score": 0,
"stores": 999999,
"userId": 951
},
{
"fxType": 2,
"goodsId": 810285,
"id": 4359786,
"originalPrice": 0,
"pingtuanPrice": 0,
"price": 499,
"propertyChildIds": "30899:320215,30900:320218,30901:320221,",
"propertyChildNames": "Network type: WIFI, new order prompt: human voice, paper cutting method: automatic paper cutting,",
"score": 0,
"stores": 999986,
"userId": 951
},
{
"fxType": 2,
"goodsId": 810285,
"id": 4359787,
"originalPrice": 0,
"pingtuanPrice": 0,
"price": 389,
"propertyChildIds": "30899:320215,30900:320218,30901:320220,",
"propertyChildNames": "Network type: WIFI, new order prompt: human voice, paper cutting method: manual tearing,",
"score": 0,
"stores": 999994,
"userId": 951
},
{
"fxType": 2,
"goodsId": 810285,
"id": 4359788,
"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
}
],
"subPics": [],
"logistics": {
"isFree": true,
"feeType": 0,
"feeTypeStr": "By number of pieces",
"details": [
{
"addAmount": 0,
"addNumber": 1,
"firstAmount": 8,
"firstNumber": 100,
"type": 0,
"userId": 951
}
]
},
"extJson": {},
"category": {
"icon": "https://cdn.it120.cc/apifactory/2019/04/09/8d32c254e2cb86d2d42c99b768d136b6.png",
"id": 1875,
"isUse": true,
"key": "4",
"name": "Special Offer Area",
"paixu": 0,
"pid": 0,
"shopId": 0,
"type": "",
"userId": 951
},
"pics": [
{
"goodsId": 810285,
"id": 4324619,
"pic": "https://dcdn.it120.cc/2020/04/15/0a86e7ef-3680-4f9f-a22c-2afb26672b7d.png",
"userId": 951
}
],
"content": "











",
"properties": [
{
"childrensCurGoods": [
{
"dateAdd": "2020-04-16 11:00:11",
"id": 320215,
"name": "WIFI",
"paixu": 0,
"propertyId": 30899,
"userId": 951
},
{
"dateAdd": "2020-04-16 11:00:15",
"id": 320216,
"name": "4G",
"paixu": 0,
"propertyId": 30899,
"userId": 951
}
],
"dateAdd": "2020-04-16 11:00:05",
"id": 30899,
"name": "Network type",
"paixu": 0,
"userId": 951
},
{
"childrensCurGoods": [
{
"dateAdd": "2020-04-16 11:00:38",
"id": 320217,
"name": "Didi sound",
"paixu": 0,
"propertyId": 30900,
"userId": 951
},
{
"dateAdd": "2020-04-16 11:00:44",
"id": 320218,
"name": "human voice",
"paixu": 0,
"propertyId": 30900,
"userId": 951
}
],
"dateAdd": "2020-04-16 11:00:31",
"id": 30900,
"name": "New order prompt",
"paixu": 0,
"userId": 951
},
{
"childrensCurGoods": [
{
"dateAdd": "2020-04-16 11:01:23",
"id": 320220,
"name": "Manually tear paper",
"paixu": 0,
"propertyId": 30901,
"userId": 951
},
{
"dateAdd": "2020-04-16 11:01:32",
"id": 320221,
"name": "Automatic paper cutting",
"paixu": 0,
"propertyId": 30901,
"userId": 951
}
],
"dateAdd": "2020-04-16 11:01:07",
"id": 30901,
"name": "Paper cutting method",
"paixu": 0,
"userId": 951
}
],
"basicInfo": {
"afterSale": "0,1,2",
"categoryId": 1875,
"commission": 0,
"commissionSettleType": 0,
"commissionType": 0,
"commissionUserType": 0,
"dateAdd": "2021-04-11 22:43:55",
"dateUpdate": "2021-12-07 16:07:00",
"fxType": 2,
"gotScore": 0,
"gotScoreType": 0,
"hasAddition": true,
"hasTourJourney": false,
"hidden": 0,
"id": 810285,
"kanjia": false,
"kanjiaPrice": 0,
"limitation": false,
"logisticsId": 386,
"maxCoupons": 1,
"miaosha": false,
"minBuyNumber": 1,
"minPrice": 299,
"minScore": 0,
"name": "Factory customized version of receipt printer",
"numberFav": 43,
"numberGoodReputation": 7,
"numberOrders": 8,
"numberReputation": 0,
"numberSells": 8,
"originalPrice": 0,
"overseas": false,
"paixu": 0,
"pic": "https://dcdn.it120.cc/2020/04/15/0a86e7ef-3680-4f9f-a22c-2afb26672b7d.png",
"pingtuan": false,
"pingtuanPrice": 0,
"priceShopSell": 0,
"propertyIds": ",30899,30900,30901,",
"recommendStatus": 1,
"recommendStatusStr": "recommend",
"seckillBuyNumber": 0,
"sellEnd": false,
"sellStart": true,
"shopId": 0,
"status": 0,
"statusStr": "on shelves",
"storeAlert": false,
"stores": 4999942,
"stores0Unsale": false,
"tags": "",
"type": 0,
"unit": "台",
"unusefulNumber": 0,
"usefulNumber": 0,
"userId": 951,
"vetStatus": 1,
"views": 9083,
"weight": 0
}
},"msg": "success"
}
```
# Return parameter description
## Category information category
+ id Category ID
+ name category name
## Carousel pics
Or use `pics2` directly, which has already helped you convert the icon address into a string array.
+ pic image address
## Basic information basicInfo
+ name product name
+ subName subtitle
+ tags product tags, multiple tags separated by commas in English
+ originalPrice original price
+ minPrice current price
+ stores current inventory
+ shopId The store ID of the store to which this product belongs
+ limitation Is the purchase limit enabled for this product?
+ miaosha true means flash sale product; false means not flash sale product
+ seckillBuyNumber seckill buy limit for each user
+ minScore How many points do you need to pay?
+ numberSells sales quantity
+ numberOrders number of orders
+ purchaseNotes Purchase Notes
+ characteristic features, selling points
+ vetStatus 0 Pending review 1 Review passed 2 Review failed
+ deliveryType delivery type: 0 not set 1 express only 2 self-pickup only 3 express + self-pickup
+ curUserHasFaved Whether the currently logged in user has favorited this product
## Product sku information skuList
If a product has several style combinations, there will be several records.
+ originalPrice original price
+ pingtuanPrice group price
+ price separate purchase price
+ Information corresponding to propertyChildIds sku
+ propertyChildNames sku name
+ score How many points need to be deducted
+ stores current inventory
## Size selector properties
Scatter the above style combination options into future data, so that the front end can make selection linkage
For example:
```json
"properties": [
{
"childrensCurGoods": [
{
"dateAdd": "2020-04-16 11:00:11",
"extJson": {},
"extJson2": {},
"id": 320215,
"name": "WIFI",
"paixu": 0,
"propertyId": 30899,
"userId": 951
},
{
"dateAdd": "2020-04-16 11:00:15",
"extJson": {},
"extJson2": {},
"id": 320216,
"name": "4G",
"paixu": 0,
"propertyId": 30899,
"userId": 951
}
],
"dateAdd": "2020-04-16 11:00:05",
"id": 30899,
"name": "Network type",
"paixu": 0,
"userId": 951
},
{
"childrensCurGoods": [
{
"dateAdd": "2020-04-16 11:00:38",
"extJson": {},
"extJson2": {},
"id": 320217,
"name": "Didi sound",
"paixu": 0,
"propertyId": 30900,
"userId": 951
},
{
"dateAdd": "2020-04-16 11:00:44",
"extJson": {},
"extJson2": {},
"id": 320218,
"name": "human voice",
"paixu": 0,
"propertyId": 30900,
"userId": 951
}
],
"dateAdd": "2020-04-16 11:00:31",
"id": 30900,
"name": "New order prompt",
"paixu": 0,
"userId": 951
},
{
"childrensCurGoods": [
{
"dateAdd": "2020-04-16 11:01:23",
"extJson": {},
"extJson2": {},
"id": 320220,
"name": "Manually tear paper",
"paixu": 0,
"propertyId": 30901,
"userId": 951
},
{
"dateAdd": "2020-04-16 11:01:32","extJson": {},
"extJson2": {},
"id": 320221,
"name": "Automatic paper cutting",
"paixu": 0,
"propertyId": 30901,
"userId": 951
}
],
"dateAdd": "2020-04-16 11:01:07",
"id": 30901,
"name": "Paper cutting method",
"paixu": 0,
"userId": 951
}
],
```
+ id specification ID
+ name specification name
+ childrensCurGoods What are the options for this specification?
- id option ID
- name option name
- The extended attribute data set in the background by extJson and extJson2 is returned as is
## Product details content
## Freight template logistics
+ feeTypeStr billing type, such as by number of pieces, by total quantity, by amount, etc.
+ Is Free shipping? If so, shipping will not be calculated.
+ details billing details, which is an array
- firstNumber initial number
- firstAmount initial amount
- addNumber increases the number
- addAmount increases the amount
## Product extended attributes extJson and extJson2
Return the extended attribute data filled in the background as it is
## Hierarchical pricing priceMultilevels
The object fields in the priceMultilevels array are described as follows:
+ goodsId commodity ID
+ propertyChildIds specification size information
+ propertyChildNames push a size name
+ type 0 The cumulative number of products in the same category reaches the standard 1 The cumulative quantity of the same product reaches the standard
+ number reaches the quantity
+ price price after discount