Skip to main content

Shopify Integration

Overview

Nexus syncs orders, customers, and fulfillment status with Shopify stores. When a customer places an order on Shopify, it automatically appears in Nexus. Fulfillment updates in Nexus are pushed back to Shopify.

Capabilities

  • Automatic order sync (create, update).
  • Customer sync and merge with CRM contacts.
  • Fulfillment status push-back.
  • Abandoned cart detection and recovery.
  • Shopify KPI import for analytics.

Required permissions / scopes

  • read_orders, write_orders
  • read_customers
  • read_products
  • read_fulfillments, write_fulfillments

Edge Functions

FunctionDirectionPurpose
shopify-webhookInboundReceives Shopify order/customer events
shopify-webhook-publicInboundPublic webhook endpoint for Shopify
shopify-ordersReadFetches orders from Shopify
shopify-order-updateOutboundPushes order updates to Shopify
shopify-fulfillOutboundUpdates fulfillment status in Shopify
shopify-abandonedReadFetches abandoned carts
fetch-shopify-customerReadFetches customer by phone/email
fetch-shopify-customer-by-idReadFetches customer by Shopify ID

Webhook setup

Nexus registers Shopify webhooks automatically during connection. Topics: orders/create, orders/updated, customers/create, customers/update.

Common troubleshooting

IssueResolution
Orders not syncingVerify Shopify API credentials. Check webhook registration in Shopify Admin → Settings → Notifications → Webhooks.
Duplicate ordersCheck for duplicate webhook deliveries. The system deduplicates by shopify_order_id.
Fulfillment not pushing backEnsure write_fulfillments scope is granted.