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-24T06:07:31.3724421Z",
"description": "sample string 3"
},
{
"rewardId": "sample string 1",
"amount": 1.0,
"payoutId": "sample string 2",
"eligibilityDate": "2025-11-24T06:07:31.3724421Z",
"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-24T06:07:31.3724421+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-24T06:07:31.3724421+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": "ff0b635d-68c4-41b3-9e5c-0a8d9296ce78",
"payoutId": "2c2cef8c-64e0-49a7-80e0-48f16c26ef8c",
"payoutDescription": "sample string 3",
"programId": "1effc04a-8a64-4118-8d92-7d519e1e9141",
"programName": "sample string 5",
"memberId": "859f302b-bfb1-4690-b148-607d1be0f33f",
"referralId": "5634d483-078d-45f7-bdfd-f23eb1edfcba",
"type": "sample string 6",
"recipientId": "aaf4a3d0-4620-45a9-9b60-17b85346f15f",
"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-24T06:07:31.3880165Z",
"issueDate": "2025-11-24T06:07:31.3880165Z",
"eligibilityDate": "2025-11-24T06:07:31.3880165Z",
"description": "sample string 15",
"transactionID": "336f91d5-2373-4cf6-9a44-51495fdba1a1",
"updateDate": "2025-11-24T06:07:31.3880165Z",
"referralDisplayName": "sample string 17",
"currencyCode": "sample string 18",
"source": "sample string 19",
"programRewardRuleId": "a77b1407-ca4c-4bc4-9c3a-e2be8eb7ea02",
"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>ff0b635d-68c4-41b3-9e5c-0a8d9296ce78</id>
<payoutId>2c2cef8c-64e0-49a7-80e0-48f16c26ef8c</payoutId>
<payoutDescription>sample string 3</payoutDescription>
<programId>1effc04a-8a64-4118-8d92-7d519e1e9141</programId>
<programName>sample string 5</programName>
<memberId>859f302b-bfb1-4690-b148-607d1be0f33f</memberId>
<referralId>5634d483-078d-45f7-bdfd-f23eb1edfcba</referralId>
<type>sample string 6</type>
<recipientId>aaf4a3d0-4620-45a9-9b60-17b85346f15f</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-24T06:07:31.3880165+00:00</createDate>
<issueDate>2025-11-24T06:07:31.3880165+00:00</issueDate>
<eligibilityDate>2025-11-24T06:07:31.3880165+00:00</eligibilityDate>
<description>sample string 15</description>
<transactionID>336f91d5-2373-4cf6-9a44-51495fdba1a1</transactionID>
<updateDate>2025-11-24T06:07:31.3880165+00:00</updateDate>
<referralDisplayName>sample string 17</referralDisplayName>
<currencyCode>sample string 18</currencyCode>
<source>sample string 19</source>
<programRewardRuleId>a77b1407-ca4c-4bc4-9c3a-e2be8eb7ea02</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>