Approve or Reject Device Request
Approves or rejects a staff member’s pending device verification request (a request to mark attendance from a new phone), as in the app. Shared rules: see Writing data.
- Needs the device verification plan feature.
- Find the request with List Device Mappings (
GET /requests/device-mapping).actionisAPPROVEorREJECT. - Approving makes the requested phone the one the staff member marks attendance from, replacing any phone mapped before. Rejecting deletes the request. Either way the staff member is notified.
- You can’t decide your own request:
400onsalarybox_id. - No pending request:
404“Device verification request not found.” More than one pending request for the staff member:400onsalarybox_id; decide them in the SalaryBox app. - Repeating the request after it succeeded returns
404, which is harmless.
Authentication
AuthorizationApi-Key
Format: “Api-Key {api-key}”
Path parameters
salarybox_id
SalaryBox ID of the staff member who made the request.
Request
This endpoint expects an object.
action
Allowed values:
Response
The decision was saved.
message
status
data
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
