Integrations
You can view and manage your store’s webhooks on the Settings > Webhooks page.
For an overview of how integrations work in Commerce, see Integrations.
Webhooks list
The webhooks list shows the Name, Description, URL, and Status of each webhook. The status is Enabled or Disabled.
You can sort the list by Name, Description, or Status, and show or hide columns from the table header.
Creating a new integration
-
Go to Settings > Webhooks.
-
Select New webhook. The New webhook panel opens.
-
Enter the following information:
Section Fields General fields Name (required), Description, and Enabled. New webhooks are enabled by default. Configuration URL that receives the events (required), and Secret Key. The secret key is forwarded along with the request as a header. Observes These events can trigger webhooks. Select the ones you want to trigger the webhook: Created, Updated, or Deleted for most objects; Updated or Deleted for Cart; Created or Deleted for File; Created, Updated, Fulfilled, Authorized, Paid/Captured, Cancelled, or Refunded for Order; Updated for Payment Gateway. Created, Updated, or Deleted for customers. Only five events can be added. Custom APIs Shown in stores only. For each custom API, select Created, Updated, or Deleted to trigger the webhook. In an organization, Observes lists only Integration and PXM Catalog, and Custom APIs is not shown.
-
Select Save. The panel closes and the webhook is added to the list.
To close the panel without saving, select Cancel.
Editing a webhook
- Go to Settings > Webhooks.
- Select the webhook name, or select ⋮ > Edit in the webhook row. The webhook panel opens on the Webhook details tab.
- Make your changes. To replace the secret key, select Change next to Secret Key and enter the new key.
- Select Save. The panel stays open after you save.
To undo your unsaved changes, select Discard changes. Unsaved changes are kept when you switch between the Webhook details and Logs tabs.
On wide screens, the panel opens beside the webhooks list, and the list shows only the Name column with the open webhook highlighted.
You cannot edit aws_sqs and stomp integration types using Commerce Manager. You can edit these integrations using the update an integration endpoint.
Viewing webhook logs
- Go to Settings > Webhooks and open the webhook.
- Select the Logs tab.
The Logs tab shows the Status Code, Body, Error Detail, and Type of each log entry. If there are no logs, No logs available is shown.
Deleting webhooks
To delete a webhook:
- Go to Settings > Webhooks.
- Select ⋮ > Delete in the webhook row. Alternatively, open the webhook and select ⋮ > Delete in the panel header.
- In the Delete webhook dialog, select Yes, delete webhook.
To delete several webhooks:
- Go to Settings > Webhooks.
- Select Bulk actions.
- Select the webhooks that you want to delete.
- Select Delete selected, and then confirm the deletion.
Read-only access
If your role has View access to Webhooks, you can open webhooks and their logs in read-only mode. New webhook, Save, and Delete are unavailable. To create, edit, or delete webhooks, your role needs Manage access to Webhooks.