post http://{{endpoint}}/api/user/auth/login
Checks user credentials and provide an access token
REQUEST OBJECT HAS THE FOLLOWING PROPERTIES:
Attribute | Type | Description | Required |
---|---|---|---|
login | string | Login information, it will be e-mail for admin and back office users or document (CNPJ) for others | Yes |
password | string | User password | Yes |
target | string | Target of interface user, values supported[admin,customer] | No |
Response object has the following properties:
Attribute | Type | Description |
---|---|---|
access_token | string | Generated token for current user |
expires_in | string | Token expiration time |
Response status code
status | Description |
---|---|
200 | CREATED |
400 | BAD_REQUEST |
500 | INTERNAL_SERVER_ERROR |
404 | NOT_FOUND |