menu

Authenticate

Authenticate method will return the Token ID that needs to be echoed back in every subsequent request.
In case of session expiry or log outs, the authenticate method needs to be called again and the updated Token ID needs to be passed in every subsequent request.
Service URL (REST) to be used:
http://api.tektravels.com/SharedServices/SharedData.svc/rest/Authenticate

Authenticate Request
Level
Element
Format
Comments
Mandatory/ Optional
1
ClientId
String
Client ID – ApiIntegrationNew
Mandatory
2
UserName
String
User name provided to the agency at registration
Mandatory
3
Password
String
Password provided to the agency at registration(Use API Password)
Mandatory
4
EndUserIp
String
Public Server IP
Mandatory
Authenticate Response

Level

Element

Format

Comments

Mandatory/ Optional

1

Member

1.1

FirstName

String

First Name of the client

Mandatory

1.2

LastName

String

Last Name of the client

Mandatory

1.3

Email

String

Email ID of the client

Mandatory

1.4

MemberId

Integer

Unique Member ID of the

Mandatory

1.5

AgencyId

Integer

Unique Agency ID of the

Mandatory

1.6

LoginName

String

Login Name (user name) of

Mandatory

1.7

LoginDetails

String

Login Details of the client

Mandatory

2

TokenId

String

Token ID

Mandatory (Token Id to be echoed back in further requests valid for 24 hrs i.e 00:00 AM to 11:59 PM)

3

Status

Integer

Response status

Mandatory
NotSet = 0, Successful = 1, Failed = 2, InCorrectUserName = 3, InCorrectPassword = 4, PasswordExpired = 5

4

Error

Mandatory

4.1

ErrorCode

Integer

Code corresponding to the Error

Mandatory

4.2

ErrorMessage

String

Contains error message

Mandatory
(Will contain error description corresponding to ErrorCode. Error Message would be blank in case ErrorCode=0)