Loading…

Get commission records

```javascript WXAPI.fxCommisionLog({ token: '000' }) ``` + 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 + uids consumer user number + unit 0 cash rebate 1 point rebate 2 mjt + level distribution level, 1, 2, 3 + isSettlement true / false whether to settle + isCancel true / false whether it has been canceled + dateAddBegin rebate time, format 2018-05-16 + dateAddEnd rebate time, format 2018-05-16 + sellerMobile direct distributor user mobile phone number + dateType quick date filtering, if this parameter is passed, the above start and end dates are invalid, today: today yestoday: yesterday week: last 7 days month: this month + orderId order ID + orderType 0 internal order; 1 external order + orderGoodsId primary key of order details table ```json { "code": 0, "data": { "result": [ { "avatarUrls": "https://wx.qlogo.cn/mmopen/vi_32/Ok9O43CskonSu6aefKjuJzaQUGwjPboBXFovLUk5jSQsBAHiauKGeJicLj9Nc3lUUIMz4wpa7IuHM3d97M8BjJxA/132", "bili": 28, "dateAdd": "2020-09-21 10:00:27", "dateSettlement": "2020-09-21 10:00:27", "goodsName": "WiFi Cloud Label Machine FP-N20W", "isCancel": false, "isFixed": false, "isSettlement": true, "level": 1, "money": 97.86, "nicks": "㍈㌍㍃㌁㌛㌟㌈", "orderId": 655041, "orderType": 0, "property": "Docking service: system docking", "saleAmount": 0, "uids": 1383014, "unit": 0 } ], "totalRow": 8, "totalPage": 1, "orderList": [ { "amount": 1398, "amountCard": 0, "amountCoupons": 0, "amountLogistics": 0, "amountReal": 1398, "amountRefundTotal": 0, "amountTax": 0, "amountTaxGst": 0, "amountTaxService": 0, "autoDeliverStatus": 0, "dateAdd": "2020-09-21 10:00:18", "dateAutoEnd": "2020-10-21 10:32:34", "dateAutoReputation": "2020-09-28 10:32:34", "dateClose": "2020-09-21 10:05:19", "dateDelivery": "2020-09-28 10:32:34", "dateUpdate": "2020-10-21 11:20:01", "differHours": 12107, "goodsNumber": 2, "hasRefund": false, "id": 655041, "ip": "113.74.228.227", "isCanHx": false, "isDelUser": false, "isEnd": true, "isHasBenefit": true, "isNeedLogistics": true, "isPay": true, "isScoreOrder": false, "isSuccessPingtuan": false, "jd8Status": 0, "orderNumber": "20092110009510002", "orderType": 0, "payNumber": "ZF2009211670736031", "periodAutoPay": false, "pid": 0, "qudanhao": "0002", "refundStatus": 0, "remark": "", "score": 0, "scoreDeduction": 0, "shopId": 0, "status": 4, "statusStr": "Transaction successful", "trips": 0, "type": 0, "uid": 1383014, "userId": 951 } ], "goodsMap": { "590257": [ { "afterSale": "0,1,2", "amount": 700, "amountSingle": 700,"barCode": "P123456", "buyRewardEnd": false, "cyTableStatus": 0, "dateAdd": "2020-07-21 10:48:42", "dateReputation": "2020-07-31 16:20:02", "fxType": 2, "goodReputation": 2, "goodReputationRemark": "System default praise", "goodReputationStr": "good review", "goodsId": 122843, "goodsName": "Factory customized version of receipt printer", "id": 764483, "isProcessHis": true, "isScoreOrder": false, "number": 1, "numberNoFahuo": 0, "orderId": 590257, "pic": "https://dcdn.it120.cc/2020/04/15/0a86e7ef-3680-4f9f-a22c-2afb26672b7d.png", "priceId": 2050946, "property": "Network type: WIFI, new order prompt: human voice, paper cutting method: automatic paper cutting", "propertyChildIds": "30899:320215,30900:320218,30901:320221,", "purchase": false, "refundStatus": 0, "score": 0, "shopId": 0, "status": 4, "type": 0, "uid": 1383014, "userId": 951 } ] }, "userInviter": { "1383014": { "nick": "gooking (founder of apifm)", "uid": 1351478, "avatarUrl": "https://7.s2m.cc/cuser/951/2021/12/15/c365b6cb-f688-4298-8455-2e57a63d4bc5.jpeg" } }, "aggregate": { "sum_sale_amount": 0 } }, "msg": "success" } ``` + result commission record - avatarUrls avatar of the user who placed the order - uids order user number - nicks Nickname of the user who placed the order - bili rebate ratio - dateAdd transaction time - dateSettlement commission settlement time - goodsName product name - property product SKU information - isCancel whether to cancel the rebate - isSettlement whether the commission has been settled - level user relationship level (1 is direct push, 2 is indirect push) - money commission amount - orderId order ID - orderType 0 internal order; 1 external order - saleAmount sales - unit 0 Amount 1 Points 2 MTJ + orderList corresponds to the order information [see the order related interface for field descriptions] + goodsMap The product information corresponding to the order [see the order-related interface for field descriptions] + userInviter salesperson information [direct push user information] - nick nickname - uid user number - avatarUrl avatar + aggregate summary statistics - sum_sale_amount cumulative sales