Logs in a customer.
Logs in a customer.
AuthenticationToken resource.
username required | string Username associated with the authentication token. |
password required | string <password> Password associated with the authentication token. |
mode | string Specifies the authentication verification method. The |
otpRequired | boolean Specifies if a One-Time Password (OTP) is required to exchange the authentication token. |
expiredTime | string <date-time> Date and time when the token expired. |
{ "username": "string", "password": "pa$$word", "mode": "password", "otpRequired": true, "credentialId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21", "expiredTime": "2019-08-24T14:15:22Z" }
201
Login successful.
401
Unauthorized access. Invalid credentials used.
403
Access forbidden.
422
Invalid data sent.
{ "username": "string", "customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF", "token": "string", "otpRequired": true, "credentialId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21", "expiredTime": "2019-08-24T14:15:22Z", "_links": [ { "href": "string", "rel": "self" } ] }