文档
测试

查询充电订单Query charge order

POST
/queryChargeOrder

接口描述

应用场景Application scenarios 查询充电订单 Query charge order

请求参数

application/x-www-form-urlencoded
参数名
类型
描述
必填
token
String
身份标识 Identification
必填
orderNum
String
订单号 order number
可选
pageSize
Integer
每页数量 ,最大100条数据 Number each page
必填
pageNum
Integer
页码 Page numbe
必填
beginUpdateTime
Long
更新时间开始时间戳(毫秒)
必填
endUpdateTime
Long
更新时间结束时间戳(毫秒)
必填
payType
Integer
支付类型 Payment Types 月卡支付:5 Monthly card payment: 5 微信支付:6 WeChat Pay: 6 支付宝支付:7 Alipay payment: 7 翼支付支付: 16 Bestpay payment: 16
可选
userCardId
String
用户卡号(例:1D61643129) User card number (example: 1D61643129)
可选
userId
Integer
用户id User id
可选
statusesStr
String
状态(支持多状态筛选,每种状态之间用逗号分隔) 0 未付款 1 付款未充电 (道闸付款未开门) 2 充电中 3 正常充电结束 (道闸开门成功) 4 异常结束 5 叠加结束 State (supports multi-state sieving, each state is separated by a comma) 0 unpaid 1 Payment is not charged (Barrier Gate is not opened for payment) 2 Charging 3 Normal charging ends (Barrier Gate opens successfully) 4 abnormal ending 5 End of superposition
可选
estateId
Integer
小区id estate id
可选
phone
String
手机号 Phone Number
可选
deepPageToken
String
获取第一页数据不传,2页以上需要传回上一页结果返回的page内的deepPageToken,最后一页不返回deepPageToken
必填

响应参数

