Skip to end of metadata
Go to start of metadata
This method is used to preview the amount that will be awarded for an achievement customer event, prior to submitting the achievement customer event.
Resource URL
Parameters
Name | Type | Description |
token | String | The token retrieved from the login method |
accounts_receivable_identifier (mandatory) | Accounts receivable Identifier | The related accounts receivable. The allowed accounts receivable identifier fields are the following: Name | Type | Description |
---|
id (semi-optional) | String | The ID of the accounts receivable | number (semi-optional) | String | The number of the accounts receivable | name (semi-optional) | String | The name of the accounts receivable | access_token_identifier (semi-optional) | Access Token Identifier | The identifier of the access token which is related with the accounts receivable. Only effective access tokens can be used to identify an accounts receivable. The allowed access token identifier fields are the following Name | Type | Description |
---|
authentication_code (semi-optional) | String | The authentication code of the access token | identifier (semi-optional) | String | The identifier of the access token. If the identifier is specified then it will be validated against the specified pass code | pass_code (mandatory on conditions) | String | The pass code of the access token, which is applicable and mandatory if the identifier is specified | one_time_password (semi-optional) | Integer | The one-time password (OTP) of the access token |
|
|
rewards_participant_identifier (semi-optional) | Rewards Participant Identifier | The related rewards participant. 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 | access_token_identifier (semi-optional) | Access Token Identifier | The identifier of the access token which is related with the rewards participant. Only effective access tokens can be used to identify a rewards participant. The allowed access token identifier fields are the following: Name | Type | Description |
---|
authentication_code (semi-optional) | String | The authentication code of the access token | identifier (semi-optional) | String | The identifier of the access token. If the identifier is specified then it will be validated against the specified pass code | pass_code (mandatory on conditions) | String | The pass code of the access token, which is applicable and mandatory if the identifier is specified | one_time_password (semi-optional) | Integer | The one-time password (OTP) of the access token |
|
|
classification_identifier (mandatory) | Customer Event Classification Identifier | The classification of the customer event. The allowed customer event classification identifier fields are the following:
Name | Type | Description |
---|
id (semi-optional) | String | The ID of the customer event classification | name (semi-optional) | String | The name of the customer event classification | alternative_code (semi-optional) | String | The alternative code of the customer event classification |
|
product_identifier (optional) | Product Identifier | The product of the customer event. Any type of products can be specified. The allowed product identifier fields are the following: Name | Type | Description |
---|
id (semi-optional) | String | The ID of the product | code (semi-optional) | String | The code of the product | alternative_code (semi-optional) | String | The alternative code of the product |
|
payment_medium_type_identifier (optional) | Payment Medium Type Identifier | The payment medium type of the customer event. Only payment medium types which are allowed in the related accounts receivable can be specified. The allowed payment medium type identifier fields are the following: Name | Type | Description |
---|
id (semi-optional) | String | The ID of the payment medium type | name (semi-optional) | String | The name of the payment medium type | alternative_code (semi-optional) | String | The alternative code of the payment medium type |
|
payment_medium_brand_identifier (optional) | Payment Medium Brand Identifier | The payment medium brand of the customer event. Only payment medium brands which are allowed in the related accounts receivable can be specified. The allowed payment medium brand identifier fields are the following: Name | Type | Description |
---|
id (semi-optional) | String | The ID of the payment medium brand | name (semi-optional) | String | The name of the payment medium brand | alternative_code (semi-optional) | String | The alternative code of the payment medium brand |
|
payment_medium_identifier (optional) | String | The payment medium identifier of the customer event. |
amount (optional) | Number | The achievement customer event's amount |
performed_by_unit_identifier (mandatory) | Unit Identifier | The unit that initiated the customer event. 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 |
|
performed_on (mandatory) | Date | The date that the customer event was actually performed |
description (optional) | String | A description of the customer event |
external_system (optional) | String | The third party system that generates the customer event |
external_system_reference_number (optional) | String | The external system's unique reference number of customer event |
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
Name | Type | Description |
---|
total_award_amount | Number | The total amount that will be awarded for that achievement customer event in system currency |
total_award_alternative_amount | Number | The total amount that will be awarded for that achievement customer event in alternative currency and only if the awarded amount will be in alternative currency |
rewards_participant_id | String | The ID of the achievement customer event's rewards participant |
rewards_participant_name | String | The full name of the retrieved rewards participant |
wallet_balance | Number | The current wallet balance of the customer in wallet currency |
wallet_alternative_balance | Number | The current wallet balance of the customer in wallet alternative |
voucher_types_set | Set of Voucher Types Objects | The set of type of the voucher that will be awarded instantly if such an achievement customer event is performed |
Referred Objects Response Data
voucher_type response data object
Name | Type | Description |
---|
Id | String | The ID of the retrieved voucher type |
name | String | The Name of the retrieved voucher type |
alternative_code | String | The Alternative Code of the retrieved voucher type |
value_options | String | Defines if the value should be fixed, as defined in the voucher type, or a variable, as defined during the creation of the vouchers. The supported options are FIXED and VARIABLE |
classification | String | The Classification of the retrieved voucher type |
description | String | The Description of the retrieved voucher type |
Examples
Example 1
HTTP Method: POST
Request:
Body:
{
"token":"{{token}}",
"rewards_participant_identifier":{"number":"RP0000000126"},
"classification_identifier":{"name":"Customer Feedback 3"},
"performed_by_unit_identifier":{"name":"Admin Unit"},
"performed_on":"2018-09-24T09:49:59",
"description":"first purchase event",
"payment_medium_brand_identifier":{"name":"PMB Test"},
"payment_medium_type_identifier":{"name":"PMT Test"},
"payment_medium_identifier":"PI000001",
"product_identifier":{"code":"Gold"},
"amount":"5",
"external_system":"UserA21 54 45 "
}
Response:
{
"data": {
"total_award_alternative_amount": 0,
"rewards_participant_id": "C0AC5F16E9DB4057BAAEFC9DAA12FF3D",
"wallet_balance": 1440,
"wallet_alternative_balance": 0,
"rewards_participant_name": "Ekaterini Financial Statement",
"total_award_amount": 0
},
"status": {
"code": "OK",
"description": "",
"message": ""
}
}