Bajie Charging
  1. Cabinet Event Push
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. Cabinet Event Push

GET Cabinet Event Push Config

Developing
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/eventPush/config/get

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 *****************

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/eventPush/config/get' \
--header 'Authorization: Basic Og=='

Responses

🟢200成功
application/json
Body
code
integer 
required
msg
string 
required
data
object (AgentCabinetEventPushConfig) 
required
pushUrl
string 
URL for receiving cabinet event push notifications
required
If the subscribed cabinet event does not have a separate push URL configured, this value will be used.
eventSubscriptions
array [object {3}] 
Subscription requires receiving push cabinet events
optional
Example
{
    "msg": "Successful operation",
    "code": 0,
    "data": {
        "pushUrl": "https://receiving.push.com/event",
        "eventSubscriptions": [
            {
                "event": "CABINET_ONLINE",
                "pushUrl": "",
                "enable": true
            },
            {
                "event": "CABINET_OFFLINE",
                "pushUrl": "",
                "enable": true
            },
            {
                "event": "CABINET_STATUS",
                "pushUrl": "",
                "enable": true
            },
            {
                "event": "BATTERY_IN",
                "pushUrl": "",
                "enable": true
            },
            {
                "event": "BATTERY_BORROW_OUT",
                "pushUrl": "",
                "enable": true
            },
            {
                "event": "BATTERY_ABNORMAL_WARNING",
                "pushUrl": "",
                "enable": true
            },
            {
                "event": "ADMIN_RENTAL_ORDER",
                "pushUrl": "",
                "enable": true
            }
        ]
    }
}
Previous
Cabinet Event Push Config
Next
Cabinet Event Push
Built with