Loading…

Order details interface

```javascript WXAPI.orderDetail(token, id, hxNumber, peisongOrderId) ``` + token user login credentials + id order ID + hxNumber verification code + peisongOrderId Order ID of delivery order You can pass any of the three parameters `id, hxNumber, and peisongOrderId` according to your convenience. ```json { "code": 0, "data": { "orderLogisticsShipperLogs": [], "orderInfo": { "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": 102, "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 }, "goods": [ { "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 } ], "logistics": { "address": "Detailed shipping address", "areaStr": "West Lake District", "cityId": "330100000000", "cityStr": "Hangzhou City", "code": "undefined", "dateUpdate": "2021-12-10 14:09:50", "districtId": "330106000000", "id": 1238758, "linkMan": "Chapter Three", "mobile": "13500000000", "provinceId": "330000000000", "provinceStr": "Zhejiang Province","status": -1, "streetId": "330106109000", "type": 0, "userId": 951 }, "extJson": {}, "orderLogisticsShippers": [], "user": { "nick": "gooking (founder of apifm)", "avatarUrl": "https://dcdn.it120.cc/cuser/951/2021/07/15/309311d6-52a3-46a4-931c-6458aff42f58.jpg" }, "logs": [ { "dateAdd": "2021-12-10 14:09:50", "id": 4228786, "orderId": 1238758, "type": 0, "typeStr": "Place an order", "uid": 1351478, "userId": 951 }, { "dateAdd": "2021-12-10 14:21:10", "id": 4228900, "orderId": 1238758, "type": -1, "typeStr": "Close order", "uid": 1351478, "userId": 951 } ] }, "msg": "success" } ``` # orderInfo basic information of the order + 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 + payOnlineAmount Amount paid online + deductionMoney discount amount + couponUserList The array of coupons that can be selected for this order + amountTotle total amount of order + 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 + peisongType shipping type - 3 represents flash delivery, `orderNumberOuter` is the order number on the flash delivery side, and `peisongStatus` is the delivery status as follows: * 20 orders are being dispatched (transfer orders are being dispatched) * 30 to be picked up (already in place) * 40 flash delivery in progress (cancellation application in progress, item return in progress, customer service intervention in order cancellation) * 50 completed (refunded) * 60 Canceled - 2 Meituan - 1 dada - 0 The merchant delivers it himself + peisongName delivery person’s name + peisongMobile delivery person contact number # goods Purchased product information + goodsName product name + goodsSubName subtitle of product name + pic product pictures + amountSingle product unit price + number number of items + amount total product price # logistics shipping address + provinceId province ID + provinceStr province name + cityId city ID + cityStr city name + districtId district and county ID + areaStr district and county name + streetId street ID + streetStr street name + address detailed address + code zip code + linkMan Contact + linkManMask Contact [Desensitization Display] + mobile phone number + mobileMask mobile phone number [desensitization display] + shipperCode courier company code + shipperName courier company name + trackingNumber tracking number + traces express waybill number logistics track # user Order user information + nick nickname + avatarUrl avatar # logs order operation log + type event type (-1 Close order 0 Place order 1 Pay 2 Ship 3 Confirm receipt 4 Evaluation 5 Seller changes price 6 Merchant settings transaction completed 7 Refund 8 Create sub-order 100 Add product 11 Pay on behalf of others) + typeStr Chinese description of event type + dateAdd operation time # extJson order extended attributes # peisongOrderInfo Delivery order information + orderNumber delivery order number