---
schema_version: "1"
id: db495950a278b71bf302b13c1225e3f881ce8c090346a27bcbf279d259947124
title: How the Salesforce Spiff Commission Estimator Produces Estimates
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/spiff_estimator_overview.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.spiff_estimator_overview.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: a342e1c8c2d623747c40645b4f75bd9ab561902d4adb97eb38b99892744a0cc3
description: The Salesforce Spiff Commission Estimator sends data between Salesforce and Spiff. Understanding the overall communication process can help you set up and troubleshoot the integration between these systems.
products:
  - Sales Cloud
  - Sales Enablement
release: "264"
---
# How the Salesforce Spiff Commission Estimator Produces Estimates

The Salesforce Spiff Commission Estimator sends data between Salesforce and Spiff. Understanding the overall communication process can help you set up and troubleshoot the integration between these systems.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available for an additional cost in: <strong>Professional</strong> Edition with Web Services API Enabled</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col style="width:16.666666666666664%">
        <col style="width:83.33333333333334%">
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d93780e74">Step</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d93780e77">What happens</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Step" class="slds-cell-wrap" style="vertical-align:top;" headers="d93780e74 ">1</td>

          <td data-label="What happens" class="slds-cell-wrap" style="vertical-align:top;" headers="d93780e77 ">When a rep creates a quote and adds lines to the quote in Salesforce, the Spiff Commission Estimator checks for database changes made to Quote and Quote Line records. The estimator looks up all Quote and Quote Line field values that are used in Spiff to produce the estimate.</td>

        </tr>
        <tr class="">
          <td data-label="Step" class="slds-cell-wrap" style="vertical-align:top;" headers="d93780e74 ">2</td>

          <td data-label="What happens" class="slds-cell-wrap" style="vertical-align:top;" headers="d93780e77 ">The Spiff Commission Estimator assembles an estimate request and sends a POST request with the Spiff REST API.</td>

        </tr>
        <tr class="">
          <td data-label="Step" class="slds-cell-wrap" style="vertical-align:top;" headers="d93780e74 ">3</td>

          <td data-label="What happens" class="slds-cell-wrap" style="vertical-align:top;" headers="d93780e77 ">
            <p>Spiff validates the estimate request by checking for these values.
            </p>
            <ul>
              <li>The request is authorized.</li>

              <li>The company is configured in Spiff.</li>

              <li>The user exists in Spiff.</li>

              <li>The user has a statement in Spiff.</li>

              <li>The request format is valid.</li>

              <li>The request includes all required fields for the objects and dependencies involved.</li>

            </ul>
          </td>

        </tr>
        <tr class="">
          <td data-label="Step" class="slds-cell-wrap" style="vertical-align:top;" headers="d93780e74 ">4</td>

          <td data-label="What happens" class="slds-cell-wrap" style="vertical-align:top;" headers="d93780e77 ">Spiff passes the validated request data synchronously to the commission engine to obtain an estimate.</td>

        </tr>
        <tr class="">
          <td data-label="Step" class="slds-cell-wrap" style="vertical-align:top;" headers="d93780e74 ">5</td>

          <td data-label="What happens" class="slds-cell-wrap" style="vertical-align:top;" headers="d93780e77 ">The commission engine passes the estimate through payout rules and produces a JSON response. The Spiff Commission Estimator parses the JSON and show an estimate to the rep. This action doesn't write data to the Spiff database.</td>

        </tr>
      </tbody>
    </table>