Shopify Integration

HookFlow provides seamless integration with Shopify webhooks to help you reliably process store events. This guide will walk you through setting up and configuring Shopify webhooks with HookFlow.

Setting Up Shopify Webhooks

Follow these steps to configure your Shopify webhooks:

1. Get Your HookFlow Endpoint

First, copy your unique HookFlow endpoint URL from your dashboard. This is where Shopify will send webhook events.

2. Configure Webhook in Shopify

  1. Go to your Shopify admin panel
  2. Navigate to Settings > Notifications
  3. Scroll down to "Webhooks"
  4. Click "Create webhook"
  5. Select the event type
  6. Enter your HookFlow endpoint URL
  7. Choose the webhook version (2023-07 recommended)
  8. Save the webhook

3. Add Shopify Secret

After creating the webhook, Shopify will provide a webhook secret. Add this to your HookFlow dashboard under the Shopify integration settings to verify webhook authenticity.

Supported Events

HookFlow supports all Shopify webhook events. Some commonly used events include:

  • orders/create
  • orders/paid
  • orders/fulfilled
  • products/create
  • products/update
  • customers/create
  • refunds/create

Event Format

Shopify webhook events follow a consistent format. Here's an example of an orders/create event:

{ "id": 123456789, "email": "customer@example.com", "created_at": "2023-01-01T00:00:00Z", "total_price": "99.99", "currency": "USD", "financial_status": "paid", "customer": { "id": 987654321, "email": "customer@example.com", "first_name": "John", "last_name": "Doe" }, "line_items": [ { "id": 456789123, "product_id": 789123456, "title": "Product Name", "quantity": 1, "price": "99.99" } ] }

Best Practices

Follow these best practices when working with Shopify webhooks:

  • Always verify webhook signatures using the Shopify secret
  • Set up appropriate retry rules for failed webhook deliveries
  • Monitor webhook activity in your HookFlow dashboard
  • Use the latest webhook API version

Next Steps

Now that you've set up Shopify webhooks, explore these related topics: