API Documentation >> API 2.0 Main >> Account Management >> Request Login Data
You can request the login data for a user - either the reset of the password by providing the email address or username, or the username by providing the email address. The respective and requested login data is then sent to the email address - either the provided or the one connected to the username.
https://api.cardmarket.com/ws/v2.0/account/logindata?type=
type
(query parameter)
username
or password
is reqested
For requesting password
:
<username>username</username>
or for requesting username
or password
:
<email>email</email>
1. Request a password reset for a user account by providing the username:
POST https://api.cardmarket.com/ws/v2.0/account/logindata?type=password
<?xml version="1.0" encoding="UTF-8" ?> <request> <username>Maxi</username> </request>
2. Request a password reset for a user account by providing the email address:
POST https://api.cardmarket.com/ws/v2.0/account/logindata?type=password
<?xml version="1.0" encoding="UTF-8" ?> <request> <email>max.mustermann@gmail.de</email> </request>
3. Request the username for an account by providing the email address:
POST https://api.cardmarket.com/ws/v2.0/account/logindata?type=username
<?xml version="1.0" encoding="UTF-8" ?> <request> <email>max.mustermann@gmail.de</email> </request>