SMART LOCKER API
  1. Smart Locker
SMART LOCKER API
  • Web
    • Shifts
      • Shift List
      • Add Shift
      • Update Shift
      • Delete Shift
    • Shift Devices
      • Add Shift Device
      • List Shift Devices
      • Update Shift Device
      • Delete Shift Device
    • Device Management
      • Update Device
      • List Devices
      • Get Device
      • add device
      • edit device
      • delete device
      • devices status
    • Bay Management
      • List Bays
      • Assign Device to Bay
      • Assign User to Bay
      • Unassign Device
    • Locker Management
      • Locker List
      • Get Locker
      • LockerType
      • maintenance list
      • delete locker
    • User
      • User List
      • Get User
      • add user
      • user edit
      • user delete
    • Group
      • group add
      • group list
      • group view
      • group delete
    • Location
      • Location
      • location add
      • location edit
      • add area
    • Role
      • add role
      • edit role
      • list role
    • Admin Login
      POST
    • Kiosk Login
      POST
    • Country
      GET
    • log list
      GET
  • Smart Locker
    • Locker Status
      POST
    • Open Locker
      POST
    • Start charging
      POST
    • Stop Charging
      POST
    • Charging Status
      POST
  1. Smart Locker

Stop Charging

Developing
POST
/api/locker/command
"comPort": "COM2",
"hexCode": is the value stop_charging_code obtained from cabin listing api

Request

Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Body

🔴503
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:5000/api/locker/command' \
--header 'Content-Type: application/json' \
--data-raw '{
    "comPort": "COM2",
    "hexCode": "81 01 02 52 06 5B 00 FA"
}'
Response Response Example
200 - charge_stop_success_response
{
    "success": true,
    "message": "Command sent successfully",
    "response": "81 01 03 53 06 00 5D 00 FA"
}
Modified at 2025-11-01 15:39:34
Previous
Start charging
Next
Charging Status
Built with