> ## Documentation Index
> Fetch the complete documentation index at: https://docs.commissionkit.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Integrations

> Connect CommissionKit to your ERP or CRM to auto-sync reps and deals

Connect CommissionKit to your ERP or CRM so reps and deals sync automatically — no manual entry needed. When deal data changes in your ERP, CommissionKit picks it up and recalculates commissions.

## Supported connectors

| Connector          | What syncs                                        | Auto sync                            |
| ------------------ | ------------------------------------------------- | ------------------------------------ |
| **Odoo ERP**       | Reps + Deals (`sale.order` from Sales or CRM app) | Yes — every 10 min, hourly, or daily |
| **Custom REST**    | Any REST API — configure field mappings via JSON  | Yes                                  |
| **HubSpot CRM**    | Owners as reps + Deals (by pipeline stage)        | Yes — every 10 min, hourly, or daily |
| **Salesforce CRM** | Users as reps + Opportunities (Closed Won)        | Yes — every 10 min, hourly, or daily |

## How sync works

A sync fetches all records from the ERP and compares them to what's already in CommissionKit using hash-based change detection. A sync reports three counts:

* **New** — records that did not exist in CommissionKit
* **Updated** — records whose data changed in the ERP since the last sync
* **Skipped** — records unchanged since the last sync

After connecting, reps and deals sync immediately. Changes in the ERP are picked up at the chosen interval. Commission results and payout statuses optionally write **back** to the ERP.

## Sync schedule

Choose how often CommissionKit pulls updates from your ERP from the **⋮** menu:

| Option           | Interval                                                           |
| ---------------- | ------------------------------------------------------------------ |
| **Every 10 min** | Fires a sync every 10 minutes                                      |
| **Hourly**       | Fires a sync every hour                                            |
| **Daily**        | Fires a sync every 24 hours                                        |
| **Manual only**  | No automatic sync — use the **Sync Reps** / **Sync Deals** buttons |

Manual syncs and auto-syncs behave identically — both fetch all records and use hash comparison to skip unchanged data.

## Setting up

1. Go to **Integrations** in the sidebar
2. Select your connector
3. Enter credentials and click **Test Connection**
4. Click **Connect** to start the initial sync
5. Choose your auto-sync schedule from the **⋮** menu

## Disconnecting

Disconnecting stops all syncs but does **not** delete any data. All synced reps, deals, and commission history remain in CommissionKit.
