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-12-11T18:36:56.2926879Z",
"description": "sample string 3"
},
{
"rewardId": "sample string 1",
"amount": 1.0,
"payoutId": "sample string 2",
"eligibilityDate": "2025-12-11T18:36:56.2926879Z",
"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-12-11T18:36:56.2926879+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-12-11T18:36:56.2926879+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": "5c194900-daba-4f6e-ae1d-c82d1c3ea7d1",
"payoutId": "b1978721-f801-4905-a8eb-5df68a0076dc",
"payoutDescription": "sample string 3",
"programId": "b5a7e900-3713-412f-91f8-b567c0cda341",
"programName": "sample string 5",
"memberId": "b685a57a-c008-4114-8467-d8ad6d1b0a60",
"referralId": "9b7cafb7-e3fe-42e8-8a82-7792b56eb9cd",
"type": "sample string 6",
"recipientId": "e44fe9f7-72f7-4d88-a6aa-f587a6fb352c",
"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-12-11T18:36:56.3083114Z",
"issueDate": "2025-12-11T18:36:56.3083114Z",
"eligibilityDate": "2025-12-11T18:36:56.3083114Z",
"description": "sample string 15",
"transactionID": "ebebb44f-a15f-4e0d-90e3-dfe1b30d389a",
"updateDate": "2025-12-11T18:36:56.3083114Z",
"referralDisplayName": "sample string 17",
"currencyCode": "sample string 18",
"source": "sample string 19",
"programRewardRuleId": "f6d842f3-954e-4ee4-87b7-1c6cedaf044e",
"paymentType": "sample string 20",
"paymentCode": "sample string 21",
"completeNote": "sample string 22",
"reason": "sample string 23",
"reasonOther": "sample string 24"
}
}
application/xml, text/xml
<rewardConfirmation xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<message>sample string 1</message>
<reward>
<id>5c194900-daba-4f6e-ae1d-c82d1c3ea7d1</id>
<payoutId>b1978721-f801-4905-a8eb-5df68a0076dc</payoutId>
<payoutDescription>sample string 3</payoutDescription>
<programId>b5a7e900-3713-412f-91f8-b567c0cda341</programId>
<programName>sample string 5</programName>
<memberId>b685a57a-c008-4114-8467-d8ad6d1b0a60</memberId>
<referralId>9b7cafb7-e3fe-42e8-8a82-7792b56eb9cd</referralId>
<type>sample string 6</type>
<recipientId>e44fe9f7-72f7-4d88-a6aa-f587a6fb352c</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-12-11T18:36:56.3083114+00:00</createDate>
<issueDate>2025-12-11T18:36:56.3083114+00:00</issueDate>
<eligibilityDate>2025-12-11T18:36:56.3083114+00:00</eligibilityDate>
<description>sample string 15</description>
<transactionID>ebebb44f-a15f-4e0d-90e3-dfe1b30d389a</transactionID>
<updateDate>2025-12-11T18:36:56.3083114+00:00</updateDate>
<referralDisplayName>sample string 17</referralDisplayName>
<currencyCode>sample string 18</currencyCode>
<source>sample string 19</source>
<programRewardRuleId>f6d842f3-954e-4ee4-87b7-1c6cedaf044e</programRewardRuleId>
<paymentType>sample string 20</paymentType>
<paymentCode>sample string 21</paymentCode>
<completeNote>sample string 22</completeNote>
<reason>sample string 23</reason>
<reasonOther>sample string 24</reasonOther>
</reward>
</rewardConfirmation>