- Open API
- Advance API
- Cabinet
- Device Operation
- eject the battery for the specified device slot by repair
- Rent and eject the battery for the specified device slot
- Query All Device List
- Query details based on Device Id
- get device list by shop id
- get all device list by page
- Query battery list based on Device Id
- Query slot list based on Device Id
- binding device to shop
- Update cabinet advertising information
- Shop
- PriceStrategy
- Order
- Cabinet Event Push
Cabinet Event Push
Developing
Production
https://developer.chargenow.top/cdb-open-api/v1
Production
https://developer.chargenow.top/cdb-open-api/v1
POST
https://developer.chargenow.top/cdb-open-api/v1
Request
Body Params application/json
agentAccount
string
Agent account
event
string
Cabinet event
eventData
object
Cabinet event data
cabinetId
string
Cabinet ID
infoStatus
string
Cabinet online status
totalCount
integer
Total number of charging slots
rentableCount
integer
Number of borrowed batteries
returnableCount
integer
Number of empty charging slots
icCard
string
IC card number
clientIp
string
Cabinet IP
clientPort
string
Cabinet IP PORT
geoHash
string
Cabinet side positioning, GEO hash value
signal
string
Cabinet end signal strength
batteryList
array [object {8}]
Battery information
onlineTime
string
Cabinet online time
offlineTime
string
Cabinet offline time
outBatteryId
string
Eject battery's ID
outSlot
integer
Eject battery's slot
orderId
string
Order ID
faultType
integer
Rental fail types
1.Authorize Battery fail
2.Unable to find this battery ID
3.Eject battery fail
4.Eject battery fail
5.Eject battery fail
9.Issue of lease command timed out
faultCause
string
Rental fail cause
1.Authorize Battery fail
2.Unable to find this battery ID
3.Eject battery fail
4.Eject battery fail
5.Eject battery fail
9.Issue of lease command timed out
returnBatteryId
string
return battery ID
returnSlot
integer
return battery slot
abnormalBatteryId
string
Abnormal battery ID
outStatus
string
Popup status
popupFailureDescription
string
Pop-up failure instructions
timestamp
string
Notification Time
Example
{
"agentAccount": "admins",
"event": "CABINET_STATUS",
"eventData": {
"batteryList": [
{
"batteryFaultCause": "",
"batteryFaultType": 0,
"batteryId": "FECF007552",
"faultCause": "",
"faultType": 0,
"infoStatus": "Online",
"slot": 1,
"vol": 100
}
],
"cabinetId": "BJX01553",
"clientIp": "223.104.84.103",
"clientPort": "10797",
"geoHash": "",
"infoStatus": "Online",
"rentableCount": 1,
"returnableCount": 7,
"signal": "31",
"totalCount": 8
},
"timestamp": "2023-12-29T15:53:18"
}
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 POST 'https://developer.chargenow.top/cdb-open-api/v1The URL you configured to receive cabinet event messages' \
--header 'Content-Type: application/json' \
--data-raw '{
"agentAccount": "admins",
"event": "CABINET_STATUS",
"eventData": {
"batteryList": [
{
"batteryFaultCause": "",
"batteryFaultType": 0,
"batteryId": "FECF007552",
"faultCause": "",
"faultType": 0,
"infoStatus": "Online",
"slot": 1,
"vol": 100
}
],
"cabinetId": "BJX01553",
"clientIp": "223.104.84.103",
"clientPort": "10797",
"geoHash": "",
"infoStatus": "Online",
"rentableCount": 1,
"returnableCount": 7,
"signal": "31",
"totalCount": 8
},
"timestamp": "2023-12-29T15:53:18"
}'
Responses
🟢200成功
application/json
Body
object {0}
Example
{}