Event Object
The Event Object is the payload sent to your webhook callback URL whenever something changes in your Funnel Leasing account.
Funnel Leasing emits events for activity on your applications, residents, and units, so your systems can react to changes without polling the API.
How It Works
When an event occurs, such as the status change of an application from Submitted to being Approved by a Leasing Professional, Funnel Leasing creates a new Event object. This object encapsulates the pertinent details of the event, allowing you to react accordingly. For instance, upon receiving a lease_transaction.status_updated event, your system can automate actions like reserving a unit in your Property Management System (PMS).
Listening to Events
By registering webhook endpoints in your Funnel Leasing account, you empower Funnel Leasing to automatically dispatch Event objects to these endpoints via POST requests whenever an event occurs. This enables your application to respond promptly and effectively.
The Event Object
The Event object dispatched to your webhook endpoint provides a comprehensive snapshot of the changes that have taken place. Let's delve into its structure and contents.
Example Event Payload
Here's an example of the payload you can expect to receive:
Event Object Structure
Let's break down the components of the Event object:
id: A UUID string identifying the event itself, not an individual delivery attempt. The sameidis sent again on every retry of a failed delivery, and to each of your endpoints subscribed to that event, so you can use it as an idempotency key to avoid processing the same event twice. It is also what to reference when contacting Funnel about a delivery issue.event: The event type (for example,lease_transaction.status_updated), matching one of the names on the Events List. This determines the shape of the accompanyingdataobject.timestamp: An ISO-8601 datetime string (with timezone offset) denoting when the event occurred, not a Unix/epoch timestamp.data: Contains the event's payload fields. Its structure varies by event type (see each event's own page under the Events List for its exact field list).
Next Steps
To explore the full spectrum of event types that Funnel Leasing sends to your webhook, refer to the complete list of event types. Understanding these events and their payloads will empower you to build robust integrations that leverage real-time data from Funnel Leasing.