参数名
类型
描述
必填
data
object
数据字典
必填
list
list
消费明细列表
可选
userId
Integer
用户id User id
可选
portNum
Integer
插座号 Socekt No.
必填
status
Integer
支付状态 Payment status 0 未付款 Unpaid 1 付款未充电 (道闸付款未开门) Paid uncharged (barrier gate paid unopened) 2 充电中 Charging 3 正常充电结束 (道闸开门成功) Normal charge end(barrier gate open success) 4 异常结束 Abnormal end 5 叠加结束 Superposition end
可选
type
Integer
支付用途: Payment purpose 1、充值支付 1. Top up payment 2、代人充值 2. Top up for others 3、充电支付 3. Charge payment 4、支付购买月卡 Pay to buy monthly card
可选
targetUserId
Integer
到账用户id Account ID 1、自己充值就是支付用户Id Payment ID: Top up for own 2、代人充值就是到账用户Id Other ID: Top up for others
可选
payWay
Integer
支付方式 1、扣除微信充值余额 2、扣除微信赠送余额 3、扣除支付宝充值余额 4、扣除支付宝赠送余额 5、月卡支付 6、微信支付 7、支付宝支付 8 投币支付 9、商户余额(微信充值) 10、商户余额(微信充值赠送) 11、商户余额(支付宝充值) 12、商户余额(支付宝充值赠送) 13、优惠券
可选
payType
Integer
支付类型 1、刷卡 2、网络支付 3、网络投币 4、线下投币 5、密码
可选
cardId
Integer
电卡Id Electric card 1、代人充值,卡Id值为代充电卡Id Top up for others: 2、刷卡支付,卡Id值为所刷卡Id Swipe to charge:
可选
orderNum
String
订单号 order number
可选
ownerId
Integer
用户归属公众号Id User attribution official account ID
可选
workTime
Integer
购买工作时长 Buy working hours
可选
electricQuantity
Double
购买电量 (单位:度) Purchase electricity (unit: degree)
可选
payPrice
Double
消费金额 pay price
可选
actualElectricQuantity
Double
实际耗电量(单位:度) Actual power consumption (unit: degree)
可选
inTime
Long
插入时间 Interposition time
可选
originalPrice
Double
原始价格 original price
可选
discountDetail
String
折扣详情(JSON格式) Discount details (JSON format)
可选
provinceId
Integer
支付类型 Payment Types 月卡支付:5 Monthly card payment: 5 微信支付:6 WeChat Pay: 6 支付宝支付:7 Alipay payment: 7 翼支付支付: 16 Bestpay payment: 16
可选
provinceName
String
省份名称 Province name
可选
cityId
Integer
城市id City id
可选
cityName
String
城市名称 city name
可选
countyId
Integer
县区id County id
可选
countyName
String
县区名称 County name
可选
estateId
Integer
小区id estate id
可选
estateName
String
小区名称 Community name
可选
deviceId
String
设备id Device id
可选
deviceName
String
设备名 Equipment name
可选
updateTime
Long
更新时间 update time 单位:毫秒
可选
isCount
Integer
是否统计 0正常订单(会进入统计) 1不统计订单(不统计) 2退款订单(不进入统计) Whether to statistics 0 normal order (will enter the statistics) 1 Orders are not counted (not statistics) 2Refund order (do not enter statistics)
可选
balance
Double
余额 Balance
可选
actualTime
Integer
实际充电时间,单位:分钟 Actual charging time, unit: minute
可选
priceInfoType
Integer
0、自定义时间 1、功率分段 2、电量计费 99、未知 0, custom time 1. Power segmentation 2. Charge By Quantity of electricity 99、Unknown
可选
userSelectPriceType
Integer
用户选择的充电类型 0,关闭充满断电 1,开启充满断电 2、X元充满自停 0,Turn off the power when it's full 1,Turn on the power when it's full 2,X RMB will full and stops automatically
可选
priceType
Integer
0:关闭充满断电, 1:开启充满断电,2:X元充满自停 0,Turn off the power when it's full 1,Turn on the power when it's full 2,X RMB will full and stops automatically
可选
priceDetail
String
消费标准明细(JSON格式数据),单价,单价充电时间 Consumption standard details (JSON format data), unit price, unit price charging time
可选
priceBefore
Integer
0、预先付费,1、结束后付费 0, pay in advance, 1. pay after the end
可选
priceEndDetail
String
充电结束费用计算明细(JSON格式数据) when Charging end cost calculation details
可选
endType
Integer
结束原因 Reason for ending 1:计时结束 Timing ends 2:充满结束 full end 3:手动结束 Manual end 4:功率过大 Too much power 5:空载结束 End of no-load 6:中途异常拔掉插座 Unplug the socket abnormally midway 7:保险丝故障 Fuse failure 8:未连接电枪 The electric gun is not connected 9:叠加结束 End of stacking 其他值:未知 Other values: unknown
可选
paymentPrice
Double
付款金额 Payment amount
可选
chargeType
Integer
开电属性 Power-on attributes 0:时间 0: time 1:金额 1: amount 2:电量开电 2:Turn on of Quantity of electricity
可选
isAdvanceReceive
Integer
是否收了预收款 0:收了预收款 1:没收预收款 Whether to receive advance payment 0: received advance payment 1: No advance payment collection
可选
realTimeCharge
Integer
是否开启实时计费: 0、关闭 1、开启 Whether to enable real-time billing: 0, close 1. Turn on
可选
refundType
Integer
退费方式 0、退余额 1、原路退回 Refund method 0, refund the balance 1. return the money to the original path
可选
sysUserId
Integer
代表余额支付时扣除的是用户在哪个商户充值的余额 -1或者为空或者不存在该字段时:非代理商余额支付 When paying on behalf of the balance, the balance deducted from which merchant the user recharged -1 When the field is empty or does not exist: non agent balance payment
可选
deviceType
Integer
设备类型 Supported device types
可选
ownerName
String
公众号名 Official account name
可选
totalElectricMoney
Double
电费总额
可选
totalServiceFee
Double
服务费总额
可选
page
object
分页对象 page object
可选
pageNum
Integer
页码 Page numbe
可选
pageSize
Integer
每页数量 Number each page
可选
total
Long
总记录数 Total record number
可选
pages
Integer
总页数 Total page number
可选
deepPageToken
String
获取下一页数据token
必填
success
boolean
请求成功与否标识 Identification for request success or no
可选

