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

Device Operation

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
/cabinet/operation
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 *****************
Query Params
batcabFault
integer 
optional
slot failure type
batteryFault
integer 
optional
battery failure type
cabinetid
string 
required
Device ID
Example:
SAB02371
gpsTime
integer 
optional
gpsTime
operationType
string 
required
Operation type
Example:
restart,pop,popall,popallForNoAuth,popallForAuth,heartbeat,lock,unlock,lockStopCharge,report
reason
string 
required
lock reason
slotNum
string 
required
Slot Number
Example:
1
type
integer 
optional
0=slot failure, 1=battery failure
Example:
0
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 POST 'https://developer.chargenow.top/cdb-open-api/v1/cabinet/operation?batcabFault=&batteryFault=&cabinetid=SAB02371&gpsTime=&operationType=restart,pop,popall,popallForNoAuth,popallForAuth,heartbeat,lock,unlock,lockStopCharge,report&reason=&slotNum=1&type=0' \
--header 'Authorization: Basic Og=='

Responses

🟢200OK
application/json
Body
Additional properties
object 
optional
Example
{
    "property1": {},
    "property2": {}
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
Previous
6.Get Deivice List
Next
eject the battery for the specified device slot by repair
Built with