Bajie Charging
  1. Cabinet
Bajie Charging
  • Open API
    • 1.Get Device Info
      GET
    • 2.Create Rent Order
      POST
    • 3.Query Rent Order Status
      POST
    • 4.Mark order status as completed
      POST
    • 5.Get Order Detail
      GET
    • 6.Get Deivice List
      POST
  • Advance API
    • Cabinet
      • Device Operation
        POST
      • eject the battery for the specified device slot by repair
        POST
      • Rent and eject the battery for the specified device slot
        POST
      • Query All Device List
        GET
      • Query details based on Device Id
        GET
      • get device list by shop id
        GET
      • get all device list by page
        GET
      • Query battery list based on Device Id
        GET
      • Query slot list based on Device Id
        GET
      • binding device to shop
        POST
      • Update cabinet advertising information
        POST
    • Shop
      • get all shop list
      • get shop detail
      • create new shop
      • update shop
      • Delete shop
    • PriceStrategy
      • 1.Get Price Strategy Page
      • 2.Get Price Strategy Detail
      • 3.Create Or Update Price Strategy
      • 4.Delete Price Strategy
      • 5.Shop Bind Price Strategy
      • 6.Shop Unbind Price Strategy
    • Order
      • Order list
  • Cabinet Event Push
    • Cabinet Event Push Config
      POST
    • GET Cabinet Event Push Config
      GET
    • Cabinet Event Push
      POST
  1. Cabinet

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/getAllDevice
cabinet-controller
Query All Device List

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
optional
Primary key id
pType
string 
设备类型(5/12/24/48口设备)
optional
Type of equipment (5/12/24/48 slots devices)
pCabinetid
string 
设备id
optional
Device id
pTotal
integer 
总口数(一般与pType一致)
optional
Total number of slots (generally consistent with pType)
pBorrow
integer 
可借数量
optional
Rentable quantity
pAlso
integer 
可还数量
optional
Recoverable quantity
pRegtime
string 
注册时间
optional
Registration Time
pStatus
string 
授权状态(1='已授权';0='未授权')
optional
Authorization status (1=' authorized'; 0=' unauthorized')
pLognum
integer 
握手次数(与通讯服务器的连接次数)
optional
Number of handshakes (number of connections with the communication server)
pLogtime
string 
握手时间(最近一次与通讯服务器通讯时间)
optional
Handshake time (last communication time with communication server)
pJson
string 
通讯数据(最近一次通讯数据)
optional
Communication data (latest communication data)
pCard
string 
物联网卡号
optional
IOT card number
pJingdu
string 
经度
optional
longitude
pWeidu
string 
纬度
optional
latitude
pHash
string 
经纬hash值
optional
Latitude and longitude hash value
phardwareInfo
string 
硬件信息(依次为:主控板MCU型号@@MCU固件版本@@通信模块型号@@通信模块固件版本)
optional
Hardware information (in order: MCU model of main control board @@MCU firmware version @ @ Communication module model @ @ Communication module firmware version)
pCode
string 
绑定的二维码
optional
Bound QR code
pZujienum
integer 
租借次数
optional
Number of rentals
pInfostatus
string 
在线状态(0='离线';1='在线')
optional
Online status (0=' offline'; 1=' Online')
pSignal
string 
信号强弱,GPRS信号质量(0~31,至少有19方可连接网络,31是最好)
optional
Signal strength, GPRS signal quality (0~31, at least 19 can connect to the network, 31 is the best)
pUserip
string 
设备ip地址
optional
Device ip address
pPort
string 
通讯服务器端口号
optional
Communication server port number
pMyip
string 
通讯服务器ip地址
optional
Communication server ip address
pPosDeviceid
string 
POS刷卡设备的id
optional
Id of POS card swiping device
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
Previous
Rent and eject the battery for the specified device slot
Next
Query details based on Device Id
Built with