Opportunity events

Event

opportunity.created

Trigger

A new opportunity is created.

Event

opportunity.updated

Trigger

An opportunity is updated.

Event

opportunity.removed

Trigger

An opportunity is removed (marked as deleted).

Event

opportunity.won

Trigger

An opportunity is moved to the closed-won stage.

Event

opportunity.lost

Trigger

An opportunity is moved to the closed-lost stage.

Event

opportunity.stuck

Trigger

An opportunity is stuck in the pipeline due to inactivity.

data.object contains an opportunity object. data.previousAttributes is only included in the opportunity.updated event.

Example of an opportunity.updated event.

{
    "version": "0",
    "id": "5US7xdqKHalKbU8CXjhO",
    "type": "opportunity.updated",
    "agentId": "1R7kHmQ6moHuhpaddTf9",
    "description": "The opportunity score was updated, qualifying it.",
    "createdAt": "2024-08-20T15:14:54Z",
    "data": {
        "object": {
           "id": "OVYSz248mWyRtpjp1Ll8",
           "name": "Scheduling a dental cleaning promotion",
           "customerId": "e0hO4E0wHfbyPxjPAPAb",
           "score": 50,
           "ownerId": null,
           "amount": null,
           "stageId": "K1mb7xsIsx0qnfyxFAvo",
           "pipelineId": "g3g7oZwXq7Gc9e5rwO3Y",
           "createdAt": "2024-08-14T14:38:03.686Z",
           "updatedAt": "2024-08-14T14:38:03.686Z",
           "removed": false
        },
        "previousAttributes": {
           "score": null
        }
    }
}

Last updated