How Webhooks Work
Nexudus sendsPOST requests to your Webhook URL with a JSON payload. Your endpoint must:
- Always return
application/jsoncontent-type - Always return HTTP status
200 - Support
https://(webhooks are only sent to HTTPS URLs) - Respond within 5 seconds (requests will timeout after this)
Types of Webhooks
Nexudus sends two types of webhook notifications to marketplace applications:1. Feed Webhooks
Feed webhooks notify your application that inventory data has changed and your service should refresh its data by fetching the feed or calendar endpoint. When they’re sent:- A plan is created, updated, or deleted
- A product is created, updated, or deleted
- A resource is created, updated, or deleted
- A marketplace installation status is changed (enabled/disabled or settings updated)
2. Booking Webhooks
Booking webhooks notify your application of real-time changes to reservations. These are sent only for locations where your marketplace has the “Provide Resources” option enabled. When they’re sent:- A new reservation is created →
type: "bookingnew" - An existing reservation is updated →
type: "bookingupdate" - A reservation is cancelled or deleted →
type: "bookingdelete"
Webhook Delivery Details
- Content-Type: All webhook requests are sent with
Content-Type: application/json - Timeout: Requests timeout after 5 seconds
- Retry behavior: Failed webhook deliveries are logged but not automatically retried
- Async delivery: Webhooks are sent asynchronously via background jobs, so there may be a short delay (typically a few seconds) between the event and the webhook delivery