call to replace anchor tags contains '/admin' in href

Webhooks

Webhooks are HTTP callbacks that allow you to push real-time information to other applications in case of certain events e.g. when an order is placed or when a user registers on the site. A Webhook delivers the data immediately as it happens.

Unlike REST APIs where you need to poll very frequently in order to get near real-time data, webhooks provides a much more efficient way to receive real-time data from your store.

APIs and Webhooks are two major ways to integrate third-party applications with the StoreHippo platform.

You can manage webhooks in Advanced Settings > Webhooks section in StoreHippo Admin Panel.

Setting up Webhooks

Click on the Add New button to create webhooks. Clicking on the Add new will open the following form:

Action

Select the events for which the webhooks are sent from the drop-down.

URL

Provide the URL on which the request is placed.

Headers

Mention the key and value for the headers. For example, 

Key: Content-Type

Value: application/json

Consuming Webhooks

The URL that you specify in the webhook should be able to receive the data from the webhook. The data that is posted will be in the same structure as defined in the corresponding API. For example, webhook for placing an order will receive the JSON data of the Order in the format defined in the API docs

Events

StoreHippo supports 11 events for the webhooks currently:

  1. Customer Add: A webhook will be sent every time a new customer is created.
  2. Customer Edit: A webhook will be sent every time a customer record is updated.
  3. Customer Delete: A webhook will be sent every time a customer record is deleted.
  4. Order Add: A webhook will be sent every time an order is created.
  5. Order Edit: A webhook will be sent every time an order has been updated.
  6. Order Delete: A webhook will be sent every time an order has been deleted.
  7. Product Add: A webhook will be sent every time a product has been created.
  8. Product Edit: A webhook will be sent every time a product has been updated.
  9. Product Delete: A webhook will be sent every time a product has been deleted.
  10. Import Job Error: A webhook will be sent every time an import job shows error.
  11. Import Incomplete: A webhook will be sent every time an import process is not completed.

Request

The request sent by StoreHippo would also include some headers:-

  • X-Storehippo-StoreName: The store name for which the request is made.
  • X-Storehippo-Entity: The entity on which for which the request is made.
  • X-Storehippo-Command: The operation performed on the entity.
  • X-Storehippo-RecordId: The id of the record on which the operation is performed (Only in case of Edit and Delete).
2019-02-01T10:12:25.889Z