简介
ShipStation订单监控工具,自动检测新订单、超时未发货及滞留订单,支持多平台电商聚合管理,适合中小型卖家自动化运营。
原始描述
Monitor ShipStation orders, detect issues, and send alerts. For e-commerce businesses using ShipStation for order fulfillment across multiple platforms (Amaz...
通过你的 Agent 添加
点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。
或者手动安装
包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。
技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。
中文使用说明 来自收录源
ShipStation Order Monitor 综合评估
核心用法
ShipStation Order Monitor 是一款面向电商卖家的订单状态监控工具,专为使用 ShipStation 聚合多平台订单(Amazon、Etsy、Shopify、TikTok 等)的商家设计。核心功能包括:实时检测新订单(awaiting_shipment/awaiting_payment 状态)、自动标记超48小时未发货订单、识别被搁置订单(支付验证、地址问题等),并生成每日摘要报告。通过 state.json 实现智能状态追踪,避免重复告警。
显著优点
- 多平台整合:统一管理跨平台订单流,降低多后台切换成本
- 自动化监控:15分钟粒度心跳检测,支持无人值守运营
- 轻量部署:单Node.js脚本,无需复杂基础设施
- 灵活定制:阈值、时间窗口、附加业务逻辑均可代码级调整
- 状态持久化:自动维护最近1000条订单记录,防止漏报/重报
潜在缺点与局限性
- API版本老旧:强制使用ShipStation Legacy API (V1),未来存在弃用风险
- 速率限制敏感:40请求/分钟的硬限制,高频监控场景下易触发429错误
- 无原生UI:纯命令行工具,需技术能力解读JSON输出
- 单点故障:
state.json本地存储,多实例部署时状态同步困难 - 功能边界:专注监控而非操作,不支持自动标记发货或修改订单
适合人群
- 中小型跨境电商卖家:日均订单量50-1000单,需低成本自动化方案
- 多平台运营团队:管理3个以上销售渠道,追求统一看板
- 技术型运营者:具备基础Node.js/环境变量配置能力
- OpenClaw多代理用户:已构建agent工作流,需物流节点能力
常规风险
| 风险类型 | 说明 | 缓释建议 |
|---|---|---|
| 凭证泄露 | API Key/Secret明文存储于.env文件 |
严格gitignore,考虑密钥管理服务 |
| 数据残留 | state.json含客户订单ID等敏感元数据 |
定期清理,加密存储 |
| API滥用 | 误配短周期轮询导致账号限速/封禁 | 遵守40req/min限制,建议≥15min间隔 |
| 单点依赖 | ShipStation服务中断则监控失效 | 结合平台原生通知作为冗余 |
| 时区/节假日 | 48h阈值未考虑工作日/物流 cutoff time | 自定义阈值时纳入业务日历逻辑 |
技能正文
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"] } } }
ShipStation Order Monitor
Monitor ShipStation for new orders and issues. Perfect for e-commerce businesses using ShipStation to aggregate orders from multiple marketplaces.
Features
- ✅ New order notifications
- ⚠️ Alert for orders stuck in processing (>48h)
- 🛑 Flag orders on hold
- 📊 Daily summary reports
- 🔄 Automatic state tracking (avoids duplicate alerts)
Requirements
- ShipStation account with API access
- Node.js (included with OpenClaw)
Setup
1. Get ShipStation API Credentials
- Log into ShipStation
- Go to Settings → Account → API Settings
- 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_here
3. Test the Monitor
node check-orders.js
Output shows:
- Total orders in last 24h
- New orders detected
- Any alerts
Exit codes:
0- Success, no alerts1- Success, alerts found2- Error (API failure, bad credentials)
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_OK
Or use a cron job for scheduled checks.
Usage
Manual Check
node check-orders.js
In 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:
- Any order in
awaiting_shipmentorawaiting_paymentstatus
Issues Flagged:
- Orders awaiting shipment > 48 hours
- Orders on hold (payment verification, address issues, etc.)
API Errors:
- Authentication failures
- Rate limit exceeded
- Network issues
State Management
The script maintains state.json to track:
- Last check timestamp
- Processed order IDs (prevents duplicate alerts)
- Pending alerts
- Inventory warnings (future feature)
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
Rate Limits:
- 40 requests per minute
- Script uses 1 request per check
Key Endpoints Used:
GET /orders?modifyDateStart={date}&pageSize=100
Troubleshooting
Error: "API credentials not configured"
- Check
.envfile exists in same directory - Verify credentials don't contain placeholder text
Error: "ShipStation API error: 401"
- Credentials are incorrect
- Regenerate API key in ShipStation
Error: "ShipStation API error: 429"
- Rate limit exceeded
- Reduce check frequency
No new orders detected but they exist:
- Check
modifyDateStartwindow (default: 24h) - Verify orders have been modified recently in ShipStation
- Check
state.json- might already be processed
Files
check-orders.js- Main monitoring scriptstate.json- Auto-generated state tracking.env- Your credentials (add to .gitignore!)
License
MIT
Author
Built for OpenClaw multi-agent systems.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。