Available from CRM.COM R9.0.0
GET warranty_policies/show
This method returns information related with a Warranty Policy. A single warranty is returned by each call
Resource URL
Parameters
Name | Type | Description | |||||||||||||||
token | String | The token retrieved from the login method | |||||||||||||||
warranty_policy_identifier (mandatory) | Identifier | The identifier of the warranty policy that should be returned as a result. The allowed warranty policy 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
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved warranty policy |
number | String | The number of the retrieved warranty policy |
name | String | The name of the retrieved warranty policy |
alternative_code | String | The alternative code of the retrieved warranty policy |
life_cycle_state | String | The life cycle state of the retrieved warranty policy. Supported values are EFFECTIVE and NOT EFFECTIVE |
description | String | The description of the retrieved warranty policy |
duration | Number | The duration of the warranty policy |
unit_of_time | String | The unit of time that measures the specified duration. The supported values are DAYS, WEEKS, MONTHS or YEARS |
replacement_coverage_policy | String | Defines how the Warranty Policy of the replaced physical good affects the physical good which replaces it. The available options are CARRY_OVER_WARRANTY, APPLY_NEW_WARRANTY, NO_WARRANTY |
effective_date | Date | The date from which the warranty policy can be applied on sold physical goods |
expiration_date | Date | The date until which the warranty policy can be applied on sold physical goods |
company_responsibilities | String | The warranty policy's company responsibilities |
customer_responsibilities | String | The warranty policy's customer responsibilities |
udf_string_1 | String | User Defined Field of type String |
udf_string_2 | String | User Defined Field of type String |
udf_string_3 | String | User Defined Field of type String |
udf_string_4 | String | User Defined Field of type String |
udf_string_5 | String | User Defined Field of type String |
udf_string_6 | String | User Defined Field of type String |
udf_string_7 | String | User Defined Field of type String |
udf_string_8 | String | User Defined Field of type String |
udf_float_1 | Float | User Defined Field of type Float |
udf_float_2 | Float | User Defined Field of type Float |
udf_float_3 | Float | User Defined Field of type Float |
udf_float_4 | Float | User Defined Field of type Float |
udf_date_1 | Date | User Defined Field of type Date |
udf_date_2 | Date | User Defined Field of type Date |
udf_date_3 | Date | User Defined Field of type Date |
udf_date_4 | Date | User Defined Field of type Date |
Set of physical goods covered | The physical goods which can be covered by the warranty policy | |
coverage_reasons_set | Set of Warranty Coverage Reasons | The Warranty Coverage Reasons which are applicable by the warranty policy. |
allowed_organisational_units_set | Set of unit Objects | The organisational units that can use the specific warranty policy Deprecated from CRM.COM R18.0.0 |
allowed_business_units_set | Set of Business Unit Objects | The business units that can use the specific warranty policy Available from CRM.COM R18.0.0 |
Log Information Object | The log information related with the retrieved warranty policy |
Referred Objects Response Data
Examples
GET warranty_policies/list
This method returns information related with warranty policies. Multiple warranty policies are returned by each call
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 warranty policy. The group is filtered against the warranty policy's allowed organisational units. The allowed group identifier fields are the following:
| ||||||||||||
unit_identifier (optional) | Unit Identifier | The identifier of the unit that will be providing the warranty policy. The unit is filtered against the warranty policy's allowed organisational units. The allowed unit identifier fields are the following:
| ||||||||||||
job_type_identifier (optional) | Job Type Identifier | The identifier of the job type that will be used to provide the installed item under warranty. The retrieved warranty policies are filtered based on the list of warranty policies that are allowed to be provided by the specified job type. The allowed job type identifier fields are the following:
| ||||||||||||
product_identifier (optional) | Product Identifier | The identifier of the product whose warranty coverage is required. The product can only be a traceable physical good. The allowed product identifier fields are the following:
| ||||||||||||
product_type_identifier (optional) | Product Type Identifier | The identifier of the product type whose warranty coverage is required. Only product types for traceable physical goods can be specified. The allowed product type identifier fields are the following:
| ||||||||||||
product_brand_identifier (optional) | Product Brand Identifier | The identifier of the product brand whose warranty coverage is required. The allowed product brand identifier fields are the following:
| ||||||||||||
product_family_identifier (optional) | Product Family Identifier | The identifier of the product family whose warranty coverage is required. The allowed product family 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
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved warranty policy |
number | String | The number of the retrieved warranty policy |
name | String | The name of the retrieved warranty policy |
alternative_code | String | The alternative code of the retrieved warranty policy |
life_cycle_state | String | The life cycle state of the retrieved warranty policy. Supported values are EFFECTIVE and NOT EFFECTIVE |
description | String | The description of the retrieved warranty policy |
duration | Number | The duration of the warranty policy |
unit_of_time | String | The unit of time that measures the specified duration. The supported values are DAYS, WEEKS, MONTHS or YEARS |
replacement_coverage_policy | String | Defines how the Warranty Policy of the replaced physical good affects the physical good which replaces it. The available options are CARRY_OVER_WARRANTY, APPLY_NEW_WARRANTY, NO_WARRANTY |
effective_date | Date | The date from which the warranty policy can be applied on sold physical goods |
expiration_date | Date | The date until which the warranty policy can be applied on sold physical goods |
company_responsibilities | String | The warranty policy's company responsibilities |
customer_responsibilities | String | The warranty policy's customer responsibilities |
udf_string_1 | String | User Defined Field of type String |
udf_string_2 | String | User Defined Field of type String |
udf_string_3 | String | User Defined Field of type String |
udf_string_4 | String | User Defined Field of type String |
udf_string_5 | String | User Defined Field of type String |
udf_string_6 | String | User Defined Field of type String |
udf_string_7 | String | User Defined Field of type String |
udf_string_8 | String | User Defined Field of type String |
udf_float_1 | Float | User Defined Field of type Float |
udf_float_2 | Float | User Defined Field of type Float |
udf_float_3 | Float | User Defined Field of type Float |
udf_float_4 | Float | User Defined Field of type Float |
udf_date_1 | Date | User Defined Field of type Date |
udf_date_2 | Date | User Defined Field of type Date |
udf_date_3 | Date | User Defined Field of type Date |
udf_date_4 | Date | User Defined Field of type Date |
Set of physical goods covered | The physical goods which can be covered by the warranty policy | |
coverage_reasons_set | Set of Warranty Coverage Reasons | The Warranty Coverage Reasons which are applicable by the warranty policy. |
allowed_organisational_units_set | Set of unit Objects | The organisational units that can use the specific warranty policy Deprecated from CRM.COM R18.0.0 |
allowed_business_units_set | Set of Business Unit Objects | The business units that can use the specific warranty policy Available from CRM.COM R18.0.0 |
Log Information Object | The log information related with the retrieved warranty policy |
Referred Objects Response Data
Examples
GET warranty_policies/get_installed_item_coverage
This method checks whether installed items sold to customers are covered by warranty policies or not. The method can be used for checking installed items coverage which is required in Jobs which perform Swap Subscription Installed Item actions. Depending on the parameters, the method might return more than one installed item's warranty information.
Resource URL
Parameters
Name | Type | Description | ||||||||||||
token | String | The token retrieved from the login method | ||||||||||||
accounts_receivable (semi-optional) | Accounts Receivable Identifier | The accounts receivable of the customer who requests information about the sold installed items' warranty information.The allowed accounts receivable identifier fields are the following:
| ||||||||||||
installed_item_identifier (semi-optional) | Installed Item Identifier | The identifier of the installed item whose warranty coverage is required. The allowed installed item identifier fields are the following:
| ||||||||||||
warranty_coverage_reason_identifier (optional) | Warranty Coverage Reason Identifier | The identifier of the warranty policy's coverage reason. The coverage reason represents the replacement reason so if set the installed item's warranty should support this coverage reason. The allowed warranty coverage reason 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
Name | Type | Description |
---|---|---|
installed_item | Installed Item Object | The sold installed item for which a warranty policy was applied |
warranty_policy | Warranty Policy Object | The warranty policy which covers the installed item |
warehouse_issue_date | Date | The date on which the stock out warehouse transaction was issue to represent the installed item's sale |
warranty_remaining_coverage_period | Integer | The related warranty policy's remaining coverage duration for the specified installed item calculated in days. This information is applicable only for installed items whose warranty was carried over from another installed item which was under warranty during its replacement. |
warranty_expiration_date | Date | The date on which the sold installed item's warranty expires |
coverage | Integer | Denotes if the installed item is finally covered by its related warranty policy. This information is available only if a coverage reason is also defined |
Referred Objects Response Data
Examples
HTTP Method: GET
Request:
Response:
{ "status": { "message": "", "description": "", "code": "OK" }, "data": [ { "warehouse_issue_date": "2016-03-02 17:31:06.0", "warranty_policy": { "life_cycle_state": "EFFECTIVE", "number": "2", "id": "4B417948ADB44DFEAF735184B941D481", "name": "Policy1", "alternative_code": "p1" }, "installed_item": { "state": "EFFECTIVE", "serial_number": "Smartcard2_001", "id": "791DF73677384DC8A00D8384F5FF85FF", "alternative_code": "Smartcard2_001", "product": { "product_type": { "service_type": null, "physical_good_type": "TRACEABLE", "used_for_provisioning": 0, "classification": "PHYSICALGOODS", "composition_method": "FLAT", "id": "6173FC99331504AD1ACB5D697D54DA8C", "name": "Smartcards", "description": "Smartcards", "alternative_code": "SC" }, "id": "80EEE8F6F46767AE32E6ABE68603E9F2", "name": null, "description": "SmartCards 2", "code": "Smartcard 2", "alternative_code": "SC2" } }, "coverage": null, "warranty_expiration_date": "Wed Jul 20 17:31:06 EEST 2016", "warranty_remaining_coverage_period": 140 } ] }