Adding a Webhook
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:
- You have Developer Admin privileges to create a new webhook. For more information on privileges, see the Role-Based Access Control topic.
- You have set up the destination server or subscriber endpoint for successful implementation.
Procedure
- In the left menu, click Settings > Developer Tools.
- Click Webhooks.
The Webhooks page is displayed. - Click Add Webhook.
The Add webhook page is displayed. - Enter a name for the webhook.
- In the Webhook endpoint field, enter the subscriber URL for the webhook’s endpoint to listen to the event.
- (Optional) In the Webhook description field, enter a description for the webhook.
Use this field for internal notes about the webhook’s purpose. - In the API key header field, leave the request header set to x-api-key.
- In the API key credentials field, enter your API key value.
- This value comes from the system you are sending the webhook data to.
- To create a webhook for a fabric application, in the Events section, do one or more of the following as required:
- To create a webhook for the Product Catalog application, click the Product Catalog tab and do one of the following:
- To subscribe to all events in Product Catalog, check the Select all events in Product Catalog checkbox.
- To subscribe to all events in a specific Product Catalog service, check the checkbox next to the service name.
- To subscribe to specific events within a Product Catalog service, expand each service menu and check the checkbox next to individual events, 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 Offers application, click the Offers tab and do one of the following:
- To subscribe to all events in Offers, check the Select all events in Offers checkbox.
- To subscribe to all events in a specific Offers service, check the checkbox next to the service name.
- To subscribe to specific events within an Offers service, expand each service menu and check the checkbox next to individual events, as required.
For a complete list of events available to Offers, see the List of Offers Events topic.
- To create a webhook for the Orders application, click the Orders tab and do one of the following:
- To subscribe to all events in Orders, check the Select all events in Orders checkbox.
- To subscribe to all events in a specific Orders service, check the checkbox next to the service name.
- To subscribe to specific events within an Orders service, expand each service menu and check the checkbox next to individual events, as required.
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:
- To subscribe to all events in Inventory, check the Select all events in Inventory checkbox.
- To subscribe to all events in a specific Inventory service, check the checkbox next to the service name.
- To subscribe to specific events within an Inventory service, expand each service menu and check the checkbox next to individual events, as required.
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:
- To subscribe to all events in Cart & Checkout, check the Select all events in Cart & Checkout checkbox.
- To subscribe to all events in a specific Cart & Checkout service, check the checkbox next to the service name.
- To subscribe to specific events within a Cart & Checkout service, expand each service menu and check the checkbox next to individual events, as required.
- To create a webhook for the Product Catalog application, click the Product Catalog tab and do one of the following:
- At the top of the page, click Save.
The webhook is saved and the Test webhook button is displayed.
We recommend testing the webhook to ensure it’s successful. To learn more, see Testing a Webhook.
Related Topics
Was this page helpful?