When you register a marketplace application and provide a Webhook URL, Nexudus will send real-time notifications to that endpoint whenever certain events occur. This allows your service to stay synchronized with inventory and booking changes without needing to poll the API.
How Webhooks Work
Nexudus sends POST requests to your Webhook URL with a JSON payload. Your endpoint must:
- Always return
application/json content-type
- Always return HTTP status
200
- Support
https:// (webhooks are only sent to HTTPS URLs)
- Respond within 5 seconds (requests will timeout after this)
Webhooks are sent asynchronously and may be retried if your endpoint fails to respond. Ensure your endpoint is idempotent and can handle duplicate notifications.
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)
Payload:
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"
Payload:
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
Testing Your Webhook Endpoint
You can test your webhook endpoint before publishing your marketplace application. Nexudus will send webhook notifications to your URL even while your application is unpublished, as long as it’s installed on your own location.
We recommend using a service like webhook.site or requestbin.com during development to inspect incoming webhook payloads.
Related Pages