# priceLineItems Method

Responsible for pricing the line items.

## Class

## Input Parameters

| Parameter                | Required | Description       |
| ------------------------ | -------- | ----------------- |
| cartId                   | Required | Quote or Order ID |
| itemsToProcessSubsetList | Required | List of root IDs  |
| pricingPlan              | Optional | Pricing plan code |

## Output Parameters

| Parameter     | Description                                                     |
| ------------- | --------------------------------------------------------------- |
| statusMessage | Status message                                                  |
| pricingOutput | Map of error, error code, or errorResult (in case of any error) |
| errorCode     | Error code                                                      |
| error         | Error                                                           |

## Example Input Data

```
{"cartId":"801Hr000001t1s1IAA",
"itemsToProcessSubsetList":["a4o0b000000VN99AAG"]}

```

## Example Output Data

```
{"statusMessage":"Completed Successfully.","Failed":false,"pricingOutput":{"errorCode":"INVOKE-200","error":"OK"},"errorCode":"INVOKE-200","error":"OK"}
```

:::important
If no pricing plan code is provided, the system defaults to using `LINE_ITEM_PRICING_PLAN`, not the `DEFAULT_PRICING_PLAN`.
:::
