Loading…

Order list interface

```javascript WXAPI.orderList({ token: '' }) ``` + token current user login credentials + page gets the page data. If this parameter is not passed, the default value is 1. + pageSize How many records are obtained per page? If this parameter is not passed, the default is 50 + dateAddBegin order time, format 2018-05-16 15:39:38 + dateAddEnd End of order time, format 2018-05-16 15:39:38 + status Order status, -1 Closed 0 Pending payment 1 Paid and awaiting shipment 2 Shipped and awaiting confirmation 3 Confirmed receipt and awaiting evaluation 4 Evaluated + statusBatch pulls multiple status orders in batches. Multiple statuses are separated by commas, -1 Closed 0 Pending payment 1 Paid and awaiting shipment 2 Shipped and awaiting confirmation 3 Confirmed receipt and awaiting evaluation 4 Evaluated + statusOuterBatch pulls status_outer status in batches, separate multiple statuses with commas + goodsId commodity ID + type2 extType passed when creating an order + showAttendant Show order technician information + showExtJson whether to return extended attribute data + showShopInfo whether to return store data + mod 0 displays own orders (default is 0 if not passed); 1 Views all orders for the group leader; 2 Views the recipient's mobile phone number for his own orders; 3 Team orders (lower-level distributor orders); 4 Views orders I invite (promoter); 5 Views orders from my group users; 6 Solitaire leader views orders; 7 Technicians view orders for their own services; 8 Views orders for goods posted by users and purchased by others; 9 View orders paid by me; 10 Partners view the orders of their members ["Click here to view the request parameter description"](##/%E5%89%8D%E7%AB%AFapi%E6%8E%A5% E5%8F%A3%E6%96%87%E6%A1%A3/%E8%AE%A2%E5%8D%95%E7%AE%A1%E7%90%86/listUsingPOST_37) ```json { "code": 0, "data": { "totalRow": 40, "logisticsMap": { "1238758": { "address": "Detailed delivery address for express delivery", "areaStr": "West Lake District", "cityId": "330100000000", "cityStr": "Hangzhou City", "districtId": "330106000000", "id": 1238758, "linkMan": "Zhang San", "mobile": "13500000000", "provinceId": "330000000000", "provinceStr": "Zhejiang Province", "status": -1, "streetId": "330106109000", "type": 0 } }, "totalPage": 40, "orderList": [ { "amount": 189, "amountCard": 0, "amountCoupons": 0, "amountLogistics": 0, "amountReal": 189, "amountRefundTotal": 0, "amountTax": 0, "amountTaxGst": 0, "amountTaxService": 0, "autoDeliverStatus": 0, "dateAdd": "2021-12-10 14:09:50", "dateClose": "2021-12-10 14:20:50", "dateUpdate": "2021-12-10 14:21:10", "differHours": 101, "goodsNumber": 1, "hasRefund": false, "id": 1238758, "ip": "1.2.3.4", "isCanHx": false, "isDelUser": false, "isEnd": false, "isHasBenefit": false, "isNeedLogistics": true, "isPay": false, "isScoreOrder": true, "isSuccessPingtuan": false, "jd8Status": 0, "orderNumber": "21121014099510005", "orderType": 0, "periodAutoPay": false, "pid": 0, "qudanhao": "0005", "refundStatus": 0, "remark": "", "score": 1, "scoreDeduction": 0, "shopId": 0, "status": -1, "statusStr": "Order closed", "trips": 0, "type": 0, "uid": 1351478, "userId": 951 } ], "goodsMap": { "1238758": [ { "afterSale": "0,1,2", "amount": 189, "amountCoupon": 0, "amountSingle": 189, "amountSingleBase": 189,"barCode": "a0000000001", "buyRewardEnd": false, "categoryId": 1872, "cyTableStatus": 0, "dateAdd": "2021-12-10 14:09:50", "fxType": 2, "goodsId": 4232, "goodsName": "Rabbit fur vest", "goodsSubName": "bieming", "id": 1956214, "isProcessHis": true, "isScoreOrder": true, "number": 1, "numberNoFahuo": 1, "orderId": 1238758, "pic": "https://cdn.it120.cc/apifactory/2019/06/25/76d3c433-96ea-4f41-b149-31ea0983cd8f.jpg", "propertyChildIds": "", "purchase": false, "refundStatus": 0, "saleDateEnd": "2021-12-21 09:58:28", "score": 1, "shopId": 0, "status": -1, "type": 0, "uid": 1351478, "unit": "share", "userId": 951 } ] } }, "msg": "success" } ``` # orderList order basic data list + id order ID + orderNumber order number + amount payment + amountReal The actual amount to be paid + amountCoupons coupon deduction amount + amountCard membership card deduction amount + amountLogistics freight + deductionMoney discount amount + couponUserList The array of coupons that can be selected for this order + amountTotle total amount of order + payOnlineAmount Amount paid online + goodsNumber number of goods + score How many points need to be deducted + amountRefundTotal total refund amount + amountTax tax + amountTaxGst GST consumption tax + amountTaxService service fee + dateAdd order time + dateClose estimated order cancellation time (can remind the user to complete payment before this time) + differHours How many hours differ from now when the order is placed + qudanhao The last 4 digits of the order number + goodsNumber number of goods + hasRefund Is there a refund for this order? + ip Order IP address + isCanHx Whether the current order supports write-off + isEnd Whether the order is completed (no after-sales application is allowed after completion, it is recommended to hide the return button in this status) + isNeedLogistics whether express delivery is required + isPay Whether the current order has been paid + isScoreOrder Whether it is a points order (an order that uses points for payment) + remark user’s order notes + score How many points need to be deducted for this order? + scoreDeduction How many points were used for deduction on this order? + shopId The store ID of the order + status Order status -1 Closed order 0 Pending payment 1 Paid and awaiting shipment 2 Shipped and awaiting confirmation 3 Confirmed receipt and awaiting evaluation 4 Evaluated + trips tip amount + type 0 Ordinary order 1 Periodic order 2 Scan code to order 3 Jingdong vop order 4 Purchase from district management + refundStatus Return and exchange processing status 0 Not applied 1 Pending 2 Rejected by the merchant # Shipping address logisticsMap logisticsMap uses the order ID as the key, and the corresponding object is the delivery address information of the order. # Order product information goodsMap goodsMap uses the order ID as the key, and the corresponding object is the product information array of the order. + goodsName product name + goodsSubName subtitle of product name + pic product pictures + amountSingle product unit price + number number of items + amount total product price