GET api/rewards

Gets a list of rewards ordered by create date. The offset and count parameters can be used to specify the set of referrals.

Request Information

URI Parameters

Query String: programId={programId}&memberId={memberId}&query={query}&status={status}&sort={sort}&dateFrom={dateFrom}&dateTo={dateTo}&offset={offset}&count={count}

NameDescriptionTypeAdditional information
programId

ID of the program, program name, or program title. Optional.

string

None.

memberId

ID of the member. Optional.

globally unique identifier

None.

query

If specified, the recipient must have this value as its email address, id, or external id. You can also query by member referral code Optional.

string

None.

status

If specified, the rewards must be in this status. Accepted values are 'Pending', 'Processing', and 'Issued'. Optional

string

None.

sort

Column to sort by. Accepted values: Create_Dt_Asc , Create_Dt_Desc , Reward_Action_Desc, Reward_Action_Asc, Recipient_Name_Desc, Recipient_Name_Asc, Complete_Dt_Desc, Complete_Dt_Asc. Optional.

string

Default value is Create_Dt_Desc

dateFrom

Show all members created after this date. Optional.

date

None.

dateTo

Show all members created before this date. Optional.

date

None.

offset

Starting index (0 based) of the referrals. Optional.

integer

Default value is 0

count

Count of referrals rewards. Optional.

integer

Default value is 2147483647

Body Parameters

None.

Response Information

Resource Description

[HTTP Status 200 - OK] A set of rewards.

Type: RewardSet

NameDescriptionTypeAdditional information
rewards

Collection of Reward

None.

offset

Starting index (0 based) of the elements in the set.

integer

None.

total

Total number of elements in the set.

integer

None.

message

The message provides more information about the results of the client's request. Review this field for error information.

string

None.

Response Formats

application/json, text/json

Sample:
{
  "offset": 1,
  "total": 2,
  "message": "sample string 3",
  "rewards": [
    {
      "id": "ad09a81f-cb0d-4530-b754-825450638b7a",
      "payoutId": "69957b7a-dc44-46b1-b66e-8df463be0f02",
      "payoutDescription": "sample string 3",
      "programId": "57c8dadf-d80b-474b-898d-24a90f87399f",
      "programName": "sample string 5",
      "memberId": "8483d479-e793-46fc-b2e4-1275bc9e91e9",
      "referralId": "541d28cd-1bf1-4746-adb8-aaf0e53052de",
      "type": "sample string 6",
      "recipientId": "dcd33dc4-dbe3-409c-a27b-fa165fb42f5b",
      "recipientName": "sample string 7",
      "recipientEmailAddress": "sample string 8",
      "recipientExternalIdentifier": "sample string 9",
      "externalIdentifier": "sample string 10",
      "status": "sample string 11",
      "amount": 12.0,
      "createDate": "2024-03-26T20:14:54.8039302Z",
      "issueDate": "2024-03-26T20:14:54.8039302Z",
      "eligibilityDate": "2024-03-26T20:14:54.8039302Z",
      "description": "sample string 15",
      "transactionID": "5bd19418-e932-4599-825e-b29a5f7dff73",
      "updateDate": "2024-03-26T20:14:54.8039302Z",
      "referralDisplayName": "sample string 17",
      "currencyCode": "sample string 18",
      "source": "sample string 19",
      "programRewardRuleId": "af50e8d8-528e-44ea-8ead-d22b4c8841ee",
      "paymentType": "sample string 20",
      "paymentCode": "sample string 21",
      "completeNote": "sample string 22"
    },
    {
      "id": "ad09a81f-cb0d-4530-b754-825450638b7a",
      "payoutId": "69957b7a-dc44-46b1-b66e-8df463be0f02",
      "payoutDescription": "sample string 3",
      "programId": "57c8dadf-d80b-474b-898d-24a90f87399f",
      "programName": "sample string 5",
      "memberId": "8483d479-e793-46fc-b2e4-1275bc9e91e9",
      "referralId": "541d28cd-1bf1-4746-adb8-aaf0e53052de",
      "type": "sample string 6",
      "recipientId": "dcd33dc4-dbe3-409c-a27b-fa165fb42f5b",
      "recipientName": "sample string 7",
      "recipientEmailAddress": "sample string 8",
      "recipientExternalIdentifier": "sample string 9",
      "externalIdentifier": "sample string 10",
      "status": "sample string 11",
      "amount": 12.0,
      "createDate": "2024-03-26T20:14:54.8039302Z",
      "issueDate": "2024-03-26T20:14:54.8039302Z",
      "eligibilityDate": "2024-03-26T20:14:54.8039302Z",
      "description": "sample string 15",
      "transactionID": "5bd19418-e932-4599-825e-b29a5f7dff73",
      "updateDate": "2024-03-26T20:14:54.8039302Z",
      "referralDisplayName": "sample string 17",
      "currencyCode": "sample string 18",
      "source": "sample string 19",
      "programRewardRuleId": "af50e8d8-528e-44ea-8ead-d22b4c8841ee",
      "paymentType": "sample string 20",
      "paymentCode": "sample string 21",
      "completeNote": "sample string 22"
    }
  ]
}

