POST api/Authentication/GetToken

Requests a Token for use in making calls to the WebAPI. The token will be set for 6 months. If the password does not match -or the Client is not marked as active - then the Token will contain an authentication = false.

Request Information

URI Parameters

None.

Body Parameters

Credentials

GetTokenRequest
NameDescriptionTypeAdditional information
UserID

string

None.

Password

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserID": "sample string 1",
  "Password": "sample string 2"
}

application/xml, text/xml

Sample:
<GetTokenRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MarketplaceDataContracts.Request">
  <Password>sample string 2</Password>
  <UserID>sample string 1</UserID>
</GetTokenRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

a Token upon authentication.

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>