POST api/Account/authenticate

Authenticate with a username and password. Response contains a detailed account profile.

Request Information

URI Parameters

None.

Body Parameters

Credentials object containing username and password

UserCredentials
NameDescriptionTypeAdditional information
Username

Email adddress for the account

string

None.

Password

Current password for the account

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Username": "john.doe@email.com",
  "Password": "PlainTextPassword"
}

application/xml, text/xml

Sample:
<UserCredentials xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PBR.FanClub.WebAPI.Models">
  <Password>PlainTextPassword</Password>
  <Username>john.doe@email.com</Username>
</UserCredentials>

Response Information

Resource Description

AuthenticationResponse
NameDescriptionTypeAdditional information
AuthenticatedUser

UserAccount

None.

Success

Boolean value indicating if request was fulfilled

boolean

None.

ErrorMessage

List of any errors or problems that prevented request from being fulfilled.

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "AuthenticatedUser": {
    "UserAccountID": 54321,
    "Subscription": null,
    "VerifyToken": "e9c45477-6f3d-40b3-b278-b186691150a6",
    "EmailAddress": "john.doe@email.com",
    "LastName": "Doe",
    "FirstName": "John",
    "Alias": "Johnny",
    "Passport": null,
    "Gender": "M",
    "BirthDate": "1970-06-28",
    "Address1": "123 Main St.",
    "Address2": "Apt. 2-D",
    "City": "AnyTown",
    "State": "NY",
    "Country": "US",
    "PostalCode": "10001",
    "Phone_Home": null,
    "Phone_Office": null,
    "Phone_Mobile": "2125551212",
    "SMS_OptIn": null,
    "MailingList_OptIn": true
  },
  "Success": true,
  "ErrorMessage": []
}

application/xml, text/xml

Sample:
<AuthenticationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PBR.FanClub.WebAPI.Models">
  <ErrorMessage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
  <Success>true</Success>
  <AuthenticatedUser>
    <Address1>123 Main St.</Address1>
    <Address2>Apt. 2-D</Address2>
    <Alias>Johnny</Alias>
    <BirthDate>1970-06-28</BirthDate>
    <City>AnyTown</City>
    <Country>US</Country>
    <EmailAddress>john.doe@email.com</EmailAddress>
    <FirstName>John</FirstName>
    <Gender>M</Gender>
    <LastName>Doe</LastName>
    <MailingList_OptIn>true</MailingList_OptIn>
    <Passport i:nil="true" />
    <Phone_Home i:nil="true" />
    <Phone_Mobile>2125551212</Phone_Mobile>
    <Phone_Office i:nil="true" />
    <PostalCode>10001</PostalCode>
    <SMS_OptIn i:nil="true" />
    <State>NY</State>
    <Subscription i:nil="true" />
    <UserAccountID>54321</UserAccountID>
    <VerifyToken>e9c45477-6f3d-40b3-b278-b186691150a6</VerifyToken>
  </AuthenticatedUser>
</AuthenticationResponse>