A webhook is a mechanism that allows applications to communicate in real-time. Think of it as an automatic notification system that triggers whenever a specific event happens. Instead of having to constantly request data from a service, webhooks push information to a predefined URL when something important occurs.

In simpler terms, a webhook works like a "callback function", automatically sending data or notifications from one system to another. This eliminates the need for manual data requests and makes processes faster and more efficient.


Real-Life Example of a Webhook

Let’s imagine you have an online store, and you want to be notified every time a new order is placed. Instead of logging into your store’s system and checking for new orders, a webhook can automatically send a notification to your server the moment an order is made. The data sent can include the order details, customer information, or payment status.
For businesses, webhooks can simplify automated processes by pushing updates in real-time to other systems, without the need for repetitive manual checks.



Key Features of Webhooks

  1. Real-Time Communication: Data is sent immediately when an event happens, making it a fast and efficient solution.
  2. Push Mechanism: Unlike traditional pull requests, where you need to manually request data, webhooks use a push method to automatically send the data to your server.
  3. Linked to a Specific URL: Webhooks are always tied to a URL (also known as an endpoint), which receives the data in the form of a POST request.


How Does a Webhook Work?

Setting up a webhook is fairly simple. Here’s how it works step by step:

  1. Configure the Webhook in a Service
    For example, let’s say you use Stripe for payment processing. In Stripe’s settings, you can configure a webhook and define the URL where you want event data to be sent.
  2. Triggering the Webhook
    When a specific event happens (e.g., a successful payment, a refund, or a subscription update), Stripe will send a POST request with the event data to the URL you’ve provided.
  3. Handling the Data in Your Server
    Your server receives the data, processes it, and triggers an action based on that information. For example, your system might:

    • Save the payment data to a database.
    • Send an email notification to the customer.
    • Trigger another process, such as updating stock levels or starting a delivery workflow.



Webhook vs API: What’s the Difference?

A webhook is often compared to an API call, but there’s a key difference:

  • API (Pull Method): Your system requests data from a service when needed.
  • Webhook (Push Method): The service sends data to your system automatically when an event occurs.
In short, webhooks are like getting a message when something happens, whereas APIs require you to ask for updates.

Webhook vs. API
Webhook vs. API


What Is Cargoson Webhook?

The Cargoson Webhook feature is now available in Cargoson TMS, allowing businesses to receive real-time updates on their shipments and automate processes within their own systems.

With the Cargoson Webhook, your system can be notified automatically when key events happen, such as:

  • Shipment status updates (e.g., “Collected,” “Delivered,” etc.).
  • New shipment bookings created in Cargoson.
  • Changes to shipment details.
Instead of constantly checking Cargoson for updates, businesses can configure the webhook to push notifications to their internal systems as soon as these events occur. This can trigger automated actions, such as updating your ERP, sending notifications to customers, or kicking off internal workflows.


Benefits of Using Cargoson Webhook

  1. Real-Time Shipment Updates: Know immediately when there are changes to your shipments.
  2. Automate Internal Processes: Reduce manual work by triggering automated workflows in your internal systems.
  3. Improved Visibility: Get all important shipment information in your own environment without logging into Cargoson.


How to Set Up Cargoson Webhook

  1. Go to the Cargoson TMS settings and find the Webhook section under Integrations.
  2. Add your endpoint URL where you want the data to be sent.
  3. Select the events you want to receive notifications for (e.g., status updates, new bookings).
  4. Test the webhook to ensure your server is correctly receiving and processing the data.


Why Use Cargoson Webhook?

The Cargoson Webhook is perfect for companies that want to improve visibility and automate workflows. For example:

  • Manufacturers can track critical deliveries and automatically update their ERP.
  • Retailers can keep customers informed of their order statuses.
  • Warehouses can automatically prepare for incoming shipments based on live updates.
By using Cargoson Webhook, you can reduce manual tasks, speed up processes, and ensure your internal systems stay updated in real-time.

Ready to automate your logistics?
Check out the Cargoson Webhook feature from the Cargoson developer menu and bring real-time shipment updates directly into your business workflows!


Your Company is not a Cargoson TMS user yet?

Book a free consultation