CNexa Solutions
← All selected work

CASE STUDY 01 / ECOMMERCE OPERATIONS

Shopify fulfillment &Shipment notifications.

Connect Shopify fulfillment, shipment tracking, and customer notifications through a database-backed queue with checks and recovery monitors.

Documented client systemDesigned and built by John Rey Cretesio · CNexa Solutions

System overview

Inspect the workflows

From order intake to shipment communication, each handoff records state so staff can review exceptions and recover incomplete work.

  1. Order received

    Receive the order and tracking details, then check intake claims to coordinate repeat or concurrent events.

  2. Fulfillment checked

    Confirm that exactly one fulfillment order is eligible. Route ambiguous orders to staff review before committing.

  3. Tracking synchronized

    Register tracking with AfterShip and validate signed status updates before synchronizing shipment state.

  4. Customer notified

    Queue customer updates in a durable outbox. Record delivery state and verify uncertain sends before retrying.

Durable outbox · recovery monitors

Duplicate prevention
Intake claims and fulfillment locks coordinate repeat events and concurrent processing.
Delivery recovery
Outbox delivery and reconciliation separate incoming events from confirmed customer notifications.
Operational visibility
Recovery monitors surface stalled fulfillment, tracking registration, and queued notification work.

THE CHALLENGE

The operational challenge.

Fulfillment, tracking updates, and customer communication span multiple tools. Manual handoffs create coordination work, while retries risk repeating actions that have already succeeded.

THE SOLUTION

The system design.

The system connects Shopify fulfillment to AfterShip tracking and a database-backed notification queue. Staff provide tracking details, automated checks control fulfillment, and monitors surface work that needs attention.

DESIGNING THE SYSTEM

Key engineering decisions.

01

Check before committing.

Database intake claims and fulfillment locks coordinate processing. Orders with anything other than one eligible fulfillment order are routed for review.

02

Recover without guessing.

When an external action succeeds but local persistence is uncertain, reconciliation checks external state before retrying. A durable outbox separates event intake from notification delivery.

03

Keep communication controlled.

HMAC-validated shipment webhooks feed seven notification templates. Recipient details come from trusted database records, with test and live send gates.

SYSTEM ARCHITECTURE

Integrations and recovery paths.

The overview above shows the main path. Explore the architecture for the integrations, decision points, and recovery paths behind it.

Project architecture. Expand to inspect details; on small screens, scroll across the full-size diagram.
Fulfillment & shipping confirmationOpen original ↗

The main fulfillment canvas connects order intake, fulfillment checks, database state, and staff notifications.

Original size · scroll horizontally and vertically to inspect
Full-size n8n canvas: Fulfillment & shipping confirmation
Tracking intake validationOpen original ↗

Validates tracking registration requests and loads the trusted recipient before passing work to registration.

Original size · scroll horizontally and vertically to inspect
Full-size n8n canvas: Tracking intake validation
Tracking registrationOpen original ↗

Coordinates registration claims, AfterShip requests, database completion, and failed-registration review.

Original size · scroll horizontally and vertically to inspect
Full-size n8n canvas: Tracking registration
Shipment status updatesOpen original ↗

Validates webhook signatures, normalizes tracking events, and queues updates for customer communication.

Original size · scroll horizontally and vertically to inspect
Full-size n8n canvas: Shipment status updates
Webhook validation close-upOpen original ↗

Detail view of signature checking, raw JSON extraction, event normalization, and tracking-update intake.

Detail view · Original size · scroll horizontally and vertically to inspect
Full-size n8n canvas: Webhook validation close-up
Notification outbox workerOpen original ↗

Processes queued notifications through send and verification paths, then updates delivery state.

Original size · scroll horizontally and vertically to inspect
Full-size n8n canvas: Notification outbox worker
Six recovery workflowsOpen original ↗

An operations overview showing notification-claim, outbox, fulfillment, registration, and tracking recovery routines.

Original size · scroll horizontally and vertically to inspect
Full-size n8n canvas: Six recovery workflows
Shipment confirmation · Test outputOpen original ↗

The shipment email presents the shipped status, a tracking link, and the items in test order #1068.

Test shipment confirmation email for order 1068, with a shipped status, tracking button, two sample products, and an order summary.
Out-for-delivery update · Test outputOpen original ↗

A second email for the same test order presents the out-for-delivery status, sample location, and updated progress indicator.

Test out-for-delivery email for the same order 1068, with an updated shipment progress indicator and sample location.
Fulfillment monitoring · Test outputOpen original ↗

A separate test dataset shows shipped records with resolved recovery statuses and a pending shipment marked escalated after two reminders. These rows are not matched to the email examples above.

Separate test spreadsheet showing shipped and pending-shipment records, reminder counts, resolved and escalated recovery statuses, and Shopify fulfillment results.

EVIDENCE & OUTCOMES

What the evidence shows.

The case study documents 11 workflows, 185 nodes, a notification worker, and six watchdogs. These describe implementation scope; they are not a production performance benchmark.

Estimated manual effort that could be saved33 to 60 hours / month

Based on client-reported 500 to 600 monthly orders and an assumed 4 to 6 minutes of manual work per order. Actual savings have not been measured.

Limitations and next steps.

Database function internals and complete production execution evidence were not included in the supplied materials. Production impact still needs measurement.

Technology stack.

  • n8n
  • Shopify
  • AfterShip
  • Supabase
  • Gmail
  • Telegram
Download case study

Source: owner-supplied case study and diagrams. Scope and test results are reported in the document, not independently audited.

Architecture · scroll to exploreOpen image ↗
Shopify fulfillment & shipment notifications full architecture diagram