You are here:
InsProductService:getCoverages
Use this service to get all the coverages for a product spec.
How It Works
-
The service takes the
productIDof the target. -
Creates a Product JSON of product coverages.
Remote Options
Option |
Description |
|---|---|
|
Id of the target Product |
|
Optional Return only optional coverages. If not provided, defaults to false. |
Output JSON
The service returns the Product JSON for a specific product. Note that this Product JSON will not include pricing information.
If onlyOptional flag is set to true, only those coverages
designated as optional will be included in the Product JSON; otherwise, all
coverages are returned.
{
"totalSize": 1,
"records": [
{
"Id": "01tf4000003GucXAAS",
"Name": "Product 1",
...,
"childProducts": [
"totalSize": 2,
"records": [
{
"Id": "01tf4000003GucXAAS",
"Name": "Coverage 1",
"isOptional": false,
...
},
{
"Id": "01tf4000003GucXAAS",
"Name": "Coverage 2",
"isOptional": true,
...
}
]
],
"attributeCategories": [...]
}
]
}
