Skip to main content

Processing Shopify Orders

Endless provides a robust system for processing orders from Shopify through a combination of real-time webhooks and scheduled reconciliation jobs. This dual approach ensures that no orders are missed while maintaining system reliability.

How Order Processing Works

Real-time Webhook Processing

When an order is created or updated in Shopify, our system receives webhooks for the following events:

  • ORDERS_CREATE: When a new order is created
  • ORDERS_PAID: When an order is paid
  • ORDERS_FULFILLED: When an order is fulfilled
  • ORDERS_UPDATED: When an order is updated

Each webhook is processed through the following steps:

  1. Webhook Verification: The system verifies the webhook's authenticity using Shopify's HMAC signature
  2. Order Processing: Based on the webhook type, the system:
    • Creates new orders
    • Updates order status
    • Processes payments
    • Handles fulfillment updates

Scheduled Reconciliation

To ensure no orders are missed, we run an hourly check to check for new orders. This job:

  • Includes safeguards against duplicate processing
  • Handles pagination for large order volumes