文档
测试

查询设备插座状态Query the status of equipment sockets

POST
/deviceStatus

接口描述

应用场景Application scenario 查询设备插座状态 Query the status of equipment sockets

接口频率

IP维度=60次/60秒,请合理控制频率

请求参数

application/x-www-form-urlencoded
参数名
类型
描述
必填
token
String
身份标识 Identification
必填
deviceId
String
设备id 即设备IMEI号,simId Device ID Device IMEI
可选
qcode
String
驴充充二维码 deviceId与qcode二者必传一个 若同时传以deviceId为准
可选

响应参数

参数名
类型
描述
必填
data
object
必填
price
object
消费标准
可选
id
Integer
消费标准id Consumption standard
必填
name
String
消费标准名称 Name of Consumption standard
必填
price
Integer
价格(单位:分) Price (unit: cent)
必填
time
Integer
充电时长 Charging time
必填
device
object
设备
可选
data
object
可选
device
object
设备
可选
address
String
地址 Location
可选
chargePriceId
boolean
消费标准Id Consumption standard ID
可选
cityId
Integer
城市id City ID
必填
cityName
String
城市名称 City
必填
countyId
Integer
县区id Country ID
必填
countyName
String
县区名称 Country
必填
deviceType
Integer
设备类型9、14、16、17、28、29:2路设备(2-Way Device) 1、2、3、7、8、19、25、26、33、34:10路充电桩(10-Way Charging Pile) 5:单路大功率(Single Way High Power)27:12路设备(12-Way Device) 12、18、24:20路设备(20-Way Device) 20、35、121:汽车-交流设备122:汽车一体直流桩(DC EV Charging Pile) 4、10:2路小功率(2-Way Standard Power) 11、15:配套-门禁设备(Matching-Access Control Device) 21:直流6路(6-Way DC Charging Pile) 22:8+2充电柜(8+2 Charging Cabinet
必填
estateId
Integer
小区ID Community ID
必填
estateName
String
小区名称 Community
必填
factory
Integer
工厂类型 Factory Type
必填
hardwareId
Integer
硬件ID Hardware ID
必填
id
Integer
设备id Device ID
必填
inTime
Date
插入时间 Start Time
必填
name
String
设备名称 Device Name
必填
online
Integer
在线状态 Status 0离线 Offline 1在线 Online
必填
ownerId
Integer
代理商ID(Agent ID)
必填
payWay
Integer
支付方式(Payment Method) 1(0001)表示余额(Balance) 2(0010)表示支付宝(Alipay) 3 (0011) 表示支持余额和支付宝(Balance and Alipay) 4 (0100) 表示微信 (Wechat Pay)
必填
place
Integer
安装地点(Installation Location) 0 其他(Others) 1 车棚 (Vehicle Shed) 2 地下车库(Underground Parking Lot) 3 公共街道(Public Street)
必填
portNumber
Integer
插座数(Number of Sockets)
必填
provinceId
Integer
省份id(Province ID)
必填
provinceName
String
省份名称(Province)
必填
simId
String
sim卡标识(Sim Card Identification)
必填
simProvide
Integer
运营商 1:移动 2:电信 3:联通 Operator 1: Mobile 2: Telecom 3: Unicom
必填
status
Integer
设备状态(Device Status) 0:注册(Register) 1:上线 (Online) 2:禁用(Forbidden) 3:设备故障(Fault) 4:已拆机(Disassembled) 5:测试设备(Test Device)
必填
updateTime
Date
更新时间(Update Time)
必填
ports
数组
例:10路设备,此字段返回的数组有11个,前端轮循时应该忽略第一个值,即不应从数组0轮循显示,应该从数组1开始 For example, 10-way devices. There are 11 arrays returned in this field. The first value should be ignored in front-end round robin, that is it should not be displayed in turn 0 of the array, but should start with array 1.
可选
errorMsg
String
错误消息
必填
success
boolean
请求成功与否标识 Identification for request success or no
可选
priceDetail
object
收费明细
可选
chargeType
Integer
收费方式(Payment Method) 0、限定充值余额(Max Top-up Balance) 1、预收款(Prepaid
可选
coinParam
Integer
投币用第一档参数 Coin operated: First gear parameter
可选
createUserId
Integer
创建用户ID Create User ID
可选
deviceType
String
所支持的设备类型 Supported device types
可选
electricPrice
Integer
电费单价 单位:分 Unit price of electricity Unit: cents
可选
electricServiceFee
Double
充电服务费 单位:分 Charging service fee Unit: points
可选
fullBlackout
Integer
0、关闭充满断电(Turnoff ‘Power off when full’) 1、开户充满断电(Turnon ‘Power off when full’) 2、开户充满断电并选择X元充满(Turnon ‘Power off when full’, Set ‘ Pay X USD Charge Full’)
可选
fullPrice
Integer
X元充满价格 单位:分 Full Charge Price, Unit: Cent
可选
fullPriceYuan
Integer
X元充满价格 单位:元 Full Charge Price, Unit: USD
可选
id
Integer
消费标准id Consumption Standard iD
可选
limitMoney
Integer
最低余额 单位:分 Minimum Balance Unit: Cent
可选
limitMoneyYuan
Integer
最低余额 单位:元 Minimum balance Unit:USD
可选
maxTime
Integer
最大允许充电时长 单位:分钟 Maximum allowable charging time Unit: Minutes
可选
name
String
消费标准名称 Consumption Standard Name
可选
noticeList
Json
消费标准详细介绍 Consumption Standard Description
可选
ownerId
Integer
公众号ID Official Account ID
可选
priceStandardCustomizeList
Json
自定义时间详情list Custom time details list
可选
priceStandardUniteList
Json
消费标准单价详情list Consumption standard unit price details list
可选
endTime
Long
结束时间(End time)
可选
fullBlackoutForButton
Integer
按钮上是否开始充满断电 Activate “ Power off when full” by press the button 0、关闭充满断电(Turnoff “ Power off when full”) 1、开户充满断电(Turnon “ Power off when full”) 2、开户充满断电并选择X元充满(Turnon“ Power off when full”and set ‘ Pay X USD Charge Full’)
可选
id
Integer
可选
isAdvanceReceive
Integer
是否收了预收款(Accounts payable (YES OR NOT))
可选
originalMoney
Double
是否收了预收款(Accounts payable (YES OR NOT))
可选
param
Integer
元素(Element)
可选
paramUnit
String
元素单位(Element Unit)
可选
paramUnitName
String
时间名称(分、小时) Time’s name (Minute、Hour)
可选
paramView
Double
结果单位显示 Result unit display
可选
price
Integer
单价 Unit Price
可选
pricePay
Double
实际支付价格 Actual paid price
可选
priceUnit
String
单价单位 Unit of Price
可选
priceUnitName
String
单价单位名称 Name of Unit Price
可选
priceView
Double
结合单位显示的单价 Price Display ( Values and units)
可选
startTime
Long
开始时间 Start Time
可选
realTimeCharge
Integer
是否开户实时计费 Real-time billing 0、关闭(Turnoff) 1、开启(Turnon)
可选
refundName
退款方式说明(Refund Statement)
可选
refundType
Integer
退款方式(Refund Method) 0、退余额(Refund Balance) 1、原路退回(Refund to the payment account
可选
remark
备注(Note)
可选
totalElectricFee
每度电总费用(Total cost per kilowatt-hour)
可选
totalElectricFeeYuan
Integer
每度电总费用 单位:元(Total cost per kilowatt-hour Unit: USD)
可选
type
Integer
消费标准类型(Consumption Standard Type) 0、自定义时间(Custom time) 1、功率分段(Power) 2、电量计费(KWH)
可选
viewType
Integer
显示开电方式(Power-on display mode) 1、时间(Time) 2、金额(Money) 3、电量(Electricity)
可选
success
boolean
请求成功与否标识 Identification for request success or no
必填

说明 / 示例

**特别说明(请仔细阅读)**: 对应插座号状态 0 空闲 1 充电中 -1 故障 Corresponding socket status: 0 idle, 1 charging, -1 failure 例:10路设备,此字段返回的数组有11个,前端轮循时应该忽略第一个值,即不应从数组0轮循显示,应该从数组1开始 For example, 10-way devices. There are 11 arrays returned in this field. The first value should be ignored in front-end round robin, that is it should not be displayed in turn 0 of the array, but should start with array 1. "ports": [0(此值应该显示时被忽略),0,0,0,0,0,0,0,0,0,0], "ports": [0 (this value should be ignored when it should be displayed), 0beijin0re0re0re0pence0pence0pence0re0jing0re0covery0] 返回示例 Return the example ``` { "data": { "price": { "id":26, "name":"1元12分钟(12 mins for 1 USD)", "price":100, "time":12 }, "priceDetail":{ "chargeType":1, "coinParam":100, "createUserId":1918, "deviceType":"[7,1]", "fullBlackout":2, "fullPrice":300, "fullPriceYuan":3, "id":285, "limitMoney":123, "limitMoneyYuan":1.23, "maxTime":800, "name":"功率-金额7_开充满X元自停,开启实时计费,原路退回(Power-Money 7_Poweroff when full with X USD, enable real-time billing, refund back to payment account)", "noticeList":[ "设备开启了3.0元充满自停(Active Poweroff when full with 3 USD)", "1元/1小时(0瓦-25瓦)(1USD/HOUR (0W-25W))" ], "ownerId":0, "priceStandardUniteList":[ { "fullBlackoutForButton":2, "isAdvanceReceive":1, "originalMoney":0, "param":300, "paramUnitName":"3.0元", "pricePay":3, "priceUnitName":"充满自停(Poweoff when full)" }, { "fullBlackoutForButton":0, "isAdvanceReceive":1, "originalMoney":1, "param":100, "paramUnit":"yuan(USD)", "paramUnitName":"元(USD)", "paramView":1, "pricePay":1, "priceUnitName":"按功率计费(Charge by power)" } ], "realTimeCharge":1, "refundName":"原路退回(Refund to payment account)", "refundType":1, "remark":"", "totalElectricFee":0, "totalElectricFeeYuan":0, "type":1, "viewType":2, "windowNotice":"您选择的是充满自停方式充电,设备最多可充:3.0元,中途中断充电,系统不退费(You are choosing ‘Poweroff when full’, max fee: 3 USD. Power off when charging, it wont’ refund)" } "device": { "data": { "ports": [0,0,0,0,0,0,0,0,0,0,0], "device": { "address":"江西省, 赣州市, 章贡区, 赞贤路(Zanxian Road, Zhanggong District, Ganzhou City, Jiangxi Province)", "chargePriceId":26, "cityId":270222, "cityName":"赣州市(Ganzhou City)", "countyId":0, "countyName":"", "deviceType":0, "estateId":128, "estateName":"驴宝宝(lvcc)", "factory":3, "hardwareId":0, "id":105812, "inTime":1540458201000, "name":"测试设备q(test device q)", "online":1, "ownerId":0, "payWay":7, "place":0, "portNumber":10, "provinceId":262698, "provinceName":"江西省(jiangxi)", "simId":"432442363530484D0667FF33", "simProvide":1, "status":1, "updateTime":1540458204000 }, "errorMsg":"" }, "success":true } }, "success":true } ```