POST loyalty/profile/{cardNumber}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
cardNumber

string

Required

Body Parameters

LoyaltyRequest
NameDescriptionTypeAdditional information
company

string

None.

companyUsername

string

None.

companyPassword

string

None.

requestUser

string

None.

requestPassword

string

None.

Request Formats

application/json, text/json

Sample:
{
  "company": "sample string 1",
  "companyUsername": "sample string 2",
  "companyPassword": "sample string 3",
  "requestUser": "sample string 4",
  "requestPassword": "sample string 5"
}

application/xml, text/xml

Sample:
<LoyaltyRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Loyalty.Core.Contracts">
  <company>sample string 1</company>
  <companyPassword>sample string 3</companyPassword>
  <companyUsername>sample string 2</companyUsername>
  <requestPassword>sample string 5</requestPassword>
  <requestUser>sample string 4</requestUser>
</LoyaltyRequest>

Response Information

Resource Description

LoyaltyMemberProfile
NameDescriptionTypeAdditional information
profileExists

boolean

None.

memberAccountId

integer

None.

cardNumber

string

None.

firstName

string

None.

lastName

string

None.

company

string

None.

driversLicense

string

None.

address1

string

None.

address2

string

None.

city

string

None.

stateProvince

string

None.

country

string

None.

postalCode

string

None.

emailAddress

string

None.

phoneNumber

string

None.

otherPhoneNumber

string

None.

dateOfBirth

string

None.

dateOfBirthLocale

string

None.

anniversaryDate

string

None.

anniversaryDateLocale

string

None.

companyDefinedFields

Dictionary of integer [key] and string [value]

None.

Response Formats

application/json, text/json

Sample:
{
  "profileExists": true,
  "memberAccountId": 2,
  "cardNumber": "sample string 3",
  "firstName": "sample string 4",
  "lastName": "sample string 5",
  "company": "sample string 6",
  "driversLicense": "sample string 7",
  "address1": "sample string 8",
  "address2": "sample string 9",
  "city": "sample string 10",
  "stateProvince": "sample string 11",
  "country": "sample string 12",
  "postalCode": "sample string 13",
  "emailAddress": "sample string 14",
  "phoneNumber": "sample string 15",
  "otherPhoneNumber": "sample string 16",
  "dateOfBirth": "sample string 17",
  "dateOfBirthLocale": "sample string 18",
  "anniversaryDate": "sample string 19",
  "anniversaryDateLocale": "sample string 20",
  "companyDefinedFields": {
    "1": "sample string 2",
    "3": "sample string 4"
  }
}

application/xml, text/xml

Sample:
<LoyaltyMemberProfile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Loyalty.Core.Contracts">
  <address1>sample string 8</address1>
  <address2>sample string 9</address2>
  <anniversaryDate>sample string 19</anniversaryDate>
  <anniversaryDateLocale>sample string 20</anniversaryDateLocale>
  <cardNumber>sample string 3</cardNumber>
  <city>sample string 10</city>
  <company>sample string 6</company>
  <companyDefinedFields xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfintstring>
      <d2p1:Key>1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfintstring>
    <d2p1:KeyValueOfintstring>
      <d2p1:Key>3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfintstring>
  </companyDefinedFields>
  <country>sample string 12</country>
  <dateOfBirth>sample string 17</dateOfBirth>
  <dateOfBirthLocale>sample string 18</dateOfBirthLocale>
  <driversLicense>sample string 7</driversLicense>
  <emailAddress>sample string 14</emailAddress>
  <firstName>sample string 4</firstName>
  <lastName>sample string 5</lastName>
  <memberAccountId>2</memberAccountId>
  <otherPhoneNumber>sample string 16</otherPhoneNumber>
  <phoneNumber>sample string 15</phoneNumber>
  <postalCode>sample string 13</postalCode>
  <profileExists>true</profileExists>
  <stateProvince>sample string 11</stateProvince>
</LoyaltyMemberProfile>