# Send ShipStation Orders to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "shipstation-orders",
    "name": "ShipStation Orders",
    "source": "tencent",
    "type": "skill",
    "category": "数据分析",
    "sourceUrl": "https://clawhub.ai/cprice70/shipstation-orders",
    "canonicalUrl": "https://clawhub.ai/cprice70/shipstation-orders",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/shipstation-orders",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=shipstation-orders",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "check-orders.js",
      "check-shipping.js"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/shipstation-orders"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/shipstation-orders",
    "downloadUrl": "https://openagent3.xyz/downloads/shipstation-orders",
    "agentUrl": "https://openagent3.xyz/skills/shipstation-orders/agent",
    "manifestUrl": "https://openagent3.xyz/skills/shipstation-orders/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/shipstation-orders/agent.md"
  }
}
```
## Documentation

### 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
🚚 Immediate alert for expedited/2-day/priority orders
📊 Daily summary reports
🔄 Automatic state tracking (avoids duplicate alerts)

### Requirements

ShipStation account with API access
Node.js (included with OpenClaw)

### 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 alerts
1 - Success, alerts found
2 - 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.

### 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_shipment or awaiting_payment status

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 .env file 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 modifyDateStart window (default: 24h)
Verify orders have been modified recently in ShipStation
Check state.json - might already be processed

### Files

check-orders.js - Main order monitoring script
check-shipping.js - Expedited shipping alert monitor
state.json - Auto-generated order state tracking
shipping-state.json - Auto-generated shipping state tracking
.env - Your credentials (add to .gitignore!)

### License

MIT

### Author

Built for OpenClaw multi-agent systems.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: cprice70
- Version: 1.1.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-23T16:43:11.935Z
- Expires at: 2026-04-30T16:43:11.935Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/shipstation-orders)
- [Send to Agent page](https://openagent3.xyz/skills/shipstation-orders/agent)
- [JSON manifest](https://openagent3.xyz/skills/shipstation-orders/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/shipstation-orders/agent.md)
- [Download page](https://openagent3.xyz/downloads/shipstation-orders)