Skip to navigation

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). action is APPROVE or REJECT.
  • 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: 400 on salarybox_id.
  • No pending request: 404 “Device verification request not found.” More than one pending request for the staff member: 400 on salarybox_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_idstringRequired
SalaryBox ID of the staff member who made the request.

Request

This endpoint expects an object.
actionenumRequired
Allowed values:

Response

The decision was saved.
messagestring
statusboolean
dataobject

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error