Bajie Charging
  1. Open API
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
      • 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
      • 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. Open API

6.Get Deivice List

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
/rent/cabinet/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 *****************
Query Params
coordType
string 
required
Coordinate system: WGS-84, GCJ-02, BD-09
Example:
GCJ-02
zoomLevel
string 
required
Map scale: 1-8, geoHash scale:1、2500km;2、630km;3、78km;4、30km;5、2.4km; 6、610m;7、76m;8、19m
Example:
5
lat
string 
required
Longitude string
Example:
22.989442
lng
string 
required
Latitude String
Example:
113.327761
showPrice
string 
optional
Obtain merchant price information, default to true
Example:
true

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/rent/cabinet/list?coordType=GCJ-02&zoomLevel=5&lat=22.989442&lng=113.327761&showPrice=true' \
--header 'Authorization: Basic Og=='

Responses

🟢200成功
application/json
Body
msg
string 
required
code
integer 
required
list
array [object {3}] 
required
price
object 
optional
Price Data
cabinet
object 
optional
Cabinet Data
shop
object 
optional
Shop Data
Example
{
    "msg": "string",
    "code": 0,
    "list": [
        {
            "price": {
                "priceId": 0,
                "freeDuration": "string",
                "price": "string",
                "chargeUnit": "string",
                "dailyCapAmount": "string",
                "deposit": "string"
            },
            "cabinet": {
                "batteryNum": "string",
                "freeNum": "string",
                "infoStatus": "string"
            },
            "shop": {
                "id": "string",
                "shopName": "string",
                "shopAddress": "string",
                "mobile": "string",
                "distance": "string",
                "longitude": "string",
                "latitude": "string",
                "shopBanner": "string",
                "shopIcon": "string",
                "distanceNumber": 0,
                "sceneType": "string"
            }
        }
    ]
}
Previous
5.Get Order Detail
Next
Device Operation
Built with