---
schema_version: "1"
id: 4e9ff8d32960142c28aae734b4d818cdb2891e1496771b483325c2023da62dee
title: runCartValidation Method
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-t-runcartvalidation-method.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-t-runcartvalidation-method.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2bb80aaa76050938582e3dd828b1773a8815ffbe89b34e021b36ce65fe25739a
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# runCartValidation Method

Runs the Industries CPQ Validate API on a sub quote.

<!-- Section title is the name of the method followed by "Method". If appropriate, precede the method name with the class name and a colon.-->

## Class

<!-- broken link-->

<!-- Link(s) to the class(es) to which this method belongs. If more than one class implements the same interface, use an itemized list. Don't use a link if the class itself isn't documented for users, but do list the class name.-->


## Input Parameters

<!-- If this method has separate input and output parameters, split this section into two sections titled "Input Parameters" and "Output Parameters". Some methods of classes that implement VlocityOpenInterface2 might require an "Options Parameters" section as well.-->

| Parameter | Required | Description            |
| --------- | -------- | ---------------------- |
| Id        | Required | Sub quote or order ID. |

## Output Parameters

| Parameter        | Description                                |
| ---------------- | ------------------------------------------ |
| validationResult | A map of id and boolean. Map\<ID, Boolean> |
| message          | In case of any error.                      |

## Example Input Data

<!-- This is usually JSON, but it could be XML or a single value. For methods of classes implementing VlocityOpenInterface2 that have options parameters, include those here.-->

```
{"Id":"0Q06g000000IRwGCAW","name":"Proposal -10","parentId":"0066g000022k7AhAAI"}
```

## Example Output Data

<!-- This is usually JSON, but it could be XML or a single value. Salesforce uses Return Type, but this takes care of that.-->

```
{"masterQuoteId":"0Q06g000000IRwLCAW","error":"OK"}
```
