Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.digifist.com/llms.txt

Use this file to discover all available pages before exploring further.

Galantis registers webhooks across every major Shopify data domain at installation time. These webhooks are the primary mechanism for keeping Galantis data current — when something changes in Shopify, the corresponding webhook fires and Galantis processes the update through a dedicated handler job queued via Redis and Laravel Horizon. Understanding the webhook architecture is useful for debugging data synchronization issues, understanding trigger timing, and tracing the path of a specific event from Shopify through to Galantis behavior.

What this covers

  • Every registered webhook topic and its handler job
  • What each webhook powers in Galantis
  • How webhooks are processed through the queue layer
  • Security validation and retry behavior
  • What happens when a webhook is missed

How webhook processing works

When Shopify sends a webhook to Galantis:
  1. Galantis receives the webhook at a registered endpoint
  2. The payload is validated via signature verification before processing — invalid signatures are rejected
  3. A handler job is dispatched to the Redis queue via Laravel Horizon
  4. The job processes the payload asynchronously — updating records, triggering domain events, and dispatching downstream actions
  5. If the job fails, Laravel’s queue retry mechanism re-attempts it with exponential backoff
This queue-based processing means webhook handling is resilient to temporary failures — a transient database issue or downstream API error does not cause the webhook to be permanently lost. Failed jobs are retried automatically until they succeed or exhaust the retry limit.

Customer webhooks

TopicHandler JobWhat it does in Galantis
customers/createProcessShopifyCustomerCreatedJobCreates a new contact record; fires CustomerCreated domain event; may enroll customer in CUSTOMER_CREATED automation
customers/updateProcessShopifyCustomerUpdatedJobUpdates profile fields — name, phone, email, locale, tags; fires CustomerUpdated domain event
customers/deleteProcessShopifyCustomerDeletedJobRemoves the contact record; fires CustomerDeleted domain event
customers/marketing_consent_updatedProcessShopifyCustomerMarketingConsentUpdatedJobUpdates marketing_state on the contact record; fires CustomerMarketingConsentUpdated domain event
customer_tags/addedProcessShopifyCustomerTagsAddedJobAdds tags to the contact record; fires CustomerTagsAdded domain event; may fire CUSTOMER_TAGGED automation trigger
customer_tags/removedProcessShopifyCustomerTagsRemovedJobRemoves tags from the contact record; fires CustomerTagsRemoved domain event

Order webhooks

TopicHandler JobWhat it does in Galantis
orders/createProcessShopifyOrderCreatedJobCreates an order record; fires OrderCreated domain event; enrolls qualifying customers in ORDER_PLACED automation
orders/cancelledProcessShopifyOrderCancelledJobUpdates order status; fires OrderCancelled domain event; enrolls qualifying customers in ORDER_CANCELLED automation
orders/updatedProcessShopifyOrderShippedJobDetects fulfillment data in the update payload; fires OrderShipped domain event when fulfillment present; enrolls qualifying customers in ORDER_SHIPPED automation
The orders/updated webhook covers all order update events in Shopify, not only shipping. ProcessShopifyOrderShippedJob specifically detects whether the update contains fulfillment data and only fires the OrderShipped domain event when it does — other order update types are handled or ignored based on their content.

Product and collection webhooks

TopicHandler JobWhat it does in Galantis
products/createProcessShopifyProductCreatedJobCreates a product record in Galantis; queues for Meta catalog push
products/updateProcessShopifyProductUpdatedJobUpdates product fields, variant data, pricing, and inventory; detects inventory_quantity 0→>0 for Back-in-Stock trigger; queues updated product for Meta catalog sync
products/deleteProcessShopifyProductDeletedJobRemoves the product record; removes from Meta catalog
collections/createProcessShopifyCollectionCreatedJobCreates a collection record in Galantis
collections/updateProcessShopifyCollectionUpdatedJobUpdates collection data and product memberships
collections/deleteProcessShopifyCollectionDeletedJobRemoves the collection record

Billing and app lifecycle webhooks

TopicHandler JobWhat it does in Galantis
app_subscriptions/updateMonitorBillingSubscriptionsJobProcesses plan changes, upgrades, downgrades, and subscription status updates from Shopify Billing
app/uninstalledTenant deactivationDeactivates the Galantis tenant workspace; stops all automation processing and message sending for the store
The app/uninstalled webhook triggers immediate tenant deactivation. If the app is reinstalled, a new OAuth token exchange occurs and data may need to be re-synced depending on how long the app was uninstalled. Active automations and campaign schedules from before uninstallation are not automatically re-activated.

GDPR compliance webhooks

TopicHandler JobWhat it does in Galantis
customers/redactProcessShopifyCustomersRedactJobSets the affected customer’s marketing_state to REDACTED; initiates data erasure for the customer record
shop/redactProcessShopifyShopRedactJobInitiates full shop-level data erasure for uninstalled stores that have requested data deletion
These webhooks are sent by Shopify in response to GDPR data subject requests and merchant data deletion requests. See Compliance — GDPR & Data Privacy for the full context.

Domain events

Every handler job fires one or more internal domain events after processing the webhook payload. These events are what automation triggers and other platform listeners subscribe to:
Domain eventFired byPowers
CustomerCreatedProcessShopifyCustomerCreatedJobCUSTOMER_CREATED automation trigger
CustomerUpdatedProcessShopifyCustomerUpdatedJobSegment re-evaluation
CustomerTagsAddedProcessShopifyCustomerTagsAddedJobCUSTOMER_TAGGED automation trigger
OrderCreatedProcessShopifyOrderCreatedJobORDER_PLACED automation trigger
OrderCancelledProcessShopifyOrderCancelledJobORDER_CANCELLED automation trigger
OrderShippedProcessShopifyOrderShippedJobORDER_SHIPPED automation trigger
CustomerMarketingConsentUpdatedProcessShopifyCustomerMarketingConsentUpdatedJobmarketing_state update on contact profile

What happens when a webhook is missed

Webhook delivery is not guaranteed — Shopify will retry failed deliveries, but a sustained Galantis outage or network issue can result in missed webhooks. When this happens, the Galantis record for affected entities will be stale until a corrective sync occurs. Recovery options:
  • For product data — trigger a manual full sync from Catalog → Shopify Sync → Sync Now
  • For abandoned checkouts — the polling mechanism runs every 10 minutes and self-heals; no manual recovery is needed