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}
Name | Description | Type | Additional 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
Name | Description | Type | Additional 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
{ "offset": 1, "total": 2, "message": "sample string 3", "rewards": [ { "id": "c4b7eb9b-d795-428e-9175-682adeedc1e5", "payoutId": "5e13c070-6bfb-4e99-85e7-9b3449dc3325", "payoutDescription": "sample string 3", "programId": "fae73f35-2762-4920-8d61-5af6c6dbe843", "programName": "sample string 5", "memberId": "9a084646-bba5-4747-a945-bba1d8529494", "referralId": "5f262ff5-4c05-4746-abf3-5e5a8fe33ba2", "type": "sample string 6", "recipientId": "1dbbedda-0676-4dda-918a-1cafea2401cb", "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-07-25T10:31:03.529056Z", "issueDate": "2024-07-25T10:31:03.529056Z", "eligibilityDate": "2024-07-25T10:31:03.529056Z", "description": "sample string 15", "transactionID": "5ccb7f19-d36a-4188-9b7d-e64c6653e0a8", "updateDate": "2024-07-25T10:31:03.529056Z", "referralDisplayName": "sample string 17", "currencyCode": "sample string 18", "source": "sample string 19", "programRewardRuleId": "95f3160b-a220-48d1-969c-e63772dd6fd3", "paymentType": "sample string 20", "paymentCode": "sample string 21", "completeNote": "sample string 22" }, { "id": "c4b7eb9b-d795-428e-9175-682adeedc1e5", "payoutId": "5e13c070-6bfb-4e99-85e7-9b3449dc3325", "payoutDescription": "sample string 3", "programId": "fae73f35-2762-4920-8d61-5af6c6dbe843", "programName": "sample string 5", "memberId": "9a084646-bba5-4747-a945-bba1d8529494", "referralId": "5f262ff5-4c05-4746-abf3-5e5a8fe33ba2", "type": "sample string 6", "recipientId": "1dbbedda-0676-4dda-918a-1cafea2401cb", "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-07-25T10:31:03.529056Z", "issueDate": "2024-07-25T10:31:03.529056Z", "eligibilityDate": "2024-07-25T10:31:03.529056Z", "description": "sample string 15", "transactionID": "5ccb7f19-d36a-4188-9b7d-e64c6653e0a8", "updateDate": "2024-07-25T10:31:03.529056Z", "referralDisplayName": "sample string 17", "currencyCode": "sample string 18", "source": "sample string 19", "programRewardRuleId": "95f3160b-a220-48d1-969c-e63772dd6fd3", "paymentType": "sample string 20", "paymentCode": "sample string 21", "completeNote": "sample string 22" } ] }
application/xml, text/xml
<RewardSet xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <offset>1</offset> <total>2</total> <message>sample string 3</message> <rewards> <reward> <id>c4b7eb9b-d795-428e-9175-682adeedc1e5</id> <payoutId>5e13c070-6bfb-4e99-85e7-9b3449dc3325</payoutId> <payoutDescription>sample string 3</payoutDescription> <programId>fae73f35-2762-4920-8d61-5af6c6dbe843</programId> <programName>sample string 5</programName> <memberId>9a084646-bba5-4747-a945-bba1d8529494</memberId> <referralId>5f262ff5-4c05-4746-abf3-5e5a8fe33ba2</referralId> <type>sample string 6</type> <recipientId>1dbbedda-0676-4dda-918a-1cafea2401cb</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-07-25T10:31:03.529056+00:00</createDate> <issueDate>2024-07-25T10:31:03.529056+00:00</issueDate> <eligibilityDate>2024-07-25T10:31:03.529056+00:00</eligibilityDate> <description>sample string 15</description> <transactionID>5ccb7f19-d36a-4188-9b7d-e64c6653e0a8</transactionID> <updateDate>2024-07-25T10:31:03.529056+00:00</updateDate> <referralDisplayName>sample string 17</referralDisplayName> <currencyCode>sample string 18</currencyCode> <source>sample string 19</source> <programRewardRuleId>95f3160b-a220-48d1-969c-e63772dd6fd3</programRewardRuleId> <paymentType>sample string 20</paymentType> <paymentCode>sample string 21</paymentCode> <completeNote>sample string 22</completeNote> </reward> <reward> <id>c4b7eb9b-d795-428e-9175-682adeedc1e5</id> <payoutId>5e13c070-6bfb-4e99-85e7-9b3449dc3325</payoutId> <payoutDescription>sample string 3</payoutDescription> <programId>fae73f35-2762-4920-8d61-5af6c6dbe843</programId> <programName>sample string 5</programName> <memberId>9a084646-bba5-4747-a945-bba1d8529494</memberId> <referralId>5f262ff5-4c05-4746-abf3-5e5a8fe33ba2</referralId> <type>sample string 6</type> <recipientId>1dbbedda-0676-4dda-918a-1cafea2401cb</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-07-25T10:31:03.529056+00:00</createDate> <issueDate>2024-07-25T10:31:03.529056+00:00</issueDate> <eligibilityDate>2024-07-25T10:31:03.529056+00:00</eligibilityDate> <description>sample string 15</description> <transactionID>5ccb7f19-d36a-4188-9b7d-e64c6653e0a8</transactionID> <updateDate>2024-07-25T10:31:03.529056+00:00</updateDate> <referralDisplayName>sample string 17</referralDisplayName> <currencyCode>sample string 18</currencyCode> <source>sample string 19</source> <programRewardRuleId>95f3160b-a220-48d1-969c-e63772dd6fd3</programRewardRuleId> <paymentType>sample string 20</paymentType> <paymentCode>sample string 21</paymentCode> <completeNote>sample string 22</completeNote> </reward> </rewards> </RewardSet>