# groupRollup Method

Calculates the pricing rollups (OneTime, Recurring, Usage) for a group.

## Class

## Input Parameters

| Parameter    | Required                                          | Description                                       |
| ------------ | ------------------------------------------------- | ------------------------------------------------- |
| parentId     | Required                                          | Opportunity ID.                                   |
| contextId    | Required                                          | Parent cart Id (Master/Enterprise Quote/Order Id) |
| groupId      | Required                                          | Group ID.                                         |
| groupCartId  | Optional: Required only if groupId is not passed. | Group Cart Id.                                    |
| groupFields  | Optional                                          | Group Field list.                                 |
| masterFields | Optional                                          | Master Field list.                                |
| quoteFields  | Optional                                          | Quote Field list.                                 |

## Output Parameters

| Parameter | Description           |
| --------- | --------------------- |
| message   | In case of any error. |

## Example Input Data

```
{"groupId": "a3O3t000003ADvzEAG", "contextId": "0Q03t000001ugKu", "parentId": "0063t00000tPwO7"}
```

## Example Output Data

```
{"message": "Not able to find out Group"}"error":"OK"}
```