application/xml, text/xml

Sample:
<RewardSet xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <offset>1</offset>
  <total>2</total>
  <message>sample string 3</message>
  <rewards>
    <reward>
      <id>ad09a81f-cb0d-4530-b754-825450638b7a</id>
      <payoutId>69957b7a-dc44-46b1-b66e-8df463be0f02</payoutId>
      <payoutDescription>sample string 3</payoutDescription>
      <programId>57c8dadf-d80b-474b-898d-24a90f87399f</programId>
      <programName>sample string 5</programName>
      <memberId>8483d479-e793-46fc-b2e4-1275bc9e91e9</memberId>
      <referralId>541d28cd-1bf1-4746-adb8-aaf0e53052de</referralId>
      <type>sample string 6</type>
      <recipientId>dcd33dc4-dbe3-409c-a27b-fa165fb42f5b</recipientId>
      <recipientName>sample string 7</recipientName>
      <recipientEmailAddress>sample string 8</recipientEmailAddress>
      <recipientExternalIdentifier>sample string 9</recipientExternalIdentifier>
      <externalIdentifier>sample string 10</externalIdentifier>
      <status>sample string 11</status>
      <amount>12</amount>
      <createDate>2024-03-26T20:14:54.8039302+00:00</createDate>
      <issueDate>2024-03-26T20:14:54.8039302+00:00</issueDate>
      <eligibilityDate>2024-03-26T20:14:54.8039302+00:00</eligibilityDate>
      <description>sample string 15</description>
      <transactionID>5bd19418-e932-4599-825e-b29a5f7dff73</transactionID>
      <updateDate>2024-03-26T20:14:54.8039302+00:00</updateDate>
      <referralDisplayName>sample string 17</referralDisplayName>
      <currencyCode>sample string 18</currencyCode>
      <source>sample string 19</source>
      <programRewardRuleId>af50e8d8-528e-44ea-8ead-d22b4c8841ee</programRewardRuleId>
      <paymentType>sample string 20</paymentType>
      <paymentCode>sample string 21</paymentCode>
      <completeNote>sample string 22</completeNote>
    </reward>
    <reward>
      <id>ad09a81f-cb0d-4530-b754-825450638b7a</id>
      <payoutId>69957b7a-dc44-46b1-b66e-8df463be0f02</payoutId>
      <payoutDescription>sample string 3</payoutDescription>
      <programId>57c8dadf-d80b-474b-898d-24a90f87399f</programId>
      <programName>sample string 5</programName>
      <memberId>8483d479-e793-46fc-b2e4-1275bc9e91e9</memberId>
      <referralId>541d28cd-1bf1-4746-adb8-aaf0e53052de</referralId>
      <type>sample string 6</type>
      <recipientId>dcd33dc4-dbe3-409c-a27b-fa165fb42f5b</recipientId>
      <recipientName>sample string 7</recipientName>
      <recipientEmailAddress>sample string 8</recipientEmailAddress>
      <recipientExternalIdentifier>sample string 9</recipientExternalIdentifier>
      <externalIdentifier>sample string 10</externalIdentifier>
      <status>sample string 11</status>
      <amount>12</amount>
      <createDate>2024-03-26T20:14:54.8039302+00:00</createDate>
      <issueDate>2024-03-26T20:14:54.8039302+00:00</issueDate>
      <eligibilityDate>2024-03-26T20:14:54.8039302+00:00</eligibilityDate>
      <description>sample string 15</description>
      <transactionID>5bd19418-e932-4599-825e-b29a5f7dff73</transactionID>
      <updateDate>2024-03-26T20:14:54.8039302+00:00</updateDate>
      <referralDisplayName>sample string 17</referralDisplayName>
      <currencyCode>sample string 18</currencyCode>
      <source>sample string 19</source>
      <programRewardRuleId>af50e8d8-528e-44ea-8ead-d22b4c8841ee</programRewardRuleId>
      <paymentType>sample string 20</paymentType>
      <paymentCode>sample string 21</paymentCode>
      <completeNote>sample string 22</completeNote>
    </reward>
  </rewards>
</RewardSet>