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-11-24T15:19:25.6504357Z",
"description": "sample string 3"
},
{
"rewardId": "sample string 1",
"amount": 1.0,
"payoutId": "sample string 2",
"eligibilityDate": "2025-11-24T15:19:25.6504357Z",
"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-11-24T15:19:25.6504357+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-11-24T15:19:25.6504357+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": "4f1388ef-3368-45e7-8056-8309ab8f5858",
"payoutId": "263114f2-23f5-4dcd-ae56-de996b37a273",
"payoutDescription": "sample string 3",
"programId": "55fd2040-b272-47db-9739-28d14848cead",
"programName": "sample string 5",
"memberId": "f289b584-51f1-44e9-9ba1-3d8cdba810fc",
"referralId": "008dda32-551f-4501-8f13-4ad4a8289033",
"type": "sample string 6",
"recipientId": "d9e83b1f-5b61-4a97-a48b-1fd2d290a044",
"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-11-24T15:19:25.6660607Z",
"issueDate": "2025-11-24T15:19:25.6660607Z",
"eligibilityDate": "2025-11-24T15:19:25.6660607Z",
"description": "sample string 15",
"transactionID": "baa0fb1b-78c9-46e7-9d81-e6181dbbc1f8",
"updateDate": "2025-11-24T15:19:25.6660607Z",
"referralDisplayName": "sample string 17",
"currencyCode": "sample string 18",
"source": "sample string 19",
"programRewardRuleId": "fb123b77-d07f-47c1-adcb-073df3a051e0",
"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>4f1388ef-3368-45e7-8056-8309ab8f5858</id>
<payoutId>263114f2-23f5-4dcd-ae56-de996b37a273</payoutId>
<payoutDescription>sample string 3</payoutDescription>
<programId>55fd2040-b272-47db-9739-28d14848cead</programId>
<programName>sample string 5</programName>
<memberId>f289b584-51f1-44e9-9ba1-3d8cdba810fc</memberId>
<referralId>008dda32-551f-4501-8f13-4ad4a8289033</referralId>
<type>sample string 6</type>
<recipientId>d9e83b1f-5b61-4a97-a48b-1fd2d290a044</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-11-24T15:19:25.6660607+00:00</createDate>
<issueDate>2025-11-24T15:19:25.6660607+00:00</issueDate>
<eligibilityDate>2025-11-24T15:19:25.6660607+00:00</eligibilityDate>
<description>sample string 15</description>
<transactionID>baa0fb1b-78c9-46e7-9d81-e6181dbbc1f8</transactionID>
<updateDate>2025-11-24T15:19:25.6660607+00:00</updateDate>
<referralDisplayName>sample string 17</referralDisplayName>
<currencyCode>sample string 18</currencyCode>
<source>sample string 19</source>
<programRewardRuleId>fb123b77-d07f-47c1-adcb-073df3a051e0</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>