Skip to content

Badge RFID

This event is fired when a badge is detected on the RFID reader.

The badge reader is an optional feature. * Station v5: there is one reader on the whole station. Use your own logic to check if the user can unlock and to determine which spot to unlock (for example, the most charged scooter). * Station v6: there is one ready by spot of the station. Use your own logic to check if the user can unlock and then unlock the specified spot.

Body parameters

  • event: badge-rfid
  • station (integer): The identifier of the station.
  • data: (json object).
  • badge_id (string): The identifier of the badge in hexadecimal.
  • spot (integer): The number of the spot. The range is between 1 and 32 (included). Station v6 only.

Body example

Station v5

{
    "event": "badge-rfid",
    "station": 156,
    "data": {
        "badge_id": "80676A723C5704"
    }
}

Station v6

{
    "event": "badge-rfid",
    "station": 156,
    "data": {
        "badge_id": "80676A723C5704",
        "spot": 3
    }
}