Validate API Request (POST)
Validate a JSON request body for the Insurance Quote or Insurance Product Rating API by checking product codes, attributes, instance keys, and required fields against the configured product model.
Use this resource at design time to pre-validate an Insurance Connect API request body before submission. Provide an API path such as insurance/quotes or insurance/product-rating, and a serialized JSON request body. The API verifies product references, hierarchy relationships, instance keys, attribute definitions, and JSON structure, and returns actionable findings for any detected issues.
Validation includes these checks:
- Product code existence and active status
- Parent-child hierarchy structure in
quoteLineItems/salesTransactionItemsand nestedchildProducts - Non-empty
instanceKeyarrays ininstanceKeysentries - Attribute code existence and active status against registered
AttributeDefinitionrecords - JSON parse validation for the request body string
For unsupported API paths, the API returns a valid result with an informational message rather than an error. Supported paths are insurance/quotes and insurance/product-rating.
When validation succeeds, isValid is true and results is empty or contains only informational findings. When validation finds issues, isValid is false and results lists the findings. When required input is missing, errors can include request-level failures such as:
SF-INS-DSAV-00041— the request payload is required. Provide a valid JSON payload and API path. Returned with HTTP status 400 whenapiPathorrequestBodyis missing.
Replace {yourInstance} with the My Domain name of your Salesforce org.
68.0
POST
Insurance Request Validation Input