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

Open Locker

Developing
POST
/api/locker/command
"comPort": "COM1",
"hexCode": is the unlock_port value from cabin listing web api

Request

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Body

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": "COM1",
    "hexCode": "81 00 04 16 31 06 01 52 00 FA"
}'
Response Response Example
Failed
{
    "success": false,
    "message": "Access to the path 'COM1' is denied."
}
Modified at 2025-11-01 15:39:51
Previous
Locker Status
Next
Start charging
Built with