Skip to navigation

Add Staff to Biometric Device

Adds 1 to 50 staff to a biometric device, as Add Staff to Device does in the app. Shared rules: see Writing data.

For each staff member this gives them a biometric user id if they have none, pushes them to the device and turns on biometric attendance for them.

  • Staff are sent to the device one by one, so a 50-staff request can take a while.
  • Once the request is valid it always returns 200; result says what happened to each staff member. If any entry is invalid, nothing is added and you get 400.
  • added: done. Staff already on the device can be sent again; they come back as added (pushed again).
  • failed: the device did not accept them, for example because it is offline. Retry later; retrying is safe.
  • manual_add_needed: this device model can’t take staff from SalaryBox. Add the person on the device by hand using biometric_employee_id.
  • not_attempted: this staff member wasn’t reached in this request. Nothing was changed for them. Send them again in a new request.
  • Tip: for big lists, or when devices are slow, send smaller batches.
  • Removing staff from a device is not available through the API; use the SalaryBox app.
  • Older plans without an active subscription get 403 “No active plan. Purchase a plan to add staff to the biometric device.”

Authentication

AuthorizationApi-Key

Format: “Api-Key {api-key}”

Query parameters

serial_numberstringRequired

The device’s serial_number from List Biometric Devices.

Request

This endpoint expects an object.
stafflist of objectsRequired

Staff to add (1 to 50, no duplicates).

Response

The request was processed. Check result for each staff member.

messagestring
statusboolean
dataobject

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error