PUT api/Content/v2/GetLoyaltyHistory

Request Information

URI Parameters

None.

Body Parameters

APILoyaltyHistoryRequest
NameDescriptionTypeAdditional information
CustomerId

integer

None.

UserUniqueId

integer

None.

UniqueId

globally unique identifier

None.

SortBy

string

None.

SortDir

string

None.

PageNumber

integer

None.

ProgramId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerId": 1,
  "UserUniqueId": 2,
  "UniqueId": "710ef25e-863c-4f23-b6d7-f8e3a95346b8",
  "SortBy": "sample string 4",
  "SortDir": "sample string 5",
  "PageNumber": 6,
  "ProgramId": 7
}

application/xml, text/xml

Sample:
<APILoyaltyHistoryRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tsunami.Model">
  <CustomerId>1</CustomerId>
  <PageNumber>6</PageNumber>
  <ProgramId>7</ProgramId>
  <SortBy>sample string 4</SortBy>
  <SortDir>sample string 5</SortDir>
  <UniqueId>710ef25e-863c-4f23-b6d7-f8e3a95346b8</UniqueId>
  <UserUniqueId>2</UserUniqueId>
</APILoyaltyHistoryRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

APILoyaltyHistoryResponse
NameDescriptionTypeAdditional information
List

Collection of APILoyaltyHistory

None.

TotalRecords

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "List": [
    {
      "LoyaltyEventName": "sample string 1",
      "Points": 2,
      "Redeemed": true,
      "CreatedDate": 4
    },
    {
      "LoyaltyEventName": "sample string 1",
      "Points": 2,
      "Redeemed": true,
      "CreatedDate": 4
    }
  ],
  "TotalRecords": 1
}

application/xml, text/xml

Sample:
<APILoyaltyHistoryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tsunami.Model">
  <List>
    <APILoyaltyHistory>
      <CreatedDate>4</CreatedDate>
      <LoyaltyEventName>sample string 1</LoyaltyEventName>
      <Points>2</Points>
      <Redeemed>true</Redeemed>
    </APILoyaltyHistory>
    <APILoyaltyHistory>
      <CreatedDate>4</CreatedDate>
      <LoyaltyEventName>sample string 1</LoyaltyEventName>
      <Points>2</Points>
      <Redeemed>true</Redeemed>
    </APILoyaltyHistory>
  </List>
  <TotalRecords>1</TotalRecords>
</APILoyaltyHistoryResponse>