Connecting StarShipIt

Alpha Insights can sync shipping costs from StarShipIt with your WooCommerce orders. Once configured, a daily scheduled sync runs automatically, fetching shipping costs from the StarShipIt API and saving them to the order 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 StarShipIt section.

API Key

The API key for your StarShipIt account. Required for the integration to run.

Subscription Key

The subscription key (Ocp-Apim-Subscription-Key) for your StarShipIt account. Required together with the API key.

Enable Logging

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

Next Scheduled Sync

Displays the next time the daily shipping cost sync will run. The schedule is set when you save settings and runs once per day.

How to set up

  1. Obtain your API Key and Subscription Key from your StarShipIt account.
  2. In WordPress, go to Alpha Insights → Settings → Integrations.
  3. Enter the API Key and Subscription Key in the StarShipIt section.
  4. Optionally enable Enable StarShipIt logging for debugging.
  5. Click Save changes. The integration activates when both keys are present; the recurring daily sync is scheduled on the next run of Alpha Insights’ event scheduler.

How the sync works

Order meta and expenses

When a shipping cost is synced successfully:

Troubleshooting

Sync not running

Orders not getting a shipping cost

Developer note

Logging can be overridden with the filter wpd_ai_starshipit_enable_logging. See the filter documentation for details.