Loading…

Initiate a fight order

Initiate a group buying, you are the group leader, others can join your group buying ```javascript WXAPI.pingtuanOpen(token, goodsId, extJsonStr) ``` + token user login credentials + goodsId commodity id + extJsonStr extended attributes (convert Json format data to string) ```json { "code": 0, "data": { "dateEnd": "2022-01-04 11:35:15", "goodsId": 6761, "goodsNumber": 0, "helpNumber": 0, "id": 16858, "orderNumber": 0, "pingtuanId": 3773, "status": 0, "statusStr": "In progress" }, "msg": "success" } ``` + id is the group number. Other users need to join your group based on this id. + goodsNumber total number of goods + dateEnd cut-off time + helpNumber Number of team members (including the team leader himself) + orderNumber total order number + pingtuanId is the ID of the group setting, corresponding to the id in `setting` + status 0 in progress 1 invalid 2 completed