Hostinger Ecommerce: How to set up webhooks

Send order, fulfillment, and product events from your store to your own apps.

Updated 7 days ago

Hostinger Ecommerce webhooks send an automatic notification to a URL you choose when orders, fulfillments, or products change in your store. Use them to trigger fulfillment workflows, update external systems, or notify your team, without checking your store for changes. To set up webhooks, add an endpoint URL in Store Manager settings, choose from 11 events, optionally limit them to specific sales channels, and send a test webhook before you rely on it. Hostinger Ecommerce signs every webhook request with a signing secret and retries failed deliveries automatically.

Before you start

  • You need a Hostinger Ecommerce store.
  • You need an endpoint URL that receives the notifications. The endpoint URL must be a public HTTPS address on the default port.

Add a webhook endpoint in Hostinger Ecommerce

A webhook endpoint is the URL that receives your store notifications. To add a webhook endpoint:

  1. In Store Manager, go to Settings → Webhooks.
  2. Click Add endpoint. If your store already has an endpoint, click Add webhook.
  3. Enter the address that receives the notifications in Endpoint URL, for example https://domain.tld/webhooks.
  4. Under Events to send, expand a group, such as Orders, and select the events to receive. Select the group checkbox to select all events in that group.
  5. To receive events from specific sales channels only, select them in Sales channels. By default, the endpoint receives events from All sales channels.
  6. Click Add endpoint.
  7. Copy the signing secret in the Endpoint added window, store it in your app, and click I’ve saved the secret.

The signing secret appears only once, when you add the endpoint. Copy it before you close the Endpoint added window.

Hostinger Ecommerce webhook events

Hostinger Ecommerce webhooks cover 11 events in three groups: orders, fulfillments, and products. Each event has an event name, which appears in the type field of the webhook request.

  • Orders: Order placed (order.placed), Order paid (order.paid), Order canceled (order.cancelled), Order refunded (order.refunded), and Order fulfilled (order.fulfilled).
  • Fulfillments: Fulfillment created (fulfillment.created), Fulfillment updated (fulfillment.updated), and Fulfillment canceled (fulfillment.cancelled).
  • Products: Product created (product.created), Product updated (product.updated), and Product deleted (product.deleted).

Order events follow the order changes you make in Hostinger Ecommerce order management, and product events follow the changes you save when you add or edit products in your store.

Each webhook request body is a JSON object with the fields id, type, schema_version, occurred_at, store_id, sales_channel_ids, ordering_key, version, and data. The data field contains the changed record, such as the product in a product.updated event.

Send a test webhook from Hostinger Ecommerce

A test webhook checks that your endpoint receives and responds to Hostinger Ecommerce notifications before real store events reach it. To send a test webhook:

  1. On the Webhooks page, click the ⋮ button next to the endpoint and select Test.
  2. Select the event to test in Event type, for example Product created.
  3. Click Send test.

The result shows the HTTP status code and response time of your endpoint, for example Your endpoint responded with HTTP 200 in 94 ms. Below it, Response from your endpoint and Request body sent show the full exchange, with Copy response and Copy request body buttons. A test webhook uses example data, and its event ID starts with msg_test_, so your app can tell test events apart from real ones.

A test webhook sends a real request with example data, so your endpoint may run its automations. Make sure your endpoint can handle test events before you send one.

Manage Hostinger Ecommerce webhook endpoints

The Webhooks page lists every endpoint with its Events, Sales channels, Last attempt, Last delivery, and Status. A new endpoint shows No deliveries yet until the first event is sent, and Last attempt and Last delivery don’t include test webhooks.

  • To turn an endpoint on or off, use the toggle next to it.
  • To change the endpoint URL, events, or sales channels, click ⋮ and select Edit, make your changes, and click Save.
  • To remove an endpoint, click ⋮ and select Delete.

Hostinger Ecommerce webhook security and delivery retries

Hostinger Ecommerce signs every webhook request with the endpoint’s signing secret, so your app can verify that the request came from your store. The signing secret starts with whsec_ and appears only once, in the Endpoint added window. Hostinger Ecommerce retries failed webhook deliveries automatically.

Your Hostinger Ecommerce store now sends order, fulfillment, and product updates to your own apps automatically, so connected tools react to store changes without manual copying. To change other store settings, see Hostinger Ecommerce: How to edit store settings.