Open MercatoDocsSearch docsAPI reference

User guide

Custom Webhooks

Create a webhook endpoint for the application that should receive changes. Select the events, save the delivery settings and inspect a delivery before relying on the integration.

Prerequisites

Step 1 – Enable the integration and review shared settings

Go to External Systems → Integrations and open Custom Webhooks.

Custom Webhooks integration settings

Use this screen for the integration-wide controls:

Tip

Use the integration toggle only when you want to pause the whole webhook subsystem. To stop a single destination, deactivate that specific webhook on its own detail page instead.

Step 2 – Create an endpoint

Open External Systems → Webhooks and click Create Webhook.

Webhook list

In the create form:

Outbound URL safety

Open Mercato rejects webhook URLs that point at localhost, private networks, reserved IP ranges, or internal hostnames. This protects the delivery worker from sending server-side requests to services that only the Open Mercato host can reach.

For local development or CI, set OM_WEBHOOKS_ALLOW_PRIVATE_URLS=1 to allow endpoints such as http://localhost:3000/webhooks. Keep this disabled in production. Use a public HTTPS endpoint or a temporary public tunnel when testing a production-like environment.

Step 3 – Store the signing secret immediately

After creating a webhook, Open Mercato reveals the signing secret only once. The same one-time reveal appears again after a secret rotation.

Important rules:

Step 4 – Test the endpoint and inspect delivery details

Open the webhook detail page and use Send Test before enabling broad event patterns in production.

Webhook detail page

The detail page is the main operator view for one endpoint. It shows:

Use this page when:

Step 5 – Monitor all deliveries from the integration logs tab

The integration detail page also provides an aggregated delivery view across every configured webhook.

Aggregated webhook delivery log

Use the Logs tab when you want to:

Event patterns

Custom Webhooks support exact event names and wildcards:

PatternMatches
catalog.product.deletedOnly that event
customers.*All customer events
*All platform events

Prefer exact events when possible. Use broad wildcards only when your consumer is designed to handle a wider event surface.

Troubleshooting

ProblemWhat to check
No deliveries appearConfirm the integration is enabled and the webhook itself is active. Then verify the event pattern matches a real emitted event name.
Test delivery stays pending or failsOpen the webhook detail page and inspect the delivery log for the HTTP status, response body, and retry state.
Signature verification fails in the consumerMake sure you copied the latest whsec_... value and verify the three Standard Webhooks headers exactly as sent.
You closed the secret reveal panelRotate the secret and copy the new value immediately.
You want alerts when retries are exhaustedTurn on Failed delivery notifications in the integration Settings tab.

Next steps

Previous: Users, roles, and RBAC · Next: Workflow Activities