ILSA spawns various event messages that you can subscribe to using the Hexon API. Our server will call your webhook whenever an event that matches one of your subscriptions triggers. These allow you to perform certain actions. Below are some example scenarios.
If your website or app allows for users to mark listings as favourite, you can notify them if one of them has been reduced in price.
- When a user adds a new favourite, record the current price.
- Subscribe to the
instance_object_updated
event, which will trigger every time an object has been updated. - You can narrow the subscription by filtering on specific object ids, or simply receive all updates.
- In your webhook, retrieve the current price using the
/vehicle
call and compare it to the previously stored price. - If the price has dropped (below a certain percentage?), send the user a message.
TIP
Subscribe to event instance_object_removed
event to notify the user a vehicle is no longer available.
If you want to add custom data to vehicles, but are unable to use enrichers, you can subscribe to the instance_object_added
event to be notified whenever a new object has been added to your instance. You can then use push fields to augment the information.