---
schema_version: "1"
id: 53353d9c59302dbb0599809a065332c239b3c159391e5f09b983101414723eb2
title: Cost Calculation Input
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/insurance_developer_guide/connect_requests_cost_calculation_input.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.insurance_developer_guide.meta/insurance_developer_guide/connect_requests_cost_calculation_input.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 57e0662579b056b67eed118ca63efbb6f3163fe2eb5a4c172f903e2d8adbd5d4
description: Input representation of the request to calculate brokerage cost.
---
# Cost Calculation Input

Input representation of the request to calculate brokerage cost.

## JSON Example

{
 "action": "rollup",
 "expressionSetName": "expressionSetName",
 "ratePlanLineItems": \[
  {
   "id": "xxxxxx",
   "rate": 100,
   "enrollmentCount": 1000,
   "custom\_field\_1": "xxxxxx"
  },
  {
   "id": "yyyyy",
   "rate": 50,
   "enrollmentCount": 200,
   "custom\_field\_1": "xxxxxx"
  }
 \]
}

## Properties

<table class="featureTable sort_table" summary="">
          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader vertical-align-top " id="d18894e41">Name</th>
              <th class="featureTableHeader vertical-align-top " id="d18894e43">Type</th>
              <th class="featureTableHeader vertical-align-top " id="d18894e45">Description</th>
              <th class="featureTableHeader vertical-align-top " id="d18894e47">Required or Optional</th>
              <th class="featureTableHeader vertical-align-top " id="d18894e49">Available Version</th>
            </tr>
          </thead>
          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d18894e41" data-title="Name"><samp class="codeph nolang">action</samp></td>
              <td class="entry" headers="d18894e43" data-title="Type">String</td>
              <td class="entry" headers="d18894e45" data-title="Description">Action for processing <samp class="codeph nolang">RatePlanLineItems</samp>. Valid values are:<ul class="ul bulletList">
                  <li class="li">
                    <samp class="codeph nolang">rollup</samp>: Calculates premium and roll ups
                    it to Insurance Policy level.
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">calculate</samp>: Calculates premium and returns
                    it in the output.
                  </li>

                </ul>
              </td>
              <td class="entry" headers="d18894e47" data-title="Required or Optional">Optional</td>
              <td class="entry" headers="d18894e49" data-title="Available Version">63.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d18894e41" data-title="Name"><samp class="codeph nolang">expressionSet​Name</samp></td>
              <td class="entry" headers="d18894e43" data-title="Type">String</td>
              <td class="entry" headers="d18894e45" data-title="Description">Name of the expression set for cost calculation. If not specified, the value from the <samp class="codeph nolang">InsPolicyManagementConfig</samp> setup object is
                taken.</td>
              <td class="entry" headers="d18894e47" data-title="Required or Optional">Optional</td>
              <td class="entry" headers="d18894e49" data-title="Available Version">63.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d18894e41" data-title="Name"><samp class="codeph nolang">ratePlan​LineItems</samp></td>
              <td class="entry" headers="d18894e43" data-title="Type">List&lt;Map&lt;String, Object&gt;&gt;</td>
              <td class="entry" headers="d18894e45" data-title="Description">List of insurance rate plan line items to include for calculation. Items with an <samp class="codeph nolang">id</samp> represent existing records. Items without an
                <samp class="codeph nolang">id</samp> are draft records. When <samp class="codeph nolang">action</samp> is <samp class="codeph nolang">calculate</samp>, premiums for draft records are calculated and returned
                without being saved. Use <samp class="codeph nolang">referenceId</samp> to
                correlate draft records with their calculated premiums in the response.
              </td>
              <td class="entry" headers="d18894e47" data-title="Required or Optional">Optional</td>
              <td class="entry" headers="d18894e49" data-title="Available Version">63.0</td>
            </tr>
          </tbody>
        </table>