POST api/Authentication/GetToken

Request Information

URI Parameters

None.

Body Parameters

WebsiteTokenRequestModel
NameDescriptionTypeAdditional information
Username

string

Required

Password

string

Required

Request Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<WebsiteTokenRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalWalletService.Models">
  <Password>sample string 2</Password>
  <Username>sample string 1</Username>
</WebsiteTokenRequestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

WebsiteTokenResponseModel
NameDescriptionTypeAdditional information
AccessToken

string

None.

Brand

string

None.

GroupNumbers

Collection of GroupNumberModel

None.

Response Formats

application/json, text/json

Sample:
{
  "AccessToken": "sample string 1",
  "Brand": "sample string 2",
  "GroupNumbers": [
    {
      "GroupNumberKey": "sample string 1",
      "Channel": "sample string 2"
    },
    {
      "GroupNumberKey": "sample string 1",
      "Channel": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<WebsiteTokenResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalWalletService.Models">
  <AccessToken>sample string 1</AccessToken>
  <Brand>sample string 2</Brand>
  <GroupNumbers>
    <GroupNumberModel>
      <Channel>sample string 2</Channel>
      <GroupNumberKey>sample string 1</GroupNumberKey>
    </GroupNumberModel>
    <GroupNumberModel>
      <Channel>sample string 2</Channel>
      <GroupNumberKey>sample string 1</GroupNumberKey>
    </GroupNumberModel>
  </GroupNumbers>
</WebsiteTokenResponseModel>