400 Bad Request
Incorrect PIN
- Code
staff_pin_incorrect- Status
400Bad Request- Type
https://errors.clavian.io/staff-pin-incorrect
What it means
The PIN is not right for this venue: it is wrong, or the staff member has no PIN here. The answer does not say which.
What to do
Let the person try again. After the fifth wrong try the PIN locks, and the answer becomes staff_pin_locked.
Example
The API answers with status 400 and this body, as application/problem+json. A detail may be added, saying what went wrong this time; it is for people, and changes.
{
"type": "https://errors.clavian.io/staff-pin-incorrect",
"title": "Incorrect PIN",
"status": 400,
"code": "staff_pin_incorrect",
"requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}
Endpoints that return it
From the OpenAPI document, every endpoint that names it among its answers:
POST /v1/organizations/{organizationId}/members/{memberId}/unlockUnlock this counter device as a member, with their PIN