You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 3
Next »
This method returns the effective reward schemes that are allowed to be provided to rewards participants. Multiple reward schemes are returned by each call. Note that only effective reward schemes are retrieved.
Resource URL
Parameters
Name | Type | Description |
token | String | The token retrieved from the login method |
group_identifier (optional) | Group Identifier | The identifier of the group that will be providing the reward scheme. The group is filtered against the reward scheme's allowed organisational units. The allowed group identifier fields are the following: Name | Type | Description |
---|
id (semi-optional) | String | The ID of the group | name (semi-optional) | String | The code of the group | alternative_code (semi-optional) | String | The alternative code of the group |
|
unit_identifier (optional) | Unit Identifier | The identifier of the unit that will be providing the reward scheme. The unit is filtered against the reward scheme's allowed organisational units. The allowed unit identifier fields are the following: Name | Type | Description |
---|
id (semi-optional) | String | The ID of the Unit | name (semi-optional) | String | The name of the Unit | alternative_code (semi-optional) | String | The alternative code of the Unit |
|
fields_set (optional) | List of Strings, comma separated | A list of fields that should be included in the results. If not specified then all the available fields will be returned |
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 retrieved reward scheme that can be Effective or Not Effective |
requires_reference_code | Boolean | If true then a unique reference code is required in order to sign up to that specific reward scheme |
self_signup_enabled | Boolean | If true then rewards participants can sign up to this reward scheme by themselves |
auto_signup_enabled | Boolean | If true then rewards participants will automatically be participating to this scheme while they sign up |
reference_code_generation_method | String | It determines how the reference code will be generated. The following generation methods are supported: - THROUGH_EXTERNAL_SYSTEM
- AUTO_GENERATED
|
supported_email_domains | String | It determines the supported email domains that can be used to sign a rewards participant into a specific rewards scheme that requires a reference code (multiple domains can be returned and will be comma separated) Applicable only if the reference code generation method is set to "AUTO_GENERATED" |
log_information | Log Information Object | The log information of the retrieved reward scheme |
marketing_information | Reward Scheme Marketing Information Object | The reward scheme's marketing information |
Referred Objects Response Data
log_information object response data
Name | Type | Description |
created_date | Date | The date that the retrieved record was created |
updated_date | Date | The last date that the retrieved record was updated |
created_by_unit | Unit Object | The unit that created the retrieved record |
created_by_business_unit | Unit Object | The unit that created the retrieved record |
created_by_user | User Object | The user that created the retrieved record |
updated_by_unit | Unit Object | The last unit that updated the retrieved record |
updated_by_business_unit | Unit Object | The last unit that updated the retrieved record |
updated_by_user | User Object | The last user that updated the retrieved record |
Referred Objects Response Data
unit object response data
Name | Type | Description |
---|
id | String | The ID of the retrieved unit |
name | String | The name of the retrieved unit |
group_name | String | The name of the group that the retrieved unit belongs to |
community_name | String | The name of the community that the retrieved unit belongs to |
alternative_code | String | The alternative code of the retrieved unit |
description | String | The description of the retrieved unit |
business unit object response data
Name | Type | Description |
---|
id | String | The ID of the retrieved business unit |
name | String | The name of the retrieved business unit |
code | String | The code of the retrieved business unit |
unified_code | String | The unified code of the retrieved business unit |
description | String | The description of the retrieved business unit |
parent_business_unit_name | String | The name of the parent business unit that the retrieved business unit belongs to |
user object response data
Name | Type | Description |
---|
id | String | The ID of the retrieved user |
username | String | The user name of the retrieved user |
person_name | String | The full name of the retrieved user |
email | String | The email of the retrieved user |
reward scheme marketing information object response data
Name | Type | Description |
---|
long_description | String | The scheme's long description |
short_description | String | The scheme's short description |
terms_and_conditions | String | The terms and conditions of the scheme |
reward_scheme_image | Reward scheme Image Object | The reward scheme standard (large) image |
reward_scheme_small_image | Reward scheme Image Object | The reward scheme small image |
reward_scheme_background | Reward scheme Background Object | The reward offer background which can be an image or a color |
Referred Objects Response Data
Reward Scheme Marketing Information Image Object
Name | Type | Description |
---|
file_name | String | The name of the file. |
file_content_url | String | The url that can be used to access the actual content of the file. |
file_mime_type | String | The mime type of the attached file |
file_alt_text | String | The alternative text of the attached file, if the file is an image |
Reward scheme Marketing Information Background Object
Name | Type | Description |
---|
file_name | String | The name of the file. |
file_content_url | String | The url that can be used to access the actual content of the file. |
file_mime_type | String | The mime type of the attached file |
file_alt_text | String | The alternative text of the attached file, if the file is an image |
color | String | The hexadecimal value of the color that will be used as a background |
Examples
Example 1
HTTP Method: GET
Request:
Response:
{
"status": {
"message": "",
"description": "",
"code": "OK"
},
"data": [
{
"log_information": {
"updated_date": "2015-02-19T16:35:35",
"created_date": "2015-01-14T10:09:24",
"created_by_unit": {
"id": "48305F8849E3C18B227C5BE3A27BA6DF",
"name": "Admin Unit",
"description": "r1 Test Description for resource request tab.Test Description for resource request tab.",
"alternative_code": "MG"
},
"updated_by_unit": {
"id": "48305F8849E3C18B227C5BE3A27BA6DF",
"name": "Admin Unit",
"description": "r1 Test Description for resource request tab.Test Description for resource request tab.",
"alternative_code": "MG"
},
"created_by_user": {
"person_name": "p_xenopoulou",
"username": "p_xenopoulou",
"id": "159C17D9C4B1E48DC129FBC701D38438"
},
"updated_by_user": {
"person_name": "p_demou",
"username": "p_demou",
"id": "4927E7EE8BBB4047A35F4F313D0EC6D3"
}
},
"life_cycle_state": "EFFECTIVE",
"id": "EA5CCE98F857F3A928E3AA6891323088",
"name": "Sales Scheme",
"description": "Sales Scheme - TC10"
}
]
}