Using Webhooks, you can connect all your extra requirements to the API and send information about events generated in your web environment or application.

Let’s take it one step at a time.

What is a Webhook?

In Truust, a Webhook is used to send you a notification every time an event is generated in your environment. So you can request that different actions performed by a buyer or seller on your platform trigger several actions.

Let’s take an example.

Imagine you have an online store and you want to offer a promotional code to all buyers who make a purchase in the first 24 hours of an offer to thank them for their commitment. You can do it manually, checking the payments at every moment. But it would be a waste of time.

Or you can do it automatically with the Webhooks that will activate the sending of an email with the promotional code to all the people who made a payment within the period of time you have indicated.

More effective, right?

Truust can send webhook events that notify your application every time an event occurs in your account. This is especially useful for events that are not triggered by a direct API request, such as order status changes and many user actions. This mechanism is also useful for services that are not directly responsible for making an API request, but still, need to receive a response to that request.

Simply put, Webhooks allow you to trigger an action after an event. They are generally used for communication systems. This is the easiest way to receive an alert when something happens on your system.

Webhooks transfer all the information to the platform, without having to integrate Truust’s API which, depending on the needs, can have a higher level of complexity.

Webhooks can be complementary to the API.

 

How do Webhooks work?

Let’s take the example of a bank. When you make a withdrawal, the dealer checks the balance remaining in your account and withdraws the amount you requested. Once this is done, the balance is updated. This change in balance triggers an action: an SMS is sent to you with the details of the withdrawal. This is how webhooks work. An event serves as a trigger for an action.

Webhooks are used for real-time notifications, so the system can be updated as soon as the event occurs.

Webhooks in Truust work the same way. The distributor is an application or website (webhook provider) that sends a signal when a certain event occurs. The system that sends you the SMS is called the listener. The listener is the URL that receives calls from webhooks and then performs a predefined action – in this case, sending the SMS.

The webhook is a programming mechanism designed to receive data from an external system in real-time.

 

What can you do with Webhooks?

Among other things:

  • Synchronize systems in real-time;
  • Create links;
  • Send any kind of notification;
  • Process the data as you wish;
  • Create reports;

 

And many other things depending on your needs!

In order to use the webhooks in Truust, you must have an account at truust.io.

You can create an account for free, and the trial features are also free. Once your account is activated, log in to the Webhooks control panel → Create Webhooks

More information about Webhooks in the following link.

https://docs.truust.io/developers#webhooks

The real value of Webhooks is to alleviate tedious service updates and data entry routines. Many companies are already using them and this trend is likely to increase in the coming months.