Tip |
---|
Table of Contents | ||
---|---|---|
|
POST rewards_participants/show
This method returns information related with a rewards participants. A single rewards participant is returned by each call
Resource URL
Parameters
...
Name
...
Type
...
Description
...
token
...
String
...
The token retrieved from the login method
...
(mandatory)
...
Rewards Participant identifier
The identifier of the rewards participant that should be returned as a result. The allowed rewards participant identifier fields are the following:
...
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
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.
Response Data
...
Examples
...
title | Example 1 |
---|
HTTP Method: POST
Request:
Body:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{
"token":"476A07F7C99133EA35D9AEA25475C8C1",
"rewards_participant_identifier":{"number":"29"}
} |
Response:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{
"status":
{
"message": null,
"description": null,
"code": "OK"
},
"data":
{
"sign_up_on": "2015-02-03T09:00:35",
"udf_float_1": null,
"udf_float_2": null,
"udf_date_1": null,
"udf_float_3": null,
"udf_date_2": null,
"number": "29",
"udf_float_4": null,
"udf_date_3": null,
"sign_up_by_unit":
{
"community_name": "Main Community",
"group_name": "Main Group",
"name": "Marketing Unit",
"id": "83922FE923563679768A94F58CAB5569",
"description": "r1c1",
"alternative_code": null
},
"udf_date_4": null,
"udf_string_1": null,
"udf_string_2": null,
"participating_schemes_set":
[
{
"sign_up_on": "2015-02-03T09:00:08",
"scheme":
{
"life_cycle_state": "EFFECTIVE",
"name": "Test1",
"id": "C423FFDD9CE9AF60A67B7F29F539630F",
"description": "test 1",
"alternative_code": "t1"
},
"sign_up_by_unit":
{
"group_name": null,
"name": "Marketing Unit",
"id": "83922FE923563679768A94F58CAB5569",
"description": "r1c1",
"alternative_code": null
},
"id": "1E9B85861D57DCC6C7F6244FDEB20563"
},
{
"sign_up_on": "2015-02-03T09:00:05",
"scheme":
{
"life_cycle_state": "EFFECTIVE",
"name": "Marketing Scheme",
"id": "07EBDDD9B4FC19C98AB5052B4FAEF51A",
"description": "Marketing Scheme",
"alternative_code": "MS"
},
"sign_up_by_unit":
{
"group_name": null,
"name": "Marketing Unit",
"id": "83922FE923563679768A94F58CAB5569",
"description": "r1c1",
"alternative_code": null
},
"id": "A7A7AE5993FBC466357688715F94833D"
}
],
"udf_string_3": null,
"udf_string_4": null,
"udf_string_5": null,
"udf_string_6": null,
"log_information":
{
"updated_date": "2015-02-03T09:00:44",
"created_by_unit":
{
"community_name": "Main Community",
"group_name": "Main Group",
"name": "Admin Unit",
"id": "48305F8849E3C18B227C5BE3A27BA6DF",
"description": "r1",
"alternative_code": "MG"
},
"created_date": "2015-02-03T08:59:39",
"updated_by_unit":
{
"community_name": "Main Community",
"group_name": "Main Group",
"name": "Admin Unit",
"id": "48305F8849E3C18B227C5BE3A27BA6DF",
"description": "r1",
"alternative_code": "MG"
},
"created_by_user":
{
"person_name": "MPAdministrator",
"username": "MPAdministrator",
"id": "1",
"email": "mp@ministrator.com"
},
"updated_by_user":
{
"person_name": "MPAdministrator",
"username": "MPAdministrator",
"id": "1",
"email": "mp@ministrator.com"
}
},
"udf_string_7": null,
"udf_string_8": null,
"accounts_receivable":
{
"account_owner":
{
"last_name": "Papapavlou",
"life_cycle_state": "FINANCIAL",
"middle_name": "Andreas",
"company_profile": null,
"title": "Ms",
"type": "PERSON",
"first_name": "Lucia",
"name": null,
"id": "1D92B269658D80DEDF2499E25201739E",
"company_name": null,
"demographics":
{
"gender": "FEMALE",
"passport_number": "113115",
"social_security_number": "113116",
"date_of_birth":
{
"month": 1,
"day": 1,
"year": 1990
},
"name_day":
{
"month": 5,
"day": 5
},
"id_number": "113114"
}
},
"life_cycle_state": "ACTIVE",
"number": "400",
"name": "Lukia Papapavlou",
"id": "F42134513AD119E00CA031A93A5CA4DD"
},
"id": "00C07F53EEBE02A7224370B832BBEE96",
"access_token":
{
"authentication_code": "apitestemptynew",
"life_cycle_state": "EFFECTIVE",
"identifier": "apitestempty1",
"number": "40",
"id": "E05B9FA2C2B1E993817FBB7B96B4A24B"
}
}
} |
GET rewards_participants/list
This method returns information related with rewards participants. Multiple rewards participants are returned by each call
Resource URL
Parameters
...
Name
...
Type
...
Description
...
token
...
String
...
The token retrieved from the login method
...
(semi-optional)
...
Accounts Receivable identifier
The identifier of the accounts receivable related with the rewards participant that should be returned as a result. The allowed accounts receivable identifier fields are the following:
...
(semi-optional)
...
Contact Information identifier
The identifier of the contact information related with the rewards participant that should be returned as a result. The allowed contact information identifier fields are the following:
...
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
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.
Response Data
...
Examples
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
HTTP Method: GET
Request: Response:
|
POST rewards_participants/create
This method creates a rewards participant. Single rewards participants can be created by each call.
Resource URL
Parameters
...
Name
...
Type
...
Description
...
token
...
String
...
The token retrieved from the login method
...
sign_up_on
(mandatory)
...
sign_up_by_unit_identifier
(mandatory)
...
The unit that signed up the rewards participant. The allowed unit identifier fields are the following:
...
udf_string_1
(optional)
...
User Defined Field of type String
...
udf_string_2
(optional)
...
User Defined Field of type String
...
udf_string_3
(optional)
...
User Defined Field of type String
...
udf_string_4
(optional)
...
User Defined Field of type String
...
udf_string_5
(optional)
...
User Defined Field of type String
...
udf_string_6
(optional)
...
User Defined Field of type String
...
udf_string_7
(optional)
...
User Defined Field of type String
...
udf_string_8
(optional)
...
User Defined Field of type String
...
udf_float_1
(optional)
...
Float
...
User Defined Field of type Float
...
udf_float_2
(optional)
...
Float
...
User Defined Field of type Float
...
udf_float_3
(optional)
...
Float
...
User Defined Field of type Float
...
udf_float_4
(optional)
...
Float
...
User Defined Field of type Float
...
udf_date_1
(optional)
...
Date
...
User Defined Field of type Date
...
udf_date_2
(optional)
...
Date
...
User Defined Field of type Date
...
udf_date_3
(optional)
...
Date
...
User Defined Field of type Date
...
udf_date_4
(optional)
...
Date
...
User Defined Field of type Date
...
(mandatory)
...
(mandatory)
...
The access token that will be associated with the rewards participant
Tip |
---|
Deprecated starting from CRM.COM R8.0.0 onward |
...
(optional)
...
(mandatory on conditions)
...
The access tokens that will be associated with the rewards participant. This information is mandatory if the active access token definition is set up to require at least one access token for each rewards participant
Tip |
---|
Available from CRM.COM R8.0.0 |
...
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.
Response Data
...
Examples
Expand | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||
HTTP Method: POST
Request: Body:
Response:
|
POST rewards_participants/update
This method updates rewards participants. A single rewards participant can be updated by each call. Fields which are not specified are not updated at all. Fields which are specified as null will be set as null.
Resource URL
Parameters
...
Name
...
Type
...
Description
...
token
...
String
...
The token retrieved from the login method
...
(mandatory)
...
Rewards Participant identifier
The identifier of the rewards participant that should be updated. The allowed rewards participant identifier fields are the following:
...
sign_up_on
(optional)
...
sign_up_by_unit_identifier
(optional)
...
The unit that signed up the rewards participant. The allowed unit identifier fields are the following:
...
udf_string_1
(optional)
...
User Defined Field of type String
...
udf_string_2
(optional)
...
User Defined Field of type String
...
udf_string_3
(optional)
...
User Defined Field of type String
...
udf_string_4
(optional)
...
User Defined Field of type String
...
udf_string_5
(optional)
...
User Defined Field of type String
...
udf_string_6
(optional)
...
User Defined Field of type String
...
udf_string_7
(optional)
...
User Defined Field of type String
...
udf_string_8
(optional)
...
User Defined Field of type String
...
udf_float_1
(optional)
...
Float
...
User Defined Field of type Float
...
udf_float_2
(optional)
...
Float
...
User Defined Field of type Float
...
udf_float_3
(optional)
...
Float
...
User Defined Field of type Float
...
udf_float_4
(optional)
...
Float
...
User Defined Field of type Float
...
udf_date_1
(optional)
...
Date
...
User Defined Field of type Date
...
udf_date_2
(optional)
...
Date
...
User Defined Field of type Date
...
udf_date_3
(optional)
...
Date
...
User Defined Field of type Date
...
udf_date_4
(optional)
...
Date
...
User Defined Field of type Date
...
(optional)
...
The access token that will be associated with the rewards participant
Tip |
---|
Deprecated starting from CRM.COM R8.0.0 |
...
(optional)
...
A list of reward schemes that the rewards participant has joint
...
(mandatory on conditions)
...
The access tokens that will be associated with the rewards participant. This information is mandatory if the active access token definition is set up to require at least one access token for each rewards participant
If no records are specified in the set then nothing will be updated. To remove a record use action:"remove". To add a record use action:"add_existing" or "add_new". Different actions can be used within the same set. For example:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
"set": [
{
"action": "add_existing",
...........
},
{
"action": "remove",
...........
},
{
"action": "add_new",
...........
}
] |
Tip |
---|
Available from CRM.COM R8.0.0 |
...
Tip |
---|
Deprecated starting from CRM.COM R8.0.0 |
...
Tip |
---|
Available from CRM.COM R8.0.0 |
...
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.
Response Data
...
Examples
Expand | ||||||
---|---|---|---|---|---|---|
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{
"token":"A0931BF523A24C819181DC9487343F45",
"rewards_participant_identifier": {"number":"76"},
"access_tokens_set":
[
{
"action" : "add_existing",
"access_token_identifier" : { "authentication_code" : "15855832543" }
},
{
"action" : "remove",
"access_token_identifier" : { "authentication_code" : "1256723" }
}
]
} |
Response:
theme | Confluence |
---|---|
language | javascript |
linenumbers | true |
name | blue |
---|
Child pages (Children Display) | ||||
---|---|---|---|---|
|