POST api/account/mobilelogin?appVersion={appVersion}

Authenticates mobile app user credentials. The password is expected to be hashed using MD5 algorith.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
appVersion

string

None.

Body Parameters

MobileUserAuthenticationRequestByPassword
NameDescriptionTypeAdditional information
AppVersion

string

None.

Platform

MobilePlatform

Required

Password

string

Required

Data type: Password

UserName

string

Required

Domain

string

Required

ApplicationId

string

Required

CallerAgentInformation

CallerAgentInformation

None.

Request Formats

application/json, text/json

Sample:
{
  "AppVersion": "sample string 1",
  "Platform": 0,
  "Password": "sample string 2",
  "UserName": "sample string 3",
  "Domain": "sample string 4",
  "ApplicationId": "sample string 5",
  "CallerAgentInformation": {
    "UserAgent": "sample string 1",
    "IpAddress": "sample string 2",
    "HostServer": "sample string 3",
    "RequestUriAbsolutePath": "sample string 4"
  }
}

application/xml, text/xml

Sample:
<MobileUserAuthenticationRequestByPassword xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CWI.Mobile.Domain.RequestModels">
  <ApplicationId>sample string 5</ApplicationId>
  <CallerAgentInformation xmlns:d2p1="http://schemas.datacontract.org/2004/07/CWI.Mobile.Domain.Models">
    <d2p1:HostServer>sample string 3</d2p1:HostServer>
    <d2p1:IpAddress>sample string 2</d2p1:IpAddress>
    <d2p1:RequestUriAbsolutePath>sample string 4</d2p1:RequestUriAbsolutePath>
    <d2p1:UserAgent>sample string 1</d2p1:UserAgent>
  </CallerAgentInformation>
  <Domain>sample string 4</Domain>
  <UserName>sample string 3</UserName>
  <Password>sample string 2</Password>
  <AppVersion>sample string 1</AppVersion>
  <Platform>Ios</Platform>
</MobileUserAuthenticationRequestByPassword>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'MobileUserAuthenticationRequestByPassword'.

Response Information

Resource Description

EmployeeAuthenticationResponseForDataCenter
NameDescriptionTypeAdditional information
EmployeeId

integer

None.

ServiceUrl

string

None.

UserId

integer

None.

SecurityToken

string

None.

TokenExpirationUtcTime

date

None.

ErrorMessage

string

None.

AuthenticationStatus

AuthenticationStatus

None.

Response Formats

application/json, text/json

Sample:
{
  "EmployeeId": 1,
  "ServiceUrl": "sample string 1",
  "UserId": 1,
  "SecurityToken": "sample string 2",
  "TokenExpirationUtcTime": "2026-05-05T07:16:33.9480762-04:00",
  "ErrorMessage": "sample string 3",
  "AuthenticationStatus": 0
}

application/xml, text/xml

Sample:
<EmployeeAuthenticationResponseForDataCenter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CWI.Mobile.Domain.ResponseModels">
  <AuthenticationStatus>NotSet</AuthenticationStatus>
  <ErrorMessage>sample string 3</ErrorMessage>
  <SecurityToken>sample string 2</SecurityToken>
  <TokenExpirationUtcTime>2026-05-05T07:16:33.9480762-04:00</TokenExpirationUtcTime>
  <UserId>1</UserId>
  <ServiceUrl>sample string 1</ServiceUrl>
  <EmployeeId>1</EmployeeId>
</EmployeeAuthenticationResponseForDataCenter>