ShipStation Order Monitor
name: shipstation-orders
by cprice70 · published 2026-03-22
$ claw add gh:cprice70/cprice70-shipstation-orders---
name: shipstation-orders
description: Monitor ShipStation orders, detect issues, and send alerts. For e-commerce businesses using ShipStation for order fulfillment across multiple platforms (Amazon, Etsy, Shopify, TikTok, etc.).
metadata:
{
"openclaw": {
"requires": {
"bins": ["node"],
"env": ["SHIPSTATION_API_KEY", "SHIPSTATION_API_SECRET"]
}
}
}
---
# ShipStation Order Monitor
Monitor ShipStation for new orders and issues. Perfect for e-commerce businesses using ShipStation to aggregate orders from multiple marketplaces.
Features
Requirements
Setup
1. Get ShipStation API Credentials
1. Log into ShipStation
2. Go to **Settings** → **Account** → **API Settings**
3. Use **Legacy API** (V1) - generate API Key + API Secret
2. Configure Credentials
Create `.env` file in your workspace:
SHIPSTATION_API_KEY=your_api_key_here
SHIPSTATION_API_SECRET=your_api_secret_here3. Test the Monitor
node check-orders.jsOutput shows:
Exit codes:
4. Set Up Heartbeat Monitoring (Optional)
Add to your agent's `HEARTBEAT.md`:
## Check Orders
Every 15 minutes:
1. Run: `node check-orders.js`
2. Parse results
3. If new orders or alerts → notify via sessions_send
4. If nothing → HEARTBEAT_OKOr use a cron job for scheduled checks.
Usage
Manual Check
node check-orders.jsIn Agent Heartbeat
const { exec } = require('child_process');
exec('node check-orders.js', (error, stdout, stderr) => {
const results = JSON.parse(stdout);
if (results.newOrdersList.length > 0) {
// Notify about new orders
}
if (results.alerts.length > 0) {
// Notify about issues
}
});Alert Conditions
**New Orders:**
**Issues Flagged:**
**API Errors:**
State Management
The script maintains `state.json` to track:
State file auto-prunes to last 1000 orders.
Customization
Edit `check-orders.js` to adjust:
**Alert Thresholds:**
// Line ~70: Change from 48 hours to 24 hours
if (order.orderStatus === 'awaiting_shipment' && ageHours > 24) {**Time Window:**
// Line ~60: Change from 24 hours to 12 hours
const yesterday = new Date(Date.now() - 12 * 60 * 60 * 1000).toISOString();**Additional Checks:**
Add custom logic for your business needs (high-value orders, specific products, etc.)
API Reference
Uses [ShipStation API V1](https://www.shipstation.com/docs/api/)
**Rate Limits:**
**Key Endpoints Used:**
Troubleshooting
**Error: "API credentials not configured"**
**Error: "ShipStation API error: 401"**
**Error: "ShipStation API error: 429"**
**No new orders detected but they exist:**
Files
License
MIT
Author
Built for [OpenClaw](https://openclaw.ai) multi-agent systems.
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...