Webhook simplifies the way Apps communicate with each other, as it is triggered by an event in a source system. For instance, a Salla Merchant Store and / or Salla Apps Store sends the data payload to a destination system, for example the Developer's App.
This article guides the developer to stream or create a webhook for the App using the Salla CLI command salla app create-webhook. The article will also explain how to add custom webhook headers.
For the utmost flexibility, the developer can stream a webhook for any event they want to receive by passing the event name, which can also be fetched from the Webhook endpoint. Run the following command to create a webhook:
Once the command is executed, a success message will be displayed below.
Customizing webhook headers, which is done via the Salla Partners Portal, can help the developer define the headers to show specific information about the events happening between their Apps and Salla stores. To add a custom webhook header: