> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.fleetwire.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Set Up Webhooks for Custom Integrations


# 🔔 Automate External Actions with Webhooks in Fleetwire!

Want to connect Fleetwire to your own systems or third-party tools in real-time? Fleetwire’s **webhooks** let you push updates to external endpoints whenever key events occur—like new reservations or canceled bookings. This is perfect for syncing data, triggering workflows, or extending Fleetwire’s functionality to fit your business needs. Let’s set up webhooks to automate your workflows seamlessly!

## 🎯 Why Use Webhooks?

Webhooks in Fleetwire help you:

* **Sync Data Instantly**: Push real-time updates to your CRM, database, or other systems.
* **Automate Workflows**: Trigger actions in tools like Zapier, Slack, or custom scripts.
* **Extend Functionality**: Build custom integrations tailored to your rental business.

|| **Note**: Webhooks send an HTTP POST request to your specified URL whenever a selected event occurs—perfect for keeping your systems in sync!
---

## 🛠 How to Set Up and Use Webhooks

Follow these steps to add a webhook, secure it with a signature, and test the integration with your systems.

### Step 1: Understand Webhook Events

Fleetwire supports webhooks for various events—here are a few examples:

* **New Reservation Created**: Triggered when a customer books a vehicle.
* **Booking Canceled**: Fired when a reservation is canceled.
* **Payment Processed**: Sent when a payment is successfully processed.

Choose the events that matter most to your workflow when setting up your webhook.

| **Pro Tip**: Start with one event (e.g., “New Reservation Created”) to test your integration before adding more!
---

### Step 2: Add a Webhook Endpoint

Create a webhook to receive real-time updates from Fleetwire.

1. In your Fleetwire dashboard, go to [Settings > Providers > Webhooks](https://tenant.fleetwire.io/settings/providers/webhooks#webhooks).
2. Click **Add Endpoint** to create a new webhook.
3. Fill out the following fields:
* **Name**: A label for internal reference (e.g., “CRM Sync Webhook”).
* **Webhook URL**: The URL of your server or app endpoint (e.g., `https://yourapp.com/webhooks/fleetwire`).
* **Secret Key**: (Optional) A key for verifying requests—generate one in Fleetwire or use your own.
* **Events**: Select the events to subscribe to (e.g., “New Reservation Created,” “Payment Processed”).
4. Click **Save** to activate the webhook.

|| **Note**: Fleetwire will send an HTTP POST request with a JSON payload to your URL whenever a selected event occurs.
---

### Step 3: Explore Example Use Cases

Here are some ways to use webhooks to enhance your rental business:

* **Sync to CRM**: Send new reservations to your internal CRM (e.g., Salesforce) to keep customer data up-to-date.
* **Notify on Slack**: Post a message to a Slack channel whenever a vehicle is booked.
* **Trigger Zapier Flows**: Use Zapier to connect Fleetwire events to hundreds of apps—like sending an email via Gmail.

| **Pro Tip**: Start with a simple use case (e.g., logging events to your server) before building complex workflows!
---

### Step 4: Test Your Webhook Integration

Ensure your webhook receives and processes Fleetwire events correctly.

1. Set up a test endpoint on your server (e.g., using a tool like ngrok to expose a local server: `https://your-ngrok-url/webhooks/fleetwire`).
2. Add the webhook in Fleetwire (Step 2) using your test URL.
3. Trigger an event by creating a test reservation in [Orders](https://tenant.fleetwire.io/orders/) or via your online store (e.g., `testcompany.fleetwire.io`).
4. Check your server logs to confirm the webhook payload is received (e.g., a JSON object with `event` and `data` fields).
5. If using a secret key, verify the signature matches (Step 3).

| **Quick Tip**: Use a tool like Postman or a webhook testing service (e.g., webhook.site) to inspect payloads during testing!
---

## 🌟 Webhooks Set, Automation Unlocked!

You’ve successfully set up webhooks in Fleetwire to automate external actions! Whether you’re syncing data to your CRM, notifying your team on Slack, or triggering custom scripts, webhooks make it easy to extend Fleetwire’s functionality. Test a webhook event today to ensure your integration works perfectly.
---

## 🚀 Next Steps

Enhance your automation setup with these guides:

* **Automate Messages**: Send notifications with [Automating Tasks with Fleetwire](https://help.fleetwire.io/en/article/automations-us0ofc/).
* **Manage Orders**: Track reservations with [Fleetwire Order Workflow](https://help.fleetwire.io/en/article/the-fleetwire-order-workflow-12z4rr4/).
* **Secure Payments**: Process payments with [Sending Payment Requests to Customers](https://help.fleetwire.io/en/article/send-payment-requests-to-customers-vtvokn/).
* **Need Help?** Contact us at [hi@fleetwire.io](mailto:hi@fleetwire.io) or via the in-app chat.

Happy automating! 🌟