This method calculates the total awarded amount that was provided to a specific rewards participant and the amount that was awarded by each scheme that the rewards participant participated to. A single rewards participant can be specified in each call.
Resource URL
Parameters
Name | Type | Description |
token | String | The token retrieved from the login method |
rewards_participant_identifier (mandatory) | Rewards Participant Identifier | The rewards participant for which the awarded amount will be calculated for. The allowed rewards participant identifier fields are the following: Name | Type | Description |
---|
id (semi-optional) | String | The ID of the rewards participant | number (semi-optional) | String | The number of the rewards participant |
|
reward_scheme_identifier (optional) | Reward Scheme Identifier | The reward scheme that awarded the calculated amount. If specified then the calculation will include only awards provided by the specified reward scheme. The allowed reward scheme identifier fields are the following: Name | Type | Description |
---|
id (semi-optional) | String | The ID of the reward scheme | name (semi-optional) | String | The name of the reward scheme | alternative_code (semi-optional) | String | The alternative code of the reward scheme |
|
from_date (optional) | Date | If specified then the calculation will include only awards that were provided on that date or on a date after that date will be |
to_date (optional) | Date | If specified then the calculation will include only awards that were provided on that date or on a date before that date will be |
fields_set (optional) | List of Strings, comma separated | |
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.
Response Data
Name | Type | Description |
---|
total_awarded_amount | Number | The total amount that was awarded to the specific rewards participant in rewards participant's currency |
total_awarded_alternative_amount | Number | The total amount that was awarded to the specific rewards participant in rewards participant's alternative currency, if any. |
from_date | Date | The date that the first award was applied |
to_date | Date | The date that the last award was applied |
currency | Currency object | The reward participant's currency |
alternative_currency | Currency Object | The reward participant's alternative currency
|
reward_scheme_awards_set | Set of Reward Scheme Awards Objects | A list of awards provided by reward schemes that the rewards participant participated to |
Referred Objects Response Data
currency object response data
Name | Type | Description |
---|
id | String | The ID of the retrieved currency |
code | String | The code of the retrieved currency |
prefix_symbol | String | The prefix symbol for the specified currency |
suffix_symbol | String | The suffix symbol for the specified currency |
life_cycle_state | String | The life cycle state for the specified currency, which can be EFFECTIVE or NOT EFFECTIVE |
integer_part_name | String | The integer part name for the specified currency |
decimal_part_name | String | The decimal part name for the specified currency |
reward scheme awards object response data
Name | Type | Description |
---|
total_awarded_amount | Number | The total amount that was awarded by the specific scheme |
scheme | Reward Scheme Object | The reward scheme that provided the award |
Referred Objects Response Data
reward scheme object response data
Name | Type | Description |
---|
id | String | The ID of the retrieved reward scheme |
name | String | The name of the retrieved reward scheme |
alternative_code | String | The alternative code of the retrieved reward scheme |
description | String | A description of the retrieved reward scheme |
life_cycle_state | String | The life cycle state of the reward scheme which can be EFFECTIVE or NOT_EFFECTIVE |
Examples
Example 1
HTTP Method: POST
Request:
Body:
{
"token":"{{token}}",
"rewards_participant":{"number":"1"},
"from_date":"2016-03-23T12:00:40",
"to_date":"2016-03-29T09:00:00"
}
Response:
{
"data": {
"from_date": "2016-03-23T13:43:34",
"to_date": "2016-03-29T08:57:34",
"currency": {
"suffix_symbol": null,
"prefix_symbol": "£",
"decimal_part_name": null,
"code": "GBP",
"integer_part_name": null,
"id": "9"
},
"reward_scheme_awards_set": [
{
"scheme": {
"alternative_code": "SSS",
"name": "Sales Scheme",
"description": "desc",
"id": "3592610A4F01454E97AF71C9E47646FB",
"life_cycle_state": "EFFECTIVE"
},
"total_awarded_amount": 6
},
{
"scheme": {
"alternative_code": "MS",
"name": "Marketing Scheme",
"description": null,
"id": "6CAAD517743C4C179251282A5B2B58A6",
"life_cycle_state": "EFFECTIVE"
},
"total_awarded_amount": 27
}
],
"total_awarded_amount": 33
},
"status": {
"code": "OK",
"description": "",
"message": ""
}
}