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

# Deal

> Event payload details and trigger documentation for Deal data from Active Campaign

<img src="https://mintcdn.com/morfhealth/EU2WCxuXGIUQcziR/images/active_campaign.svg?fit=max&auto=format&n=EU2WCxuXGIUQcziR&q=85&s=c21732e6d31462ae53f8b0d3216b0236" alt="images/active_campaign.svg" width="40" height="40" data-path="images/active_campaign.svg" />

# Events

## Triggering Webhook Types

The following event types are associated with the Deal event payload from Active Campaign.

* `Active Campaign Deal Create`
* `Active Campaign Deal Update`

<RequestExample>
  ```json Example theme={null}
  {
    "contact_id": "10",
    "currency": "USD",
    "field_values": {
      "Deal Note": "This is a note"
    },
    "group": "2",
    "group_title": "Pipeline 1",
    "id": "10",
    "owner": "10",
    "stage": "3",
    "stage_title": "Stage 1",
    "title": "Deal 1",
    "value": 100
  }
  ```
</RequestExample>

<ResponseExample>
  ```json Description theme={null}
  {
    "contact_id": "Contact ID",
    "currency": "Currency",
    "field_values": "Custom fields' values",
    "group": "Deal group ID (pipeline ID)",
    "group_title": "Deal group title (pipeline title)",
    "id": "ID",
    "owner": "Owner ID",
    "stage": "Deal group stage ID (pipeline stage ID)",
    "stage_title": "Deal stage title",
    "title": "Title",
    "value": "Deal value"
  }
  ```
</ResponseExample>

### Payload Field Details

<ResponseField name="Deal" type="Event Payload">
  <Expandable title="fields" defaultOpen="true">
    <ResponseField name="id" type="string" required>
      `ID` ID

      ```json CEL theme={null}
      id
      ```

      ```json Example theme={null}
      "10"
      ```
    </ResponseField>

    <ResponseField name="contact_id" type="string" required>
      `ID` Contact ID

      ```json CEL theme={null}
      contact_id
      ```

      ```json Example theme={null}
      "10"
      ```
    </ResponseField>

    <ResponseField name="title" type="string" required>
      Title

      ```json CEL theme={null}
      title
      ```

      ```json Example theme={null}
      "Deal 1"
      ```
    </ResponseField>

    <ResponseField name="currency" type="string" required>
      Currency

      ```json CEL theme={null}
      currency
      ```

      ```json Example theme={null}
      "USD"
      ```
    </ResponseField>

    <ResponseField name="group" type="string" required>
      Deal group ID (pipeline ID)

      ```json CEL theme={null}
      group
      ```

      ```json Example theme={null}
      "2"
      ```
    </ResponseField>

    <ResponseField name="stage" type="string" required>
      Deal group stage ID (pipeline stage ID)

      ```json CEL theme={null}
      stage
      ```

      ```json Example theme={null}
      "3"
      ```
    </ResponseField>

    <ResponseField name="owner" type="string" required>
      Owner ID

      ```json CEL theme={null}
      owner
      ```

      ```json Example theme={null}
      "10"
      ```
    </ResponseField>

    <ResponseField name="field_values" type="object" required>
      `HI` `ID` `PII` Custom fields' values

      ```json CEL theme={null}
      field_values
      ```

      ```json Example theme={null}
      {
      "Deal Note": "This is a note"
      }
      ```
    </ResponseField>

    <ResponseField name="value" type="float64 (double)" required>
      Deal value

      ```json CEL theme={null}
      value
      ```

      ```json Example theme={null}
      100
      ```
    </ResponseField>

    <ResponseField name="stage_title" type="string">
      Deal stage title

      ```json CEL theme={null}
      stage_title
      ```

      ```json Example theme={null}
      "Stage 1"
      ```
    </ResponseField>

    <ResponseField name="group_title" type="string">
      Deal group title (pipeline title)

      ```json CEL theme={null}
      group_title
      ```

      ```json Example theme={null}
      "Pipeline 1"
      ```
    </ResponseField>
  </Expandable>
</ResponseField>
