Deal Data Models

Represents a sales opportunity or a deal

Model IDEvent Data KeyDescription
crm_deal_infoinfo
crm_deal_stagestage
crm_deal_accountsaccountsGet the Account IDs that are associated with the deal
crm_deal_contactscontactsGet the Contact IDs that are associated with the deal

Deal Info

Model ID: crm_deal_info

NameTypeDescription
idString
nameString
descriptionString
amountDouble
currencyString
ownerUserPlease refer to https://developers.getknit.dev/reference/base-models#user
createdByUserPlease refer to https://developers.getknit.dev/reference/base-models#user
statusEnumOne of
OPEN,
WON,
LOST
createdAtDate
lastActivityAtDate

Deal Stage

Model ID: crm_deal_stage

NameTypeDescription
stageIdString
stageNameString
pipelineIdStringIf the CRM system supports multiple pipelines, the ID of the pipeline to which the stage belongs
pipelineNameStringIf the CRM system supports multiple pipelines, the name of the pipeline to which the stage belongs

Deal Accounts

Model ID: crm_deal_accounts

NameTypeDescription
accountsList[String]Account IDs associated with the deal

Deal Contacts

Model ID: crm_deal_contacts

NameTypeDescription
contactsList[String]Contact IDs associated with the deal

Event Data Example

{
    "info": {
      "id": "13415674244",
      "name": "Waystar Royco",
      "description": "Entertainment Company looking for our product",
      "amount": 100000.0,
      "currency": "USD",
      "owner": {
        "id": "407425865",
        "email": "[email protected]"
      },
      "createdBy": {
        "id": "51501658",
        "email": "[email protected]"
      },
      "status": "WON",
      "createdAt": "2023-05-22T20:04:24Z",
      "lastActivityAt": "2023-05-22T20:04:24Z"
    },
    "stage": {
      "stageId": "closedwon",
      "stageName": "Closed Won",
      "pipelineId": "default",
      "pipelineName": "Sales Pipeline"
    },
    "accounts": [
      "15741522528"
    ],
    "contacts": [
      "51"
    ]
  }