```javascript
WXAPI.orderStatisticsv2({
token: '000',
hasRefund: true
})
```
+ token current user login credentials
+ If hasRefund is not passed, this parameter will be counted for all orders; if `true` is passed, it will be counted for orders with refunds; if `false` is passed, it will be counted for orders without refunds.
```json
{
"code": 0,
"data": {
"count_id_no_reputation": 10,
"count_id_wait_to_peisong": 0,
"count_id_no_transfer": 7,
"count_id_close": 1,
"count_id_no_pay": 0,
"count_id_no_confirm": 0,
"count_id_success": 0,
"count_id_peisonging": 0
},
"msg": "success"
}
```
+ count_id_no_reputation Number of orders to be evaluated
+ count_id_wait_to_peisong Number of orders to be delivered
+ count_id_no_transfer Number of orders to be shipped
+ count_id_close Number of closed orders
+ count_id_no_pay Number of orders to be paid
+ count_id_no_confirm Number of receipt orders to be confirmed
+ count_id_success Number of successful (evaluated) orders
+ count_id_peisonging Number of orders being delivered
+ totalNeedPayScores counts the total number of points that need to be deducted for the current order to be paid.