Managing your Webhooks

In this article we will discuss webhooks for MessageBird's Abandoned Cart Recovery Solution. We will cover the following topics:

Why do you need webhooks?

You might wonder why you need to set up webhooks in the Shopify Admin Dashboard for MessageBird’s Abandoned Cart Recovery Solution to work. We need the webhooks to receive events, successfully handle abandoned checkout detection, efficiently manage audience engagement, and enable users to specify an audience.

Anatomy of Webhooks

You can use webhook subscriptions to send notifications about particular events in your online shop to MessageBird. The E-commerce solutions you've set up on the MessageBird platform will be able to work with the incoming data and send messages across any communication channel. Each solution may rely on a different set of events, and these webhooks only need to be configured once. For Abandoned Checkout Recovery, MessageBird monitors checkout events.

Verifying Webhooks

Webhook events sent from Shopify are signed with a verification key. To ensure security, our platform will validate the incoming event. To do so, we need you to copy the key generated for your solution in the Shopify Admin. You can find this key by following the next steps:

  1. Log in to your Shopify Admin

  2. Go to Settings and tap Notifications

  3. Scroll down to the bottom of the page and copy the key. In the image below the key is blurred for security, but yours won’t be :)

Check out this guide to learn more about how MessageBird ensures security by verifying incoming webhooks from Shopify.

Creating Webhooks

Shopify allows you to create webhooks for a single topic. To create a webbook, check out Shopify's user documentation on how to create webhooks on Shopify Admin or follow these steps:

Step 1: Create webhook

Go to the Shopify Admin, click Settings and tap Notifications. Scroll to the bottom to the Webhooks section, and hit Create webhook.

Enter the Event, Format, URL and Webhook API version. Tap Save webhook when you’re finished.

For Abandoned Checkout Recovery, you will need to send Checkout Creation and Checkout Update to MessageBird. Here's how your Webhook setup should look like :

Done? Awesome! Now create another one with the event Checkout Update.

Step 2: Test your webhook

After the webhook is created, you’ll be redirected to the Notifications page, where you can send a test webhook—the testing actually sends a sample event to MessageBird. We’ll use the test to verify that the webhook setup is connected as expected and if not, you’ll receive an error response.

And that’s it! Now you know how to create a webhook on the Shopify Admin API.

Need extra help? Contact our Support team. We’re here for you.

Last updated