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

5.Get Order Detail

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
/rent/order/detail

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
tradeNo
string 
required
Trade No
Example:
23022111552701091626

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/order/detail?tradeNo=23022111552701091626' \
--header 'Authorization: Basic Og=='

Responses

🟢200成功
application/json
Body
msg
string 
required
code
integer 
required
data
object 
required
cabinetId
string 
充电柜ID
required
Cabinet ID
orderId
string 
订单ID
required
Order ID
batteryId
string 
电池ID
required
Battery ID
dailyMaxPrice
integer 
每日最高价格
required
Maximum daily unit price
freeMinutes
integer 
免费分钟数
required
Free minutes
orderAmount
integer 
点单金额
required
Order amount
borrowTime
string 
租借时间
required
Borrow time
price
number 
单价
required
Price
currency
string 
币种
required
3 letter currency code
deviceType
string 
设备型号
required
Device type
priceMinute
string 
单价每分
required
Free minutes
borrowSlot
integer 
借用插口
required
Borrow slot
returnTime
string 
返回时间
required
Return time
borrowStatus
integer 
租借状态
required
0.
Not leased, 1. Under lease, 2. Revoked, 3. Returned, 4. In doubt, 5. Timeout is returned. 6. Charging is suspended
deposit
integer 
押金
required
Deposit
Example
{
    "msg": "string",
    "code": 0,
    "data": {
        "cabinetId": "string",
        "orderId": "string",
        "batteryId": "string",
        "dailyMaxPrice": 0,
        "freeMinutes": 0,
        "orderAmount": 0,
        "borrowTime": "string",
        "price": 0,
        "currency": "string",
        "deviceType": "string",
        "priceMinute": "string",
        "borrowSlot": 0,
        "returnTime": "string",
        "borrowStatus": 0,
        "deposit": 0
    }
}
Previous
4.Mark order status as completed
Next
6.Get Deivice List
Built with