Skip to main content

Automate Your Rental Workflow with Webhooks: 5 Practical Examples

· 7 min read
Alexandre Bianchi
Creator of Stockaj

Rental management doesn't happen in isolation. When someone checks out equipment, your logistics team needs to know. When a rental goes overdue, maybe your accounting system should flag the deposit. When a new renter signs up, perhaps your CRM should get updated.

Most rental tools treat these connections as "nice-to-have" or require expensive enterprise plans to access. In Stockaj, webhooks are available on the Professional plan — and they're powerful enough to replace custom middleware.

This guide covers what webhooks are, how to set them up, and five real automations that teams are using to eliminate manual handoffs.

What Are Webhooks (in 30 Seconds)

A webhook is a URL that Stockaj calls whenever something happens. You define:

  1. Which events to listen for (e.g., "rental created," "item updated," "rental overdue")
  2. Where to send them (a URL — your server, Zapier, Make, n8n, or any endpoint)

When the event occurs, Stockaj sends an HTTP POST request to your URL with the full event data as JSON. Your receiving system processes the data and takes action.

It's the opposite of polling. Instead of your system asking Stockaj "did anything change?" every 5 minutes, Stockaj tells you the moment something happens.

Setting Up a Webhook

In Stockaj:

  1. Go to Settings → Webhooks
  2. Click Create Webhook
  3. Enter the URL that should receive events
  4. Select which events to subscribe to — you can pick specific events or use wildcards:
    • rental.created — fires when a new rental is created
    • rental.* — fires on any rental event
    • item.* — fires on any item event
  5. Save — Stockaj will send a test ping to verify connectivity

Each webhook delivery includes:

  • A JSON payload with the full event data (rental details, items, renter info)
  • A signature header for verification (so you can confirm the request came from Stockaj)
  • Automatic retries if your endpoint is temporarily down

Example 1: Slack Notification on New Rentals

Goal: Post a message to your team Slack channel whenever someone creates a rental — either from the web app or the kiosk.

Setup:

  1. In Slack, create an Incoming Webhook for your desired channel (Slack → Apps → Incoming Webhooks)
  2. In Stockaj, create a webhook:
    • URL: your Slack webhook URL
    • Events: rental.created

What happens:

Every time a rental is created, Stockaj sends the event to Slack. The message includes the renter name, items checked out, and expected return date.

If you want to format the Slack message nicely, put a lightweight middleware in between (a simple serverless function, or use Make/Zapier to receive the Stockaj webhook and format a Slack block kit message).

Time to set up: 5 minutes with Zapier, 15 minutes with a custom function.

Example 2: Google Sheets Logging for Audit Trail

Goal: Maintain a running log of all rental activity in a Google Sheet — for board reporting, compliance, or simply as a backup.

Setup:

  1. Create a Google Sheet with columns: Date, Event, Renter, Items, Status
  2. Use Google Apps Script or Make to receive webhook data and append rows
  3. In Stockaj, create a webhook:
    • URL: your Google Apps Script web app URL or Make webhook URL
    • Events: rental.created, rental.updated, rental.finished

What happens:

Every rental lifecycle event automatically adds a row to your spreadsheet. Your board gets a live, always-current audit trail without anyone manually updating it.

Why this matters for NGOs: Grant reporting often requires documented proof of activity — number of items lent, number of beneficiaries served, average loan duration. This automation builds that report continuously.

Example 3: Overdue Escalation to Management

Goal: When a rental goes overdue, send an email to the operations manager with the renter's contact info and the list of overdue items.

Setup:

  1. Set up a webhook endpoint that sends an email (this could be a simple script, a no-code tool like Make, or even a direct email API integration)
  2. In Stockaj, create a webhook:
    • Events: rental.overdue

What happens:

The moment a rental's status flips to overdue, the webhook fires. The management team gets an email with:

  • Renter name + contact info
  • List of overdue items
  • How many days overdue
  • Original expected return date

Combine with built-in alerts: Stockaj's alert rules handle automatic reminders to borrowers. The webhook handles escalation to management — different audience, different action, same trigger.

Example 4: Inventory Sync with External ERP

Goal: Keep your ERP or accounting system in sync with Stockaj's inventory changes — new items, quantity adjustments, deletions.

Setup:

  1. Create an integration endpoint that translates Stockaj events into your ERP's API format
  2. In Stockaj, create a webhook:
    • Events: item.created, item.updated, item.deleted

What happens:

When your team adds a new item in Stockaj, your ERP automatically gets a new asset record. When an item's quantity changes (because variants are added or removed), the ERP reflects the updated count. When an item is deleted, the ERP archives it.

This eliminates the "double data entry" problem where teams maintain parallel records in inventory and accounting systems.

Practical tip: Start with item.created only. Once that's working reliably, add item.updated. Incremental rollout prevents debugging headaches.

Example 5: CRM Update on New Renters

Goal: When a new renter is created in Stockaj, automatically create or update a contact in your CRM (HubSpot, Pipedrive, Salesforce, etc.).

Setup:

  1. Create a Make/Zapier workflow: trigger = Stockaj webhook, action = create CRM contact
  2. In Stockaj, create a webhook:
    • Events: renter.created

What happens:

A new borrower signs up at your kiosk or is added by staff. Within seconds, their name, email, and phone appear in your CRM. Your outreach team can follow up, your membership system stays current, and nobody has to copy-paste contact info between tools.

Architecture Tips

Use a Queue, Not Direct Processing

If your webhook endpoint does heavy processing (database writes, API calls to third-party services), put a message queue between Stockaj and your processing logic. Stockaj expects a quick response (HTTP 200) — if your endpoint takes 30 seconds to process, retries might fire unnecessarily.

Verify Signatures

Every Stockaj webhook delivery includes a signature header. Always verify it in production. This prevents spoofed requests from external sources pretending to be Stockaj events.

Handle Retries Idempotently

If your endpoint is down temporarily, Stockaj will retry the delivery. Design your processing to be idempotent — if you receive the same event twice, the result should be the same. Use event IDs to deduplicate if needed.

Start Simple

Don't build a complex event-driven architecture on day one. Start with one webhook, one event, one action. Verify it works reliably. Then expand. The most successful integrations we've seen started with a single Slack notification and grew from there.

What About No-Code?

If webhooks sound too technical, here's the no-code path:

  1. Zapier: Create a Zap with "Webhooks by Zapier" as the trigger → any of 5,000+ apps as the action
  2. Make (formerly Integromat): Same concept, more flexibility in data transformation
  3. n8n: Self-hosted alternative if you prefer keeping integration logic on your infrastructure

These tools receive the Stockaj webhook, let you map fields visually, and push data to your destination — no code required.

What Events Are Available?

Stockaj webhooks support event subscriptions with wildcard matching:

PatternFires on
rental.createdNew rental created
rental.updatedRental status changed
rental.finishedRental completed
rental.overdueRental passed return date
rental.*Any rental event
item.createdNew item added
item.updatedItem modified
item.deletedItem removed
item.*Any item event
renter.*Any renter event

You can create multiple webhooks with different event subscriptions — send rental events to Slack and item events to your ERP, for example.


The Bigger Picture

Webhooks aren't about Stockaj specifically — they're about eliminating manual handoffs between systems. Every time someone copies data from one tool to another, there's a delay, a risk of error, and a cost in human attention.

The rental businesses that scale efficiently aren't the ones with the biggest teams. They're the ones where information flows automatically between systems, and humans only get involved for decisions that require judgment.

Start with one automation. Prove it saves time. Then build the next one.

Webhooks are available on the Professional plan and above. Start a 14-day free trial →