Integrate with Shopify

Updated at:

Use an HTTP source in EventBridge to integrate with Shopify.

Background

Shopify is a one-stop software-as-a-service (SaaS) e-commerce platform that provides merchants with tools and templates to build online stores and manage marketing, sales, payments, and logistics across all channels. You can use EventBridge to quickly integrate with Shopify for centralized management of alerts and events.

Prerequisites

Step 1: Create a Shopify event source

Create an event source of the HTTP/HTTPS Events type in the EventBridge console. The following table describes the parameters. For more information, see Custom event source with an HTTP/HTTPS trigger.

  • Request Type: Select HTTP&HTTPS.

  • Request Method: Select a POST.

  • Security Configuration: Select Optional.

After the event source is created, you can find the custom event source in the event source list, and then click Details to view the configuration information. Internet request URL can be used as the webhook URL of the event source. pic-1

Step 2: Configure a webhook in Shopify

  1. Log in to the Shopify console. In the lower-left corner of the homepage, click Settings.

  2. In the left-side navigation pane, click Notifications.

  3. On the Notifications page, scroll down to the Webhooks section and click Create webhook.

  4. In the Add webhook dialog box, configure the parameters and click Save.

    For Format, select JSON. For Webhook API version, select unstable.

    • Event: Select an event type from the drop-down list to act as the trigger. This topic uses Product creation as an example, which means Shopify sends an event when you create a new product.

    • URL: Enter the Internet Request URL from Step 1: Create an event source for Shopify in EventBridge.

Step 3: Trigger an event

Return to the Shopify console and perform the action that you configured to trigger the event in Step 2: Configure a webhook in Shopify. For example, adding a new product triggers an event.

Verify the result

  1. Log on to the EventBridge console.

  2. In the top navigation bar, select a region.

  3. In the left-side navigation pane, click Event Buses.

  4. In the left-side navigation pane, click Event Tracking to view and verify the obtained event information.