POST papi/v1/generatetoken


Security

Anonymous API


Request Information

URI Parameters

None.

Required Headers

Name Description Sample Type Default
ConsumerId Represents the value of the consumer id.
Allow multiple values: no.
2426 integer None

Optional Headers

Name Description Sample Type Default
ApplicationType Represents the value of the consumer's application type.
Allow multiple values: no.
1 ApplicationType None
Accept-Language Represents the value of the desired language for translations.
Allow multiple values: yes.
es string en

Body Parameters

TokenAuthRequest
NameDescriptionTypeAdditional information
Otoken

string

Required

AuthType

AuthType

None.

SourceID

integer

None.

DeviceID

string

None.

VerifyExpiryYN

boolean

None.


Request Formats

application/json, text/json

Sample:
{
  "Otoken": "sample string 1",
  "AuthType": "None",
  "SourceID": 2,
  "DeviceID": "sample string 3",
  "VerifyExpiryYN": true
}

application/xml, text/xml

Sample:
<TokenAuthRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Otoken>sample string 1</Otoken>
  <AuthType>None</AuthType>
  <SourceID>2</SourceID>
  <DeviceID>sample string 3</DeviceID>
  <VerifyExpiryYN>true</VerifyExpiryYN>
</TokenAuthRequest>

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


Response Information

Resource Description

AuthenticatedUser
NameDescriptionTypeAdditional information
UserDetails

IUserInfo

None.

PasswordHash

string

None.

PinHash

string

None.

Response Formats

application/json, text/json

Sample:
{
  "UserDetails": null,
  "PasswordHash": "sample string 1",
  "PinHash": "sample string 2"
}