Connecting ShipStation

Alpha Insights can sync shipping costs from ShipStation with your WooCommerce orders. Once configured and enabled, a daily sync runs automatically for the last 7 days of shipments, and you can run a one-time bulk sync to backfill historical data. Synced costs are saved to orders and as expenses for accurate profit reporting.

What the integration does

Requirements

Settings

Go to Alpha Insights → Settings and open the Integrations tab. Find the ShipStation section.

Enable Integration

Turn on ShipStation sync. The integration only runs when this is checked and both API key and API secret are set.

API Key

The API key for your ShipStation account. Required when the integration is enabled. ShipStation uses Basic Authentication (API key as username, API secret as password).

API Secret

The API secret for your ShipStation account. Required when the integration is enabled.

Enable Logging

When enabled, API requests and sync activity are written to the ShipStation log file. Errors are always logged to the ShipStation error log regardless of this setting.

ShipStation Sync Data section

How to set up

  1. Obtain your API Key and API Secret from ShipStation (Account → API Settings or similar).
  2. In WordPress, go to Alpha Insights → Settings → Integrations.
  3. Check Enable ShipStation integration.
  4. Enter the API Key and API Secret.
  5. Optionally enable Enable ShipStation logging for debugging.
  6. Click Save changes. The daily sync is scheduled on the next run of Alpha Insights’ event scheduler. Use Run bulk sync if you want to backfill past shipments.

How the sync works

Daily sync

Bulk sync

Order matching

ShipStation uses order number, not internal order ID. Alpha Insights finds the WooCommerce order by:

Order meta and expenses

When a shipment is processed successfully:

Troubleshooting

Integration not running

Orders not getting a shipping cost

Rate limiting (429)

During bulk sync, if ShipStation returns 429, the current page is automatically rescheduled to run again in 90 seconds. No action needed; let the queue finish.

Removing ShipStation data

Use Delete sync data to remove all ShipStation shipping cost meta from orders and all expenses with reference ShipStation - . This does not remove the integration settings; you can run sync again after re-saving or re-enabling.