POST api/rewards/update
Updates rewards from a referral program.
Request Information
URI Parameters
Query String:
None.
Body Parameters
A list of required structures containing the details of the reward to update.
Type: Collection of UpdateReward
Name | Description | Type | Additional information |
---|---|---|---|
rewardId |
The unique ID of a reward to update. |
string |
Required |
amount |
The value of the reward. Optional. |
decimal number |
None. |
payoutId |
The ID of the payout of which the reward will be based on. |
string |
Required |
eligibilityDate |
Date on which the recipient would be eligible to recieve the reward. Optional. |
date |
None. |
description |
A text field to provide additional information about the reward. Optional. |
string |
None. |
Request Formats
application/json, text/json
[ { "rewardId": "sample string 1", "amount": 1.0, "payoutId": "sample string 2", "eligibilityDate": "2025-03-28T13:57:58.5861692Z", "description": "sample string 3" }, { "rewardId": "sample string 1", "amount": 1.0, "payoutId": "sample string 2", "eligibilityDate": "2025-03-28T13:57:58.5861692Z", "description": "sample string 3" } ]
application/xml, text/xml
<ArrayOfupdateReward xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <updateReward> <payoutId>sample string 2</payoutId> <eligibilityDate>2025-03-28T13:57:58.5861692+00:00</eligibilityDate> <description>sample string 3</description> <rewardId>sample string 1</rewardId> <amount>1</amount> </updateReward> <updateReward> <payoutId>sample string 2</payoutId> <eligibilityDate>2025-03-28T13:57:58.5861692+00:00</eligibilityDate> <description>sample string 3</description> <rewardId>sample string 1</rewardId> <amount>1</amount> </updateReward> </ArrayOfupdateReward>
Response Information
Resource Description
[HTTP Status 200 - OK]
Type: RewardConfirmation
Name | Description | Type | Additional information |
---|---|---|---|
reward |
Structure containing details about a reward |
Reward |
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
{ "message": "sample string 1", "reward": { "id": "7bc09bc5-8058-4e1d-b852-f79c47836a4d", "payoutId": "aa375449-5339-4d1e-ac08-38f04f1dd863", "payoutDescription": "sample string 3", "programId": "e2e15919-e22d-44c1-ad8e-aaa43ebe37da", "programName": "sample string 5", "memberId": "7ce7818b-1509-40b9-a72d-432a7133a383", "referralId": "b4117c5e-c63b-4a18-948f-c1b7cf5d8102", "type": "sample string 6", "recipientId": "8389c8a6-5279-4502-aad9-f6c930700d59", "recipientName": "sample string 7", "recipientEmailAddress": "sample string 8", "recipientExternalIdentifier": "sample string 9", "externalIdentifier": "sample string 10", "status": "sample string 11", "amount": 12.0, "createDate": "2025-03-28T13:57:58.6018019Z", "issueDate": "2025-03-28T13:57:58.6018019Z", "eligibilityDate": "2025-03-28T13:57:58.6018019Z", "description": "sample string 15", "transactionID": "128c3555-fa59-4a57-a39d-4937a51ba769", "updateDate": "2025-03-28T13:57:58.6018019Z", "referralDisplayName": "sample string 17", "currencyCode": "sample string 18", "source": "sample string 19", "programRewardRuleId": "070094cd-3766-42c8-8aea-5972f2f1c1b8", "paymentType": "sample string 20", "paymentCode": "sample string 21", "completeNote": "sample string 22" } }
application/xml, text/xml
<rewardConfirmation xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <message>sample string 1</message> <reward> <id>7bc09bc5-8058-4e1d-b852-f79c47836a4d</id> <payoutId>aa375449-5339-4d1e-ac08-38f04f1dd863</payoutId> <payoutDescription>sample string 3</payoutDescription> <programId>e2e15919-e22d-44c1-ad8e-aaa43ebe37da</programId> <programName>sample string 5</programName> <memberId>7ce7818b-1509-40b9-a72d-432a7133a383</memberId> <referralId>b4117c5e-c63b-4a18-948f-c1b7cf5d8102</referralId> <type>sample string 6</type> <recipientId>8389c8a6-5279-4502-aad9-f6c930700d59</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>2025-03-28T13:57:58.6018019+00:00</createDate> <issueDate>2025-03-28T13:57:58.6018019+00:00</issueDate> <eligibilityDate>2025-03-28T13:57:58.6018019+00:00</eligibilityDate> <description>sample string 15</description> <transactionID>128c3555-fa59-4a57-a39d-4937a51ba769</transactionID> <updateDate>2025-03-28T13:57:58.6018019+00:00</updateDate> <referralDisplayName>sample string 17</referralDisplayName> <currencyCode>sample string 18</currencyCode> <source>sample string 19</source> <programRewardRuleId>070094cd-3766-42c8-8aea-5972f2f1c1b8</programRewardRuleId> <paymentType>sample string 20</paymentType> <paymentCode>sample string 21</paymentCode> <completeNote>sample string 22</completeNote> </reward> </rewardConfirmation>