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.
Security
apiKey
The user's password or passcode used to log in a user. Passwords must be:
- between 8 and 30 characters
- include a lowercase character
- include an uppercase character
- include a digit and a special character
- different from any of the 5 last such passwords used.
For non-PCI compliant integrations, the password submitted must be tokenised.
- Sandboxhttps://sandbox.weavr.io/payment-run/v1/login_with_password
- Mock serverhttps://api.weavr.io/_mock/products/payment-run/openapi/v1/login_with_password
curl -i -X POST \
https://sandbox.weavr.io/payment-run/v1/login_with_password \
-H 'Content-Type: application/json' \
-H 'api-key: YOUR_API_KEY_HERE' \
-d '{
"email": "user@example.com",
"password": {
"value": "pa$$word"
}
}'Response
{ "token": "string", "tokenType": "AUTH", "identity": { "type": "BUYER", "id": "string" }, "credentials": { "type": "ADMIN", "id": "string" } }