Loading
Important Advisory: iOS Update Impacting CG Mobile ApplicationRead More
Insurance
InsProductService:getCoverages

InsProductService:getCoverages

Use this service to get all the coverages for a product spec.

Class: InsProductService

Method: getCoverages

How It Works

  1. The service takes the productID of the target.

  2. Creates a Product JSON of product coverages.

Remote Options

Option

Description

productId

Id of the target Product

onlyOptional

Optional

Return only optional coverages. If not provided, defaults to false.

Input JSON

This service does not take an input JSON.

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": [...]
        }
    ]
}
 
Loading
Salesforce Help | Article