Adding a Webhook - Fabric

Overview

Webhooks are real-time notifications that enable communication between different software systems and trigger automated processes. For example, for your online store, you can set up a webhook to alert you whenever a new product is added. Using fabric Copilot’s webhook functionality, you can create event subscriptions to monitor operations between fabric apps and external systems, such as a Customer Relationship Management (CRM) or Content Management Systems (CMS). You can create webhooks for the following applications in fabric:

Prerequisites

Before creating a webhook, ensure that:

Procedure

  1. In the left menu, click Settings > Developer Tools.
  2. Click Webhooks.

The Webhooks page is displayed. 03. Click Add Webhook.

The Add webhook page is displayed. 04. Enter a name for the webhook. 05. In the Webhook endpoint field, enter the subscriber URL for the webhook’s endpoint to listen to the event. 06. (Optional) In the Webhook description field, enter a description for the webhook.

Use this field for internal notes on details about the webhook. 07. In the API key header field, leave the request header set to x-api-key. 08. In the API key credentials field, enter your API key value.

  1. To create a webhook for a fabric application, in the Events section, do one or more of the following as required:

For a complete list of events available to Product Catalog, see the List of Product Catalog Events topic. - To create a webhook for the Orders application, click the Orders tab and do one of the following:

For a complete list of events available to Orders, see the List of Orders Events topic. - To create a webhook for the Inventory application, click the Inventory tab and do one of the following:

For a complete list of events available to Inventory, see the List of Inventory Events topic. - To create a webhook for the Cart & Checkout application, click the Cart & Checkout tab and do one of the following:

  1. At the top of the page, click Save.

The webhook is saved and the Test webhook button is displayed. fabric recommends testing the webhook to ensure it’s successful. To learn more, see Testing a Webhook.