---
schema_version: "1"
id: 4770cae86ad21b5367f284431e3f8819637dba6a375b1bca3c292f87e392be56
title: cartRollup Method
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-t-cartrollup-method.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-t-cartrollup-method.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: cb66892776249190d5096f5929964016738f86924f2723c69e9d575f7ee9a1af
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# cartRollup Method

Responsible for cart rollups.

<!-- 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       |
| ----------- | -------- | ----------------- |
| cartId      | Required | Quote or Order ID |
| 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

<!-- 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.-->

```
{"cartId":"801Hr000001t1s1IAA"}
```

## 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.-->

```
{"statusMessage":"Completed Successfully.","Failed":false,"pricingOutput":{"errorCode":"INVOKE-200","error":"OK"},"errorCode":"INVOKE-200","error":"OK"}
```
