POST /api/v2/login |
Header name | Description |
---|---|
Provision required |
Web/Mobile/API Provision UUID |
Param name | Description |
---|---|
provision optional |
Mobile provision Validations:
|
pin optional |
Pin for mobile Validations:
|
Successful login
Param name | Description |
---|---|
data required |
Message returned for successful login Validations:
|
Unauthorized
Param name | Description |
---|---|
errors required |
Errors returned by request Validations:
|
errors[error] required |
Why the request failed Validations:
|
errors[status] required |
HTTP response code Validations:
|
Not Found
Param name | Description |
---|---|
errors required |
Errors returned by request Validations:
|
errors[error] required |
Why the request failed Validations:
|
errors[status] required |
HTTP response code Validations:
|
Unprocessable Entity
Param name | Description |
---|---|
errors required |
Errors returned by request Validations:
|
errors[error] required |
Why the request failed Validations:
|
errors[status] required |
HTTP response code Validations:
|
Internal Server Error
Param name | Description |
---|---|
errors required |
Errors returned by request Validations:
|
errors[error] required |
Why the request failed Validations:
|
errors[status] required |
HTTP response code Validations:
|
Code | Description |
---|---|
404 | Data source query failed |
422 | Invalid parameter(s) |
422 | Provision header missing |
422 | Invalid provision |
422 | Under maintenance |
422 | Incorrect host for provision |
422 | Establishing session failed |
422 | Privilege to perform the action was not found |
422 | Provision/PIN missing |
422 | Provision/PIN incorrect |
422 | Provision does not exist |
500 | No connection to data source |
POST /api/v2/login { "pin": "4321", "provision": "11112222-3333-4444-5555-666677778888" } 422 { "errors": [ { "error": "Provision or pin was incorrect.", "status": 422 } ] }
POST /api/v2/login { "pin": "1234", "provision": "12345678-1111-2222-3333-123412341234" } 200 { "data": "Login successful" }
POST /api/v2/login { "pin": "1234", "username": "Bob" } 422 { "errors": [ { "error": "Provision/PIN is required for login", "status": 422 } ] }
POST /api/v2/login { "pin": "4321", "provision": "baaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" } 422 { "errors": [ { "error": "setup failed", "status": 422 } ] }