POST api/public-accounts/getaccountbycredential

Request Information

URI Parameters

None.

Body Parameters

AuthenticationRequest
NameDescriptionTypeAdditional information
Username

string

None.

Password

string

None.

IsDomainUser

boolean

None.

IsPublicAccount

boolean

None.

UserOTP

string

None.

SecuredOTPCode

string

None.

BrowserAgent

string

None.

IpAddress

string

None.

DeviceID

string

None.

Origin

OriginApplication

None.

Request Formats

application/json, text/json

Sample:
{
  "Username": "sample string 1",
  "Password": "sample string 2",
  "IsDomainUser": true,
  "IsPublicAccount": true,
  "UserOTP": "sample string 5",
  "SecuredOTPCode": "sample string 6",
  "BrowserAgent": "sample string 7",
  "IpAddress": "sample string 8",
  "DeviceID": "sample string 9",
  "Origin": 0
}

application/xml, text/xml

Sample:
<AuthenticationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.Services">
  <BrowserAgent xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">sample string 7</BrowserAgent>
  <DeviceID xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">sample string 9</DeviceID>
  <IpAddress xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">sample string 8</IpAddress>
  <Origin xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">Web</Origin>
  <IsDomainUser>true</IsDomainUser>
  <IsPublicAccount>true</IsPublicAccount>
  <Password>sample string 2</Password>
  <SecuredOTPCode>sample string 6</SecuredOTPCode>
  <UserOTP>sample string 5</UserOTP>
  <Username>sample string 1</Username>
</AuthenticationRequest>

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 'AuthenticationRequest'.

Response Information

Resource Description

DTOPublicAccountView
NameDescriptionTypeAdditional information
AccountID

integer

None.

Code

string

None.

UserFullName

string

None.

Username

string

None.

Password

string

None.

SecondaryPassQ

string

None.

SecondaryPassA

string

None.

EmailAddress

string

None.

AccountTypeID

PublicAccountType

None.

RegisteredDate

date

None.

FlagExpires

boolean

None.

DateExpiry

date

None.

FlagLocked

boolean

None.

TenantID

integer

None.

Photo

Collection of byte

None.

FlagDeleted

boolean

None.

MobileNo

string

None.

LastLogin

date

None.

Response Formats

application/json, text/json

Sample:
{
  "AccountID": 1,
  "Code": "sample string 2",
  "UserFullName": "sample string 3",
  "Username": "sample string 4",
  "Password": "sample string 5",
  "SecondaryPassQ": "sample string 6",
  "SecondaryPassA": "sample string 7",
  "EmailAddress": "sample string 8",
  "AccountTypeID": 0,
  "RegisteredDate": "2025-10-26T11:10:07.9209049+08:00",
  "FlagExpires": true,
  "DateExpiry": "2025-10-26T11:10:07.9209049+08:00",
  "FlagLocked": true,
  "TenantID": 11,
  "Photo": "QEA=",
  "FlagDeleted": true,
  "MobileNo": "sample string 13",
  "LastLogin": "2025-10-26T11:10:07.9209049+08:00"
}

application/xml, text/xml

Sample:
<DTOPublicAccountView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">
  <AccountID>1</AccountID>
  <AccountTypeID>Public</AccountTypeID>
  <Code>sample string 2</Code>
  <DateExpiry>2025-10-26T11:10:07.9209049+08:00</DateExpiry>
  <EmailAddress>sample string 8</EmailAddress>
  <FlagDeleted>true</FlagDeleted>
  <FlagExpires>true</FlagExpires>
  <FlagLocked>true</FlagLocked>
  <LastLogin>2025-10-26T11:10:07.9209049+08:00</LastLogin>
  <MobileNo>sample string 13</MobileNo>
  <Password>sample string 5</Password>
  <Photo>QEA=</Photo>
  <RegisteredDate>2025-10-26T11:10:07.9209049+08:00</RegisteredDate>
  <SecondaryPassA>sample string 7</SecondaryPassA>
  <SecondaryPassQ>sample string 6</SecondaryPassQ>
  <TenantID>11</TenantID>
  <UserFullName>sample string 3</UserFullName>
  <Username>sample string 4</Username>
</DTOPublicAccountView>