Authenticate a user with the email
and password
that they provided when registering.
Given that the user credentials are correct, this returns a token
that can then be used to authorise
other secured operations. In case the password is expired, a temporary token
is returned, which can be used
solely for updating the password.
The token returned is valid for 5 minutes from last activity.
OK
Bad Request Error - Your request is invalid.
Unauthorized - Your credentials or access token are invalid.
Forbidden - Access to the requested resource or action is forbidden.
The user's password has expired. Use the returned temporary token to update their password via the '/passwords/update' endpoint.
Too many requests.
Internal Server Error - There is a problem with the server. Please try again later.
Service Unavailable - We're temporarily offline for maintenance. Please try again later.
Error
{- "email": "user@example.com",
- "password": {
- "value": "pa$$word"
}
}
{- "token": "string",
- "tokenType": "AUTH",
- "identity": {
- "type": "BUYER",
- "id": "string"
}, - "credentials": {
- "type": "ADMIN",
- "id": "string"
}
}
Logs out the user and terminates the session identified by the
auth_token
in the Authorization Header.
Success - No Content.
Bad Request Error - Your request is invalid.
Unauthorized - Your credentials or access token are invalid.
Forbidden - Access to the requested resource or action is forbidden.
Too many requests.
Internal Server Error - There is a problem with the server. Please try again later.
Service Unavailable - We're temporarily offline for maintenance. Please try again later.
Error
{- "message": "string",
- "syntaxErrors": {
- "invalidFields": [
- {
- "params": [
- "string"
], - "fieldName": "string",
- "error": "REQUIRED"
}
]
}
}