> Source: https://help.wastenot.io/connectors/woocommerce

# WooCommerce

Connect your WooCommerce store to WasteNot to sync customer and order data. Build audiences based on purchase history and customer behavior to optimize your ad targeting.

## Prerequisites

Before connecting WooCommerce, you will need:

* WordPress 4.4+ with WooCommerce 3.5+
* Pretty permalinks enabled in WordPress settings
* A **Customer Key** and **Customer Secret** from your WooCommerce settings

### Creating your API keys

1. In your WordPress admin, go to **WooCommerce > Settings > Advanced > REST API**
2. Click **Add key**
3. Enter a description (e.g., "WasteNot Integration")
4. Set the user to an admin account
5. Set permissions to **Read**
6. Click **Generate API key**
7. Copy both the **Customer Key** and **Customer Secret**

Need more detail? See the [WooCommerce API key docs](https://woocommerce.github.io/woocommerce-rest-api-docs/#rest-api-keys).

## Connecting WooCommerce

1. [Add a new WooCommerce data source](https://app.wastenot.io/integrations/connectors/new/woocommerce)
   in WasteNot
2. Enter a **Name** for the data source
3. Enter your **Customer Key**
4. Enter your **Customer Secret**
5. Enter your **Shop** domain (e.g., `my-store.com`)
6. Click **Connect**

WasteNot will begin syncing your store data automatically.

## What data is synced

* **Customers** — Customer profiles and account details
* **Orders** — Order history including line items, totals, and statuses

## Frequently asked questions

### Can I connect multiple WooCommerce stores?

Yes. Create a separate data source for each store with its own API credentials.

### My data is only syncing so far back

This usually means older WooCommerce data has been moved by an archive plugin. When that happens, the WooCommerce API may only return recent orders, so WasteNot can only sync what the API can still see.

If your archived data is still in the same MySQL database, add a [MySQL data source](https://app.wastenot.io/integrations/connectors/new/mysql) to pull in that historical data directly. If the archived data was moved somewhere else, connect to that location using the appropriate data source instead.

### My data source shows "Failed" status

Common causes:

* The API keys were revoked or regenerated
* Pretty permalinks are not enabled in WordPress
* Your site is behind a firewall blocking external requests

Verify your settings and update the data source in [Data Sources](https://app.wastenot.io/integrations) if needed.
