Create Insurance Quote Action
Create an Insurance quote by using a context ID or a set of user inputs that represent quote details.
This action is available in API version 63.0 and later.
URI: /services/data/vXX.X/actions/standard/createInsuranceQuote
Where XX.X is the latest API version.
Formats: JSON
HTTP Methods: GET, POST
Authentication: Authorization: Bearer TOKEN
Where TOKEN is your OAuth access token.
If you specify quoteInputs (but not contextId) in the request body, you must provide quoteName, priceBookId, and effectiveDate as input parameters.
If you specify contextId (but not quoteInputs) in the request body, you must provide these:
- either
quoteNameor SalesTransactionName withinadditionalFields, and - either
priceBookIdor PriceBook withinadditionalFields
| Input | Type | Description |
|---|---|---|
accountId | String | ID of the account that’s associated with the quote being created. |
additionalFields | String | Optional. Map of additional fields that must be updated in the quote context. |
contextId | String | Required if quoteInputs isn’t specified. Context ID that’s used to issue the quote. |
effectiveDate | Date | Date that the quote becomes effective. |
expirationDate | Date | Optional. Expiration date of the quote. |
opportunityId | String | Optional. ID of the opportunity that’s associated with the quote. |
pricebookId | String | Required if either quoteInputs or contextId is specified. ID of the pricebook that’s associated with the quote. |
pricingProcedureApiName | String | Optional. API name of the pricing procedure used to price the product. |
quoteInputs | String | Required if contextId isn’t specified. Set of user inputs on products that represent the quote details. |
quoteOptions | Apex-defined | An Apex runtime_industries_insurance.CreateInsuranceQuoteOptions record that contains details to create the quote. |
quoteName | String | Name of the quote that must be created. |
ratingDate | Date | Optional. Date to find the active pricing procedure. |
| Output | Details |
|---|---|
contextId | Type String Description Context ID of the insurance quote that’s created. |
quoteId | Type String Description ID of the insurance quote that’s created. |
Sample request where quoteInputs is specified in the request body.
This is a sample request to call this invocable action from Apex code.
Sample Response