A webhook allows your sales to show up on Palmetrics almost instantly.
As per Takealot's documentation:
Webhooks are used to update the data in a particular system in real-time, based on events that occur in another system. i.e. they are a tool that assists in keeping the data in two different systems in sync, in real time. They work by sending notifications to a defined URL of the occurrence of an event that has occurred in a particular system.Instead of getting your app to make an API call every X number of minutes to check if a specific event has occurred, you can subscribe to webhook events which send a POST request from Takealot telling you the event has occurred and details of the event. This allows you to have more real time data with far fewer API requests.
In short, the benefits are:
The same information that Palmetrics can access via your Takealot API key is shared via the webhook - nothing more.
At this time, webhooks are only used to get immediate updates when your sales change state - e.g. from 'Preparing for Customer' to 'Shipped'.
A Webhook URL is the recipient destination that the sending system will send "event" updates to, which in this case is from Takealot -> Palmetrics.
So, you would enter Palmetrics' Webhook URL into your Takealot Seller Portal.
A Webhook secret is created by the sending system and allows the receiving system to verify that the request is legitimate, unaltered and originated from the sending system.
This secret should not be shared with anyone other than Palmetrics in this context.
Setting up your webhook requires you to update settings on Palmetrics and your Takealot Seller Portal.
Below are the steps that you need to follow to complete this process: