- Open API
- Advance API
- Cabinet
- Device OperationPOST
- eject the battery for the specified device slot by repairPOST
- Rent and eject the battery for the specified device slotPOST
- Query All Device ListGET
- Query details based on Device IdGET
- get device list by shop idGET
- get all device list by pageGET
- Query battery list based on Device IdGET
- Query slot list based on Device IdGET
- binding device to shopPOST
- Update cabinet advertising informationPOST
- Shop
- PriceStrategy
- Order
- Cabinet Event Push
Query All Device List
Production
https://developer.chargenow.top/cdb-open-api/v1
Production
https://developer.chargenow.top/cdb-open-api/v1
GET
https://developer.chargenow.top/cdb-open-api/v1
cabinet-controller
Request
Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
Header Params
Authorization
string
optional
Example:
Basic dGVzdDp0ZXN0
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://developer.chargenow.top/cdb-open-api/v1/cabinet/getAllDevice' \
--header 'Authorization: Basic Og=='
Responses
🟢200OK
application/json
Body
msg
string
optional
code
string
required
data
array [object {24}]
optional
pId
integer
主键id
pType
string
设备类型(5/12/24/48口设备)
pCabinetid
string
设备id
pTotal
integer
总口数(一般与pType一致)
pBorrow
integer
可借数量
pAlso
integer
可还数量
pRegtime
string
注册时间
pStatus
string
授权状态(1='已授权';0='未授权')
pLognum
integer
握手次数(与通讯服务器的连接次数)
pLogtime
string
握手时间(最近一次与通讯服务器通讯时间)
pJson
string
通讯数据(最近一次通讯数据)
pCard
string
物联网卡号
pJingdu
string
经度
pWeidu
string
纬度
pHash
string
经纬hash值
phardwareInfo
string
硬件信息(依次为:主控板MCU型号@@MCU固件版本@@通信模块型号@@通信模块固件版本)
pCode
string
绑定的二维码
pZujienum
integer
租借次数
pInfostatus
string
在线状态(0='离线';1='在线')
pSignal
string
信号强弱,GPRS 信号质量(0~31,至少有19方可连接网络,31是最好)
pUserip
string
设备ip地址
pPort
string
通讯服务器端口号
pMyip
string
通讯服务器ip地址
pPosDeviceid
string
POS刷卡设备的id
Additional properties
object
optional
Example
{
"msg": "Successful operation",
"code": 0,
"data": [
{
"transMap": {},
"phardwareInfo": "N32G435@@4020@@ @@ ",
"pId": 49,
"pType": "12",
"pCabinetid": "DTA02216",
"pPort": "12406",
"pTotal": 12,
"pBorrow": 4,
"pAlso": 8,
"pRegtime": "2023-12-30 14:57:47",
"pStatus": "已授权",
"pLognum": 462,
"pLogtime": "2023-12-30 21:37:31",
"pJson": "{\"T\":\"T\",\"R\":\"F\",\"D\":\"DTA02216\",\"L\":[]}",
"pShopid": "",
"pCard": "8944501905220504885F",
"pBorrowtime": "2023-12-30 20:47:13",
"pJingdu": "",
"pHash": "",
"pBomb": 0,
"pCode": "",
"pZujienum": 0,
"pPtid": "BJCD0000000000000000000000000001",
"pSfid": "234296969594340",
"pCsid": "",
"pQyid": "",
"pYwid": "",
"pDpid": "",
"pInfostatus": "离线",
"pSignal": "31",
"pUserip": "195.226.133.62",
"pMyip": "127.0.0.1",
"pRemark": " ",
"pPosDeviceid": "",
"pHardwareInfo": "N32G435@@4020@@ @@ ",
"pPositionId": "0",
"pProductType": 0
}
]
}
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found