Docs
WooCommerce Integration

WooCommerce Integration

Connect a WooCommerce store, sync products and stock, and mirror release orders into your e-commerce workflow.

WooCommerce is a popular fit for wineries that already have a WordPress e-commerce site. The integration keeps OnCloudWine and Woo in sync for products, stock, and orders.

What syncs

DirectionWhat
Woo → OnCloudWineProducts and variants, stock levels, paid online orders.
OnCloudWine → WooRelease orders (mirrored as Woo orders for fulfillment workflow).

Prerequisites

WooCommerce 6+

Older versions are missing API endpoints OnCloudWine relies on.

HTTPS

Your WordPress site must be served over HTTPS. Woo's REST API rejects HTTP-only credentials.

REST API key

Generated in WooCommerce → Settings → Advanced → REST API. Read/write scope.

Permalinks

Set to "Post name" or any non-default option in WordPress Settings → Permalinks. Default permalinks break the REST API.

Connect

  1. Generate a WooCommerce REST API key

    In WordPress admin, go to WooCommerce → Settings → Advanced → REST API → Add Key. Permissions: Read/Write. Save the consumer key and secret — they only show once.

  2. Open OnCloudWine integrations

    Settings → Organization → Integrations → WooCommerce.

  3. Click Connect WooCommerce

    Enter your store URL, consumer key, and consumer secret.

  4. Test the connection

    OnCloudWine fetches your store info to confirm. If it succeeds, status moves to ACTIVE.

Sync products

  1. Click Sync products

    Triggers SYNC_WOOCOMMERCE_PRODUCTS. Pulls every product and variation from your store.

  2. Match to OnCloudWine variants

    Each Woo variation becomes an OnCloudWine variant. Variations are matched by SKU — if a SKU already exists locally, the variant is updated rather than duplicated.

  3. Verify pricing and weight

    Woo carries both — they sync straight through. Spot-check before using in a release.

Sync stock

Stock levels sync automatically every 5–15 minutes (configurable). Manual trigger via Sync stock runs SYNC_WOOCOMMERCE_STOCK immediately.

Order mirroring

When you process payments on a release, OnCloudWine optionally creates a mirror order in WooCommerce. This is useful if your fulfillment workflow runs in Woo (label printing, ShipStation, etc.).

To enable:

  1. Go to integration settings

    Settings → Organization → Integrations → WooCommerce.

  2. Toggle Mirror release orders to Woo

    Now every paid release order appears as a Woo order with status "processing".

  3. Choose how to map customers

    Either create matching Woo customers (recommended) or attach all orders to a single "OnCloudWine" Woo user.

Sync statuses

StatusMeaning
PENDINGQueued for sync.
SYNCEDSuccessfully synced.
FAILEDSync failed. Hover for the WooCommerce error.

Common issues

ProblemFix
401 UnauthorizedAPI key revoked or wrong. Regenerate in Woo and reconnect.
Permalinks errorDefault permalinks block the REST API. Change to "Post name" in WordPress settings.
Slow syncLarge catalogs (5000+ products) can take several minutes. Watch progress under Activity Logs.
Variations not syncingVariations need to be Published, not Draft, in Woo.
Order not appearing in WooConfirm the mirror toggle is on and check the activity log for the failure reason.

What's next?