说明 / 示例

{ "data": { "page": { "total": 8, "pages": 4, "pageSize": 2, "deepPageToken": "8@1@18@14@10@12@10@10@10@6@105@110@84@105@109@101@16@1@24@1@34@126@10@9@0@4@119@-87@79@-124@1@0@0@10@113@3@108@0@0@0@49@83@51@48@51@52@51@56@51@52@52@49@52@49@52@52@52@49@51@56@52@49@51@56@52@49@51@48@51@50@52@50@51@57@52@53@52@50@52@51@51@54@52@52@51@51@51@48@51@48@51@55@51@55@51@53@51@53@52@53@52@52@51@51@52@53@46@83@51@50@51@48@51@50@51@50@51@49@51@49@51@48@51@55@51@48@51@57@51@49@51@54@51@53@51@52@51@50@51@55@51@50@51@48@51@48@51@49@", "pageNum": 1 }, "list": [ { "actualElectricQuantity": 0.0, "actualMillisecondWorkTime": 1760358, "actualMinuteWorkTime": 29, "actualTime": 5, "balance": 1086.24, "balanceDeductionStatus": 0, "bigIntegerId": 30765185985038624380214401853, "chargeType": 1, "cityId": 270222, "cityName": "赣州市", "countyId": 270224, "countyName": "章贡区", "customerOrder": true, "deviceFamily": 0, "deviceId": 133979, "deviceName": "江南2号机", "deviceType": 8, "electricOrder": false, "endType": 1, "estateId": 1137, "estateName": "LMH测试小区1", "estatePaymentStatus": 0, "factory": 3, "freeTry": false, "fullBlackoutOrder": true, "id": -1933747395, "inTime": 1667784074452, "isAdvanceReceive": 0, "isCount": 0, "ledgerProcess": 0, "orderNum": "20221107092112347001", "orderType": 0, "originalPrice": 1.0, "overPower": 36, "ownerId": 5, "ownerName": "LHM company name", "payChannel": 6, "payEntrance": 10, "payPrice": 0.97, "payType": 2, "payWay": 1, "paymentPrice": 1.0, "peakPlainValley": 0, "portNum": 3, "powerOrder": false, "powerType": 0, "priceBefore": 1, "priceDetail": "{\"chargeType\":0,\"createUserId\":1146,\"deviceAssociateCount\":0,\"deviceFamily\":0,\"deviceType\":\"null\",\"fullBlackout\":1,\"fullPrice\":0,\"fullPriceYuan\":0.0,\"id\":19469,\"limitMoney\":100,\"maxTime\":6,\"minimumCharge\":0,\"minimumMoney\":0,\"name\":\"1元6分钟\",\"ownerId\":0,\"param\":6,\"peakPlainValley\":0,\"powerType\":0,\"price\":100,\"priceStandardCustomizeList\":[{\"endTime\":57599000,\"id\":3138,\"price\":100,\"priceStandardId\":19469,\"priceUnit\":\"yuan\",\"priceYuan\":1.0,\"startTime\":-28800000,\"time\":6,\"timeUnit\":\"hour\"}],\"priceStandardUniteList\":[{\"param\":6,\"price\":100}],\"realTimeCharge\":1,\"refundType\":1,\"remark\":\"\",\"totalElectricFee\":1,\"totalElectricFeeYuan\":1.0,\"type\":0,\"viewType\":1}", "priceInfoType": 0, "priceType": 1, "provinceId": 262698, "provinceName": "江西省", "realTimeCharge": 1, "refundType": 1, "settlementType": 0, "simId": "868626047309540", "status": 3, "stop": true, "sysUserId": -1, "timeOver": true, "type": 0, "updateTime": 1667784425127, "userChargerConfig": { "fullTime": 1800, "idleTime": 20, "maxWatt": 800, "minWatt": 20, "refundTime": 60000, "unusualTime": 3600000 }, "userId": 124007, "userSelectPriceType": 1, "workTime": 6 }, { "actualElectricQuantity": 0.0, "actualMillisecondWorkTime": 2017847, "actualMinuteWorkTime": 33, "actualTime": 2, "balance": 1000.0, "balanceDeductionStatus": 0, "bigIntegerId": 30765181539373302616212462392, "chargeType": 1, "cityId": 270222, "cityName": "赣州市", "countyId": 270224, "countyName": "章贡区", "customerOrder": true, "deviceFamily": 0, "deviceId": 133979, "deviceName": "江南2号机", "deviceType": 8, "electricOrder": false, "endType": 3, "estateId": 128, "estateName": "驴宝宝", "estatePaymentStatus": 0, "factory": 3, "freeTry": false, "fullBlackoutOrder": true, "id": -1933747400, "inTime": 1667783816964, "insurance": 0, "insurancePrice": 0.0, "isAdvanceReceive": 0, "isCount": 0, "ledgerProcess": 1, "odBlceFee": 0.0, "odFee": 0.0, "odNetFee": 0.0, "orderNum": "20221107091654272001", "orderType": 0, "orderWay": 1, "originalPrice": 1.0, "overPower": 36, "ownerId": 0, "ownerName": "江西驴宝宝通卡科技有限公司", "payChannel": 2, "payEntrance": 10, "payPrice": 0.33, "payType": 2, "payWay": 1, "paymentPrice": 1.0, "peakPlainValley": 0, "portNum": 3, "powerOrder": false, "powerType": 0, "priceBefore": 1, "priceDetail": "{\"chargeType\":0,\"createUserId\":1146,\"deviceAssociateCount\":0,\"deviceFamily\":0,\"deviceType\":\"null\",\"fullBlackout\":1,\"fullPrice\":0,\"fullPriceYuan\":0.0,\"id\":19469,\"limitMoney\":100,\"maxTime\":6,\"minimumCharge\":0,\"minimumMoney\":0,\"name\":\"1元6分钟\",\"ownerId\":0,\"param\":6,\"peakPlainValley\":0,\"powerType\":0,\"price\":100,\"priceStandardCustomizeList\":[{\"endTime\":57599000,\"id\":3138,\"price\":100,\"priceStandardId\":19469,\"priceUnit\":\"yuan\",\"priceYuan\":1.0,\"startTime\":-28800000,\"time\":6,\"timeUnit\":\"hour\"}],\"priceStandardUniteList\":[{\"param\":6,\"price\":100}],\"realTimeCharge\":1,\"refundType\":1,\"remark\":\"\",\"totalElectricFee\":1,\"totalElectricFeeYuan\":1.0,\"type\":0,\"viewType\":1}", "priceInfoType": 0, "priceType": 1, "provinceId": 262698, "provinceName": "江西省", "realTimeCharge": 1, "refundType": 1, "settlementRelationInfo": "[{\"addUserId\":2205,\"estateId\":128,\"isDeduction\":1,\"isPay\":2,\"payAccountId\":4367,\"payRateId\":3,\"proportion\":100,\"rate\":0.01,\"role\":1,\"type\":3}]", "settlementType": 2, "simId": "868626047309540", "status": 3, "stop": true, "sysUserId": -1, "thirdMno": "399210527608957", "timeOver": true, "totalPaymentPrice": 0.0, "type": 0, "updateTime": 1667783937420, "userChargerConfig": { "fullTime": 300, "idleTime": 20, "maxWatt": 400, "minWatt": 20, "refundTime": 100000, "unusualTime": 600000 }, "userId": 6325972, "userSelectPriceType": 1, "workTime": 6 } ] }, "success": true }