- Created by George Rossides (Unlicensed) , last modified by Christina Georgiou (Unlicensed) on Sept 17, 2018
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 10 Next »
Available from CRM.COM R14.4.0
This method adds a product in the list of favorite items. A single product can be added on each call
Resource URL
Parameters
Name | Type | Description | ||||||||||||
token | String | The token retrieved from the login method | ||||||||||||
accounts_receivable_identifier (mandatory) | Accounts Receivable Identifier | The accounts receivable owning the list of favorite items. The available accounts receivable identifiers are the following:
| ||||||||||||
(mandatory) | Favorite Item Object | The item that will be added in the list of favorite items | ||||||||||||
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.
Referred Objects Response Data
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
product_identifier | Product Identifier | The identifier of the product. The allowed product identifier fields are the following:
| ||||||||||||
notes | Notes Identifier | The notes for the specific product. Available from CRM.COM R14.10 onwards | ||||||||||||
(applicable on conditions) | Set of Product Components objects | The components that should be composing the specified product. This information is applicable only if the specified product is classified as a flexible product bundle |
Referred Parameter Objects Data
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
product_identifier (mandatory) | Product identifier | The identifier of the product component. Only products that are allowed to be added on the related flexible product bundle are retrieved. The allowed product identifier fields are the following:
|
Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved favorite item |
number | String | The number of the retrieved favorite Item |
notes | String | The notes of the retrieved favorite item Available from CRM.COM R14.10 onwards |
accounts_receivable | Accounts Receivable Object | The related accounts receivable |
Product Object | The product that is included as a favorite item | |
components_set | Set of Products Object | The product components that are included in the specified product. This information is available only if the specified product is a flexible product bundle |
Referred Objects Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved accounts receivable |
number | String | The number of the retrieved accounts receivable |
name | String | The name of the retrieved accounts receivable |
life_cycle_state | String | The life cycle state of the accounts receivable. One of the following values is returned: ACTIVE, SUSPENDED, TERMINATED |
account_owner | Contact information object | The contact information owning the accounts receivable |
Referred Objects Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved contact information |
type | String | The type of the retrieved contact information which can be PERSON or COMPANY |
life_cycle_state | String | The lifecycle state of the retrieved contact information which can be MARKETING or FINANCIAL |
name | String | The full name of the retrieved contact information |
first_name | String | The first name of the retrieved contact information |
middle_name | String | The middle name of the retrieved contact information |
last_name | String | The last name of the retrieved contact information |
title | String | The title of the retrieved contact information |
company_name | Sting | The company name of the retrieved contact information |
Demographics Object | The demographics information of the retrieved contact information | |
Company profile object | The company profile of the retrieve contact information |
Referred Objects Response Data
Name | Type | Description |
gender | String | The gender of the retrieved contact information which can be MALE or FEMALE |
id_number | String | The ID number of the retrieved contact information |
id_number_expiration_date | Date | The ID number's expiration date of the retrieved contact information Available from CRM.COM R14.0.0 |
passport_number | String | The passport number of the retrieved contact information |
passport_number_expiration_date | Date | The passport's expiration date of the retrieved contact information Available from CRM.COM R14.0.0 |
social_security_number | String | The social security number of the retrieved contact information |
Date of Birth Object | The date of birth of the retrieved contact information | |
Name Day Object | The name day of the retrieved contact information | |
Country Object | The country of residence of the retrieved contact information | |
Country Object | The ID issued country of retrieved contact information | |
Country Object | The passport issued country of retrieved contact information | |
Industry Object | The industry of retrieved contact information | |
Industry sector Object | The sector of retrieved contact information |
Referred Objects Response Data
Name | Type | Description |
---|---|---|
day | Integer | The day of the retrieved date of birth |
month | Integer | The month of the retrieved date of birth |
year | Integer | The year of the retrieved date of birth |
Name | Type | Description |
---|---|---|
day | Integer | The day of the retrieved name day |
month | Integer | The month of the retrieved name day |
Name | Type | Description |
---|---|---|
id | String | The id of the retrieved country |
name | String | The name of the retrieved country |
alternative_code | String | The alternative code of the retrieved country |
dialing_code | String | The dialing code of the retrieved country Available from CRM.COM R15.1.0 |
two_character_code | String | The two character code of the retrieved country |
three_character_code | String | The three character code of the retrieved country |
country_flag | Image Object | The flag of the retrieved country Available from CRM.COM R15.1.0 |
Referred Objects Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved country flag |
file | File Object | The information of the attached file |
Referred Objects Response Data
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 |
Name | Type | Description |
---|---|---|
id | String | The id of the retrieved industry |
name | String | The name of the retrieved industry |
code | String | The code of the retrieved industry |
Name | Type | Description |
---|---|---|
id | String | The id of the retrieved industry sector |
name | String | The name of the retrieved industry sector |
alternative_code | String | The alternative code of the retrieved industry sector |
Name | Type | Description |
profile_year | Number | The profile year of the retrieved contact information |
annual_turnover | Number | The annual turnover of the retrieved contact information |
established_date | Date | The established date of the retrieved contact information |
number_of_employees | Number | The number of employees of the retrieved contact information |
registration_number | String | The registration number of the retrieved contact information |
vat_registration_number | String | The vat registration number of the retrieved contact information |
vat_registered_by | String | The vat registration by of the retrieved contact information |
vat_registration_date | Date | The vat registration date of the retrieved contact information |
tax_reference_number | String | The tax referenece number of the retrieved contact information |
Country Object | The country of residence of the retrieved contact information | |
Industry Object | The industry of retrieved contact information | |
Industry sector Object | The sector of retrieved contact information |
Referred Objects Response Data
Name | Type | Description |
---|---|---|
id | String | The id of the retrieved country |
name | String | The name of the retrieved country |
alternative_code | String | The alternative code of the retrieved country |
dialing_code | String | The dialing code of the retrieved country Available from CRM.COM R15.1.0 |
two_character_code | String | The two character code of the retrieved country |
three_character_code | String | The three character code of the retrieved country |
country_flag | Image Object | The flag of the retrieved country Available from CRM.COM R15.1.0 |
Referred Objects Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved country flag |
file | File Object | The information of the attached file |
Referred Objects Response Data
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 |
Name | Type | Description |
---|---|---|
id | String | The id of the retrieved industry |
name | String | The name of the retrieved industry |
code | String | The code of the retrieved industry |
Name | Type | Description |
---|---|---|
id | String | The id of the retrieved industry sector |
name | String | The name of the retrieved industry sector |
alternative_code | String | The alternative code of the retrieved industry sector |
Name | Type | Description |
---|---|---|
Id | String | The ID of the product |
code | String | The code of product |
alternative_code | String | The alternative code of product |
description | String | The description of product |
priority_level | Integer | The priority level of the product Available from CRM.COM R12.3.0 |
global_rate | Global Rate Object | The global rate of the retrieved product Available from CRM.COM R15.0.0 |
product_type | Product type object | The type of the product |
Referred Objects Response Data
Name | Type | Description |
---|---|---|
Id | String | The ID of the retrieved product type |
name | String | The Name of the retrieved product type |
alternative_code | String | The Alternative Code of the retrieved product type |
description | String | The Description of the retrieved product type |
classification | String | The Classification of the retrieved product type which can be SERVICES or PHYSICALGOODS |
service_type | String | The Service Type of the retrieved product type which can be TERMED, USAGE, ONETIME or EXPENSE |
physical_good_type | String | The physical Good Type of the retrieved product type which can be TRACEABLE or NONTRACEABLE |
composition_method | String | The Composition Method of the retrieved product type which can be FLAT, FLEXIBLEBUNDLE or FIXEDBUNDLE |
used_for_provisioning | Boolean | The flag shows if the retrieved product type is used for provisioning |
udr_type | Usage Detail Record Type | The UDR type related with the product type. This is applicable only if the product type is classified as SERVICES and the service type is set to USAGE |
meter_reading_type | Meter Reading Type | The Meter Reading type related with the product type. This is applicable only for traceable physical goods Available from CRM.COM R14.0.0 |
Referred Objects Response Data
Name | Type | Description |
---|---|---|
Id | String | The ID of the retrieved usage detail record type |
name | String | The Name of the retrieved usage detail record type |
alternative_code | String | The Alternative Code of the retrieved usage detail record type |
description | String | The Description of the retrieved usage detail record type |
unit_of_measurement | String | The Unit of measurement of the retrieved usage detail record type |
Referred Objects Response Data
Name | Type | Description |
id | String | The identifier of the Unit of measurement |
name | String | The name of the Unit of measurement |
description | String | The description of the Unit of measurement |
alternative_code | String | The alternative code of the Unit of measurement |
Name | Type | Description |
---|---|---|
Id | String | The ID of the retrieved meter reading type |
name | String | The Name of the retrieved meter reading type |
alternative_code | String | The Alternative Code of the retrieved meter reading type |
classification | String | The Classification of the retrieved meter reading type |
description | String | The Description of the retrieved meter reading type |
unit_of_measurement | String | The Unit of measurement of the retrieved meter reading type |
Referred Objects Response Data
Name | Type | Description |
id | String | The identifier of the Unit of measurement |
name | String | The name of the Unit of measurement |
description | String | The description of the Unit of measurement |
alternative_code | String | The alternative code of the Unit of measurement |
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved rate |
rate_model | String | The price plan rate model which can be one of the following:
From CRM.COM R17.0.0, QUANTITYANDMATURITYBASED is renamed to QUANTITYANDPERIODBASED |
global_base_amount | Number | The base price of the product in the Global Price Plan |
base_rate_applied_per | String | The value for 'Base Rate Applied per' Available when the rate model is 'Quantity & Quantity Based' and it is a selection between
|
uot | String | The 'UOT' applicable for the rate
Available for one-time services |
time_period | Time Period Object | The period and unit of time for which the base amount is applicable for. This is available only on termed services rates. |
uom | String | The 'UOM' applicable for the rate Available when the product type is of Usage Service Classification |
Referred Objects Response Data
Name | Type | Description |
---|---|---|
time_period_value | Number | The time period value |
time_period_uot | String | The time period unit of time. The supported values are the following: MINUTES, HOURS, DAYS, WEEKS, MONTHS, YEARS |
Examples
HTTP Method: POST
Request:
Body:
{ "token": {{token}}, "accounts_receivable_identifier": { "number": "ACR0000000025" }, "item": { "product_identifier": { "code": "123" } } }
Response:
{ "data": { "number": null, "product": { "code": "123", "product_type": { "meter_reading_type": null, "service_type": null, "used_for_provisioning": true, "alternative_code": "STB", "udr_type": null, "composition_method": "FLAT", "name": "SET TOP BOX", "description": "SET TOP BOX", "id": "E8BA9A6F34A24019A89892D5B3ACD9DF", "classification": "PHYSICALGOODS", "physical_good_type": "TRACEABLE" }, "alternative_code": "1_13", "description": "desc", "id": "99E46901A95B4E31A60BBE67280F2522", "priority_level": null }, "components_set": [], "accounts_receivable": { "number": "ACR0000000025", "name": "ACR0000000025 Ramy M", "id": "4C13FA60560B42F7939113BD699A9E71", "life_cycle_state": "ACTIVE", "account_owner": { "company_profile": null, "company_name": null, "name": null, "last_name": "M", "id": "51DDE9E46B9F4F5EB0E01F909F18FE39", "life_cycle_state": "FINANCIAL", "middle_name": null, "title": null, "type": "PERSON", "first_name": "Ramy", "demographics": { "name_day": { "month": null, "day": null }, "id_number": "126598", "passport_number_expiration_date": null, "gender": null, "date_of_birth": { "month": null, "year": null, "day": null }, "id_number_expiration_date": null, "industry_sector": null, "passport_number": null, "industry": null, "social_security_number": null, "id_issued_by_country": null, "passport_issued_by_country": null } } }, "id": "5AB3DB960C724D7C8AD5929E493101B9" }, "status": { "code": "OK", "description": "", "message": "" } }
HTTP Method: POST
Request:
Body:
{ "token": {{token}}, "accounts_receivable_identifier": { "number": "ACR0000000026" }, "item": { "product_identifier": { "code": "Caffe Latte" }, "components_set": [ { "product_identifier": { "code": "Extra Milk" } }, { "product_identifier": { "code": "Extra Shot" } } ] } }
Response:
{ "data": { "number": null, "product": { "code": "Caffe Latte", "product_type": { "meter_reading_type": null, "service_type": null, "used_for_provisioning": false, "alternative_code": "Z", "udr_type": null, "composition_method": "FLEXIBLEBUNDLE", "name": "Zorbas", "description": null, "id": "A8F22AD71E9C4A818A5CA853E628CA4A", "classification": "PHYSICALGOODS", "physical_good_type": "NONTRACEABLE" }, "alternative_code": "CL", "description": "Caffe Latte", "id": "847DAF8938094DC7B9542991D0A2916A", "priority_level": null }, "components_set": [ { "product": { "code": "Extra Shot", "product_type": { "meter_reading_type": null, "service_type": null, "used_for_provisioning": false, "alternative_code": "ZC", "udr_type": null, "composition_method": "FLAT", "name": "Zorbas Component", "description": null, "id": "8EED05CC65A54147B1B6CFD0F80063C4", "classification": "PHYSICALGOODS", "physical_good_type": "NONTRACEABLE" }, "alternative_code": "ES_1", "description": "Extra Shot", "id": "DA6C0E1F5BA34E2EA15B191CAA4FBCDB", "priority_level": null }, "id": "BE37B4FF56594F008008A4D6565A3FBA" }, { "product": { "code": "Extra Milk", "product_type": { "meter_reading_type": null, "service_type": null, "used_for_provisioning": false, "alternative_code": "ZC", "udr_type": null, "composition_method": "FLAT", "name": "Zorbas Component", "description": null, "id": "8EED05CC65A54147B1B6CFD0F80063C4", "classification": "PHYSICALGOODS", "physical_good_type": "NONTRACEABLE" }, "alternative_code": "EM", "description": "Extra Milk", "id": "16A1B5AB31E542BC9E9335BABEAA9049", "priority_level": null }, "id": "1C80BA2EBDA04CC0B07770B68C0C6B47" } ], "accounts_receivable": { "number": "ACR0000000026", "name": "ACR0000000026 Loukia Papapavlou", "id": "ED512ED25BFF413280FA1BEB85DA9B1F", "life_cycle_state": "ACTIVE", "account_owner": { "company_profile": null, "company_name": null, "name": "Loukia Papapavlou", "last_name": "Papapavlou", "id": "E12B1552198540D7BDBBE5CCF23D0EE5", "life_cycle_state": "FINANCIAL", "middle_name": "Loukia", "title": "Miss", "type": "PERSON", "first_name": "Loukia", "demographics": { "id_number": "11225588", "gender": "FEMALE", "country_of_residence": { "alternative_code": "CYP", "three_character_code": "CYP", "name": "CYPRUS", "id": "181", "two_character_code": "CY" }, "date_of_birth": { "month": 1, "year": 1991, "day": 28 }, "industry_sector": null, "industry": null, "name_day": { "month": 12, "day": 13 }, "passport_number_expiration_date": null, "id_number_expiration_date": null, "passport_number": null, "social_security_number": "99999999", "id_issued_by_country": null, "passport_issued_by_country": null } } }, "id": "7922F92C8F064D4EAE6EA9521BD426D7" }, "status": { "code": "OK", "description": "", "message": "" } }
- No labels