You are here:
InsQuoteService:getPlanSpecs
Use this service to get all the quote line items (that is to say, the plan specs) associated with a specific product.
Method: getPlanSpecs
How It Works
-
Takes the
quoteIdandproductId. -
Returns quote line item id, instance key of the quote line item, and product info for any plan using the specified product.
Remote Options
Option |
Description |
|---|---|
|
Required Id of target quote. |
|
Id of target Product. Ignored if
|
|
List of Coverage Ids. Ignored if
|
Output JSON
The service returns a list in the output JSON of either QuoteLineItem specs for the product Ids which match the target product Id, or of QuoteLineItem specs which contain a child with a productId that matches any of the provided Coverage Ids (example below).
The fields returned in the output JSON can be updated by modifying the
GetQuoteLineItemSpec fieldSet on the QuoteLineItem object. Note
that the Id, instanceKey, and productId fields will always be returned, even if
they are removed from the fieldSet.
{
'records': [{
'Id': '0QLf4000000SX3tGAG',
'instanceKey': 'Coverage 1a',
'productId': '01tf4000001ZcLnAAK'
}, {
'Id': '0QLf4000000SX3rGAG',
'instanceKey': 'Coverage 1b',
'productId': '01tf4000001ZcLnAAK'
}]
}

