Skip to main content

Aggregate shipment tracking statuses with FedEx, UPS and DHL

Workflow preview

Workflow preview
100%
Aggregate shipment tracking statuses with FedEx, UPS and DHL preview
Open on n8n.io

1. Workflow Overview

Quick Overview This workflow runs every 15 minutes to fetch active shipments from an n8n Data Table, query FedEx, UPS, or DHL tracking APIs with circuit breaker protection, normalize each response ...

Best for

  • File Management automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.datatable, n8n-nodes-base.filter, n8n-nodes-base.switch, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.httprequest, n8n-nodes-base.set

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Kyle T..

Original n8n.io source

1.1 Workflow description

Title
Aggregate shipment tracking statuses with FedEx, UPS and DHL
Workflow name
Aggregate shipment tracking statuses with FedEx, UPS and DHL

Quick Overview

This workflow runs every 15 minutes to fetch active shipments from an n8n Data Table, query FedEx, UPS, or DHL tracking APIs with circuit-breaker protection, normalize each response into a shared status schema, and upsert the latest status back into the same table.

How it works

  1. Runs every 15 minutes on a schedule.
  2. Loads all rows from the n8n Data Table shipment_tracking and filters out shipments already marked as DELIVERED or RETURNED_TO_SENDER.
  3. Routes each remaining shipment by carrier and marks unsupported carriers with a canonicalStatus of UNKNOWN.
  4. For FedEx, UPS, and DHL shipments, checks a per-carrier circuit breaker and either calls the carrier’s tracking API or skips the call when the breaker is open.
  5. Normalizes each carrier response (or skip) into a canonical status (for example PRE_TRANSIT, IN_TRANSIT, OUT_FOR_DELIVERY, DELIVERED, EXCEPTION, UNKNOWN) while updating the breaker state based on 429/5xx/network failures.
  6. Merges all carrier results and upserts the latest fields back into the shipment_tracking Data Table using trackingNumber as the match key.

Setup

  1. Create the n8n Data Table named shipment_tracking with columns such as trackingNumber, carrier, canonicalStatus, rawStatus, breakerState, httpStatus, and checkedAt, and seed it with shipments (use lowercase carriers: fedex, ups, dhl).
  2. Add OAuth2 credentials for the FedEx Track API and select them in the FedEx HTTP request step.
  3. Add OAuth2 credentials for the UPS Track API and select them in the UPS HTTP request step.
  4. Add DHL API authentication (as configured for the DHL request in this template) and select it in the DHL HTTP request step.
  5. Activate the workflow so workflow static data persists between runs and the circuit breaker state is maintained.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 2 - Load active shipments

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1

Block 3 - Active only

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2

Block 4 - Switch by carrier

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3

Block 5 - FEDEX · Check Breaker

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - FEDEX · IF allowed

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 7 - FEDEX · Track API

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 8 - FEDEX · Skipped

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 9 - FEDEX · Normalize + Breaker

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - UPS · Check Breaker

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - UPS · IF allowed

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 12 - UPS · Track API

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 13 - UPS · Skipped

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 14 - UPS · Normalize + Breaker

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - DHL · Check Breaker

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - DHL · IF allowed

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 17 - DHL · Track API

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 18 - DHL · Skipped

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 19 - DHL · Normalize + Breaker

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 20 - Unknown carrier

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 21 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

Block 22 - Persist → Data Table (upsert)

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1

Block 23 - Sticky 20f4c

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky 88222

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 28 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Aggregate shipment tracking statuses with FedEx, UPS and DHL
Complexity advanced
Nodes 28
Categories File Management
Author Kyle T.
Published 13 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16338/16338.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Aggregate shipment tracking statuses with FedEx, UPS and DHL do?

Quick Overview This workflow runs every 15 minutes to fetch active shipments from an n8n Data Table, query FedEx, UPS, or DHL tracking APIs with circuit breaker protection, normalize each response ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your File Management use case.