POST api/Account/Login

Authenticate user

Request Information

URI Parameters

None.

Body Parameters

User login data

LoginDto
NameDescriptionTypeAdditional information
UserName

string

None.

Password

string

None.

ClientId

string

None.

ClientSecret

string

None.

DoNotSendActivationMail

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1",
  "Password": "sample string 2",
  "ClientId": "sample string 3",
  "ClientSecret": "sample string 4",
  "DoNotSendActivationMail": true
}

application/xml, text/xml

Sample:
<LoginDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/enTT.ZS.Dto.User">
  <ClientId>sample string 3</ClientId>
  <ClientSecret>sample string 4</ClientSecret>
  <DoNotSendActivationMail>true</DoNotSendActivationMail>
  <Password>sample string 2</Password>
  <UserName>sample string 1</UserName>
</LoginDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Logged in user details

ResponseOfAuthTicket
NameDescriptionTypeAdditional information
StatusCode

StatusCode

None.

Message

string

None.

Data

AuthTicket

None.

Response Formats

application/json, text/json

Sample:
{
  "StatusCode": 1000,
  "Message": "sample string 1",
  "Data": null
}

application/xml, text/xml

Sample:
<ResponseOfAuthTicketkvwhp91_P xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/enTT.ZS.Dto">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/enTT.ZS.Dto.User" i:nil="true" />
  <Message>sample string 1</Message>
  <Result />
  <StatusCode>Success</StatusCode>
</ResponseOfAuthTicketkvwhp91_P>