# Get a single product
```javascript
WXAPI.pingtuanSet(goodsId)
```
+ goodsId commodity id
```json
{
"code": 0,
"data": {
"allowOverflow": false,
"allowRepetBuy": false,
"dateAdd": "2018-09-11 11:16:38",
"dateEnd": "2019-12-31 00:00:00",
"id": 511,
"numberDoing": 0,
"numberGoods": 10,
"numberOrder": 10,
"numberPersion": 10,
"numberSuccess": 0,
"openUserType": 1,
"openerSendScore": 0,
"pingtuanPrice": 0,
"refundType": 1,
"refundTypeStr": "Return to the original route",
"status": 0,
"timeoutHours": 24
},
"msg": "success"
}
```
+ allowOverflow Whether users are allowed to continue purchasing after forming a group
+ allowRepetBuy whether to allow the same user to purchase multiple items
+ dateEnd cut-off time
+ numberDoing The number of groups being assembled
+ numberGoods requires a certain number of goods to form a group
+ numberOrder requires a certain number of orders to form a group
+ numberPersion How many people are needed to form a group?
+ numberSucccess The number of groups that have been formed
+ openUserType 0: Any user can open a group; 1: Only users with membership level can open a group
+ openerSendScore Team leader bonus points
+ pingtuanPrice group price
+ refundType Refund method if the group is not formed: 0 Balance 1 Return to the original route
+ status 0 normal 1 disabled
+ timeoutHours timeout hours
# Get the settings of multiple products in batches
```javascript
WXAPI.pingtuanSets(goodsIds)
```
+ goodsIds is an array of product IDs, which is an array object, not a string. For example: [1,2,3]
```json
{
"code": 0,
"data": [
{
"allowOverflow": false,
"allowRepetBuy": false,
"dateAdd": "2018-09-11 11:16:38",
"dateEnd": "2019-12-31 00:00:00",
"goodsId": 6765,
"id": 511,
"numberDoing": 0,
"numberGoods": 10,
"numberOrder": 10,
"numberPersion": 10,
"numberSuccess": 0,
"openUserType": 1,
"openerSendScore": 0,
"pingtuanPrice": 0,
"refundType": 1,
"refundTypeStr": "Return to the original route",
"status": 0,
"timeoutHours": 24
}
],
"msg": "success"
}
```
+ allowOverflow Whether users are allowed to continue purchasing after forming a group
+ allowRepetBuy whether to allow the same user to purchase multiple items
+ dateEnd cut-off time
+ numberDoing The number of groups being assembled
+ numberGoods requires a certain number of goods to form a group
+ numberOrder requires a certain number of orders to form a group
+ numberPersion How many people are needed to form a group?
+ numberSucccess The number of groups that have been formed
+ openUserType 0: Any user can open a group; 1: Only users with membership level can open a group
+ openerSendScore Team leader bonus points
+ pingtuanPrice group price
+ refundType Refund method if the group is not formed: 0 Balance 1 Return to the original route
+ status 0 normal 1 disabled
+ timeoutHours timeout hours