Deal - New

Webhook triggered each time a new deal is created.

Subscription

Here is an example of the request used to subscribe to new deal events.

{
eventSource: "DealNew",
targetUrl: "https://hooks.mydomain.com/"
}

Response Payload

Here is an example of the payload you'll receive:

{
id: 2048, // The unique identifier of the message
source: "DealNew", // The source event
retry: 0, // The total retry count for this message
payload: {
id: 42,
contactId: 10,
partnerId: 20,
stage: "Closed Won",
amount: 1500.90,
currency: "EUR",
name: "New Deal",
creationDate: "2019-01-12T17:45:12.021Z",
custom_property1: "",
custom_property2: 0,
...
}
}

The pay load contains also all the custom deal properties defined in your Kiflo account.