Skip to main content
More in Learn

Webhooks and Events in Crystallize

Within Crystallize, actions like creating an order and updating a product fire off events. You can subscribe to these events using the Webhook mechanism. Webhooks provide a way to call external functions based on event triggers.

Creating a Webhook

You can create a webhook in the Webhooks tab within Crystallize by clicking "Add webhook". You can then specify what type of REST call you would like to make to a specific URL. You’re also able to specify any custom headers you may need for this request.

Select your Data

You can optionally define specific pieces of data you want Crystallize to send as the body of the webhook request. This can be useful if you want to share data within Crystallize across other services without having to make a separate request to retrieve that data.

Example

Below, you will find an example of using our open source NextJS boilerplate to place an order and test our webhook. We integrated with Slack for this one, but you may want to consider the Webhook.site to test yours.

Webhooks example
People showing thumbs up

Need further assistance?

Ask the Crystallize team or other enthusiasts in our slack community.

Join our slack community