# Integrations (n8n, Google Sheets, WooCommerce)

> For the complete documentation index, see [llms.txt](https://docs.containerfeed.com/llms.txt).

URL: https://docs.containerfeed.com/integrations

Use lastscanned inside the tools you already run without writing boilerplate HTTP or webhook verification code. Every integration uses your API key from [app.containerfeed.com/keys](https://app.containerfeed.com/keys) — Free includes 5 numbers a day, and Pro is **$7.99/mo for 1,000 unique tracking numbers** with free watch re-checks and webhooks.

---

## n8n Community Node (`n8n-nodes-lastscanned`)

Package source: `integrations/n8n-nodes-lastscanned`

Includes two nodes:

- **lastscanned** — **Track One**, **Track Many** (up to 100 numbers per batch), **Watch Create / Get / List / Delete**, and **List Carriers**.
- **lastscanned Trigger** — auto-registers your n8n webhook URL via `PUT /v1/webhook`, verifies `Lastscanned-Signature` (`t=<unix>,v1=<hmac-sha256>`), and triggers workflows on `tracking.updated` and `watch.ended`.

### Install in n8n

1. Open **Settings → Community Nodes → Install** and enter `n8n-nodes-lastscanned`.
2. Add a **lastscanned API** credential with your `lsk_live_…` key.
3. Drop **lastscanned** or **lastscanned Trigger** onto any workflow.

---

## Google Sheets Add-on & Custom Formulas

Script source: `integrations/google-sheets/Code.gs`

Supports both cached cell formulas and batched hourly refresh:

- `=LASTSCANNED(A2)` — spills `[carrier, status, latest scan time, latest scan, ETA]` across 5 columns (cached 30 minutes in `CacheService`).
- `=LASTSCANNED_STATUS(A2)` — returns the normalized status (`in_transit`, `out_for_delivery`, `delivered`, `exception`, `returned`).
- `=LASTSCANNED_ETA(A2)` — returns the estimated delivery date.
- **lastscanned → Refresh open rows (batch)** — refreshes every non-delivered row in batches of 35, with optional hourly auto-refresh and one-click dashboard watch registration.

### Install in Google Sheets

1. Open your spreadsheet and go to **Extensions → Apps Script**.
2. Paste `integrations/google-sheets/Code.gs` and save.
3. Reload the sheet and click **lastscanned → Set API key…** in the menu bar.

---

## WooCommerce Plugin (`woocommerce-lastscanned`)

Plugin source: `integrations/woocommerce-lastscanned`

Replaces $39–$119/mo WooCommerce shipment tracking plugins with $7.99/mo for 1,000 orders:

- **Order meta box (HPOS compatible):** enter any tracking number on a WooCommerce order — auto-detects 600+ carriers including USPS, UPS, FedEx, DHL, YunExpress, 4PX, Yanwen, and DPD.
- **One-click signed webhooks:** registers `/wp-json/lastscanned/v1/webhook`, verifies `Lastscanned-Signature` with HMAC-SHA256, logs order notes on status changes, and optionally completes Processing orders on `delivered`.
- **Customer tracking views:** renders live scan timelines on **My Account → View Order**, adds tracking links to WooCommerce emails, and provides a `[lastscanned_track]` shortcode.

### Install in WordPress

1. Upload `integrations/woocommerce-lastscanned` to `/wp-content/plugins/` (or zip and upload under **Plugins → Add New → Upload Plugin**) and activate.
2. Go to **WooCommerce → lastscanned Tracking**, paste your API key, save, and click **Register Webhook Now**.

---

## Also available

- **Shopify (no third-party app required):** [How to add order tracking on Shopify without a monthly app](https://containerfeed.com/answers/shopify-order-tracking-without-app)
- **MCP for AI assistants (Claude, Cursor, ChatGPT):** [MCP server setup](https://docs.containerfeed.com/mcp)
- **17TRACK drop-in webhooks:** [Migrate from 17TRACK](https://docs.containerfeed.com/migrate-from-17track)
