- 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
1.Get Device Info
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
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 *****************
Query Params
deviceId
string
required
Example:
BJD60151
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/rent/cabinet/query?deviceId=BJD60151' \
--header 'Authorization: Basic Og=='
Responses
🟢200成功
application/json
Body
msg
string
required
code
integer
required
data
object
required
priceStrategy
object
required
shop
object
required
batteries
array [object {3}]
required
cabinet
object
required
Example
{
"msg": "string",
"code": 0,
"data": {
"priceStrategy": {
"depositAmount": 0,
"priceMinute": 0,
"autoRefund": 0,
"timeoutAmount": 0,
"timeoutDay": 0,
"dailyMaxPrice": 0,
"freeMinutes": 0,
"currencySymbol": "string",
"price": 0,
"name": "string",
"currency": "string",
"shopId": "string"
},
"shop": {
"address": "string",
"priceMinute": "string",
"city": "string",
"dailyMaxPrice": 0,
"latitude": "string",
"openingTime": "string",
"freeMinutes": 0,
"icon": "string",
"content": "string",
"province": "string",
"price": 0,
"name": "string",
"deposit": 0,
"logo": "string",
"id": "string",
"region": "string",
"longitude": "string"
},
"batteries": [
{
"slotNum": 0,
"vol": 0,
"batteryId": "string"
}
],
"cabinet": {
"ip": "string",
"remark": "string",
"type": "string",
"slots": 0,
"qrCode": "string",
"online": true,
"emptySlots": 0,
"busySlots": 0,
"id": "string",
"shopId": "string",
"signal": "string",
"posDeviceId": "string"
}
}
}