Send your WooCommerce orders and customers to Iterable as shoppers place orders and update their accounts. Each order becomes an Iterable purchase, with its line items, and customer sign-ups and profile changes keep Iterable user profiles up to date. Use them for welcome journeys, order confirmations, post-purchase follow-ups, and win-back campaigns, without building a custom integration. You can also import past orders and customers once, when you set up the integration.
# In this article
- How the integration works
- Connection requirements
- Connecting WooCommerce to Iterable
- Purchase and user profile fields
- Changing sync settings
- Changing your REST API key
- Deleting the connection
-
Troubleshooting
- Review shows errors
- The connection fails with a 404 Not Found error
- The connection fails with a 401 Unauthorized or permissions error
- Orders aren't reaching Iterable
- Customer profiles aren't updating
- A webhook shows as Disabled in WooCommerce
- Updates stopped after you changed your REST API key
- An order shows an old status in Iterable
- Frequently asked questions
# How the integration works
The integration adds four webhooks to your WooCommerce store when you select Finish in setup: order created, order updated, customer created, and customer updated. The webhooks send order and customer changes from your store to Iterable.
| WooCommerce activity | What Iterable records |
|---|---|
| A customer account is created or updated | Creates or updates a user profile |
| An order has one of your selected statuses | Tracks a purchase with the order's line items |
This is a one-way sync from WooCommerce to Iterable. The integration syncs orders and customer accounts only. Nothing in your store changes, except for the webhooks the integration adds to deliver your data.
Each connection links one store to one Iterable project. To send several stores to the same project, set up the integration once for each store.
For the fields that sync, see Purchase and user profile fields.
# How users are matched
The Primary Identifier on the Iterable connection sets how the integration identifies users. You don't select it separately for WooCommerce.
| Primary Identifier | WooCommerce identifier | Iterable identifier | Supported Iterable project types |
|---|---|---|---|
| Order billing email, or customer email for profiles | email | Hybrid, email-based | |
| User ID | Customer ID |
userId, plus email on profile updates* | Hybrid, userID-based |
* In a hybrid project, email must also be unique. If another Iterable user
already has the customer's email address, Iterable rejects that update.
Choose the Primary Identifier that matches how your existing Iterable users are identified:
Select User ID if your users'
userIdvalues are WooCommerce customer IDs, or if the project has no users yet and you want to identify all users by WooCommerce customer ID. Profile updates also save the customer'semailso you can message them. The integration skips guest orders, because they have no customer ID to match on, even when Send Guest Checkout Orders is on. Not available for email-based projects.Select Email if your users are identified by
email, or byuserIdvalues that aren't WooCommerce customer IDs. The integration matches orders by the order's billing email, so it matches guest orders too, and matches customer profiles by the customer's email. It skips orders and customers without an email address. Not available for userID-based projects.
To learn more about project types, read Project Types and Unique Identifiers.
# Map the WooCommerce customer ID to Iterable user ID
When you use email as the primary identifier, Sync Settings includes an
optional Also Map the WooCommerce Customer ID to Iterable userId setting,
off by default. When you turn it on, the integration adds the WooCommerce
customer ID to each registered customer's profile as their userId. Guest
orders are still matched by email only.
# How orders become purchases
When an order has one of your selected statuses, the integration sends it to
Iterable as a purchase, the same record the Iterable
trackPurchase API
creates. The purchase's date is when the order was created in WooCommerce, and
its total is the order total.
Iterable keeps one purchase per order. If an order changes again while it still has a selected status (for example, it moves from Processing to Completed), the integration updates the existing purchase rather than adding a second one. If an order moves to a status you didn't select, such as Cancelled or Refunded, the integration doesn't send the change to Iterable, and the purchase keeps its last sent status.
The integration sends an order only once it has at least one item. Orders you create by hand under WooCommerce > Orders > Add order are sent once they have items and a selected status.
# Timing
Your store sends each order and customer change to Iterable through the integration's webhooks.
WooCommerce sends these updates using WordPress's background task scheduler (WP-Cron). On low-traffic sites, or sites where WP-Cron is turned off or misconfigured, updates can be delayed until the scheduler runs. If updates often arrive late, ask your hosting provider to run WP-Cron from a real server cron job.
If Iterable is briefly unavailable or rate-limiting requests, the integration retries the update up to three times over roughly the next half hour.
# How past orders and customers are imported
If you turn on Import Past Orders and Customers, the integration imports existing records once, right after you select Finish:
- Orders created on or after your start date, using the same status, guest-order, and matching rules as new orders.
- Then customers whose accounts were created on or after your start date.
Large stores can take a while to import. Live orders keep syncing while the import runs, and an order that arrives through both the import and the live sync is still recorded only once.
The import runs only once per connection. Selecting Finish again or changing the start date afterward doesn't import again. If you turn on the import for a connection that has never completed one, it runs the next time you select Finish.
Imported orders appear in Iterable as purchases with their original order date. Before you turn on the import, check that any journeys triggered by purchases don't message customers about old orders.
# How the integration maintains its webhooks
The integration's four webhooks all point at your Iterable connection. Their
names start with Iterable:, and you can see them under
WooCommerce > Settings > Advanced > Webhooks. Don't edit or delete them.
Every 15 minutes, the integration checks these webhooks and:
- Turns a webhook back on if WooCommerce disabled it. WooCommerce disables a webhook after five failed deliveries in a row.
- Recreates a webhook that was deleted.
- Updates the webhooks with a new REST API key if that didn't already happen when you selected Finish.
If you set a webhook to Paused yourself, the integration leaves it paused, and changes of that type stop syncing until you set it back to Active.
Deleting the connection removes its webhooks from your store. Data already sent to Iterable isn't changed.
# What isn't synced
The integration doesn't sync:
- Abandoned carts.
- Products and catalogs.
- Refunds.
- Coupons.
- Subscriptions.
- Deletions. Deleting a customer or an order in WooCommerce doesn't delete anything in Iterable.
# Connection requirements
To connect Iterable with WooCommerce, you need:
- A WooCommerce store that meets the store requirements.
- A WooCommerce REST API key with Read/Write permissions.
- A server-side API key for the Iterable project that receives the data.
- A field to identify the user that matches in Iterable:
- If you use email as the primary identifier, an email address on every WooCommerce order and customer.
- If you use user ID as the primary identifier, a WooCommerce customer ID that matches your Iterable user IDs.
# WooCommerce store requirements
Your WooCommerce store must:
- Be served over HTTPS.
- Use pretty permalinks. In WordPress, Settings > Permalinks must be set to
anything other than Plain, because the integration reaches your store at
/wp-json/. - Be reachable from the internet at its own domain, not a subfolder (for
example,
shop.example.com, notexample.com/shop).
# Connecting WooCommerce to Iterable
# Step 1: Create a WooCommerce REST API key
In your WordPress admin:
- Go to WooCommerce > Settings > Advanced > REST API and click Add key.
- Enter a description, such as
Iterable. - Choose an Administrator user.
- Set Permissions to Read/Write.
- Click Generate API key, and copy the Consumer key and Consumer secret. WooCommerce shows the secret only once.
For more detail, see WooCommerce REST API keys.
# Step 2: Connect WooCommerce and Iterable in the Integrations Hub
In Iterable, go to Integrations > Integrations Hub.
Find WooCommerce, select Connect, and then select Add Connection.
-
On Connections, enter your WooCommerce store details. The page shows where to find each value.
-
Domain: Your store's web address without a path, for example
shop.example.com. In WordPress, go to Settings > General and use the Site Address (URL). -
Consumer Key and Consumer Secret: The values from
Step 1. The key starts with
ck_and the secret starts withcs_.
Then enter your Iterable API key and set Primary Identifier to the option that matches how your Iterable users are identified. See How users are matched.
-
Domain: Your store's web address without a path, for example
-
On Sync Settings, choose what to sync.
- If Primary Identifier is Email, choose whether to turn on
Also Map the WooCommerce Customer ID to Iterable
userId. It's off by default. See Map the WooCommerce customer ID to Iterable user ID. - Under User Updates, leave Sync Customer Profiles on to create or update an Iterable profile when a customer account is created or changed in your store. It's on by default.
- Under User Updates, leave Send Guest Checkout Orders on to send orders placed without a customer account. Turn it off to send only orders from registered customers. It's on by default.
- Under Purchases, leave Send Orders as Purchases on to send each order to Iterable as a purchase, with its items. It's on by default.
- Under Purchases, select the statuses an order must have to be sent in Order Statuses to Send. The options are Pending, Processing, On-Hold, Completed, Cancelled, Refunded, and Failed. The defaults are Processing and Completed.
- Under Historical Import, choose whether to turn on Import Past Orders and Customers. It's off by default. See How past orders and customers are imported.
- If you turn on the import, set Import Records Created on or After to the earliest creation date to import.
- If Primary Identifier is Email, choose whether to turn on
Also Map the WooCommerce Customer ID to Iterable
On Review, check the summary and resolve any errors, and then select Finish. See Review shows errors.
When you select Finish, the integration adds its four webhooks to your store and, if you turned it on, starts the import. See How the integration maintains its webhooks.
# Step 3: Confirm data is syncing
- Place a test order in your store, signed in as a customer with an email address you can find in Iterable.
- If your payment method leaves the order Pending payment or On hold, change its status to Processing in WooCommerce > Orders.
- Open that user in Iterable and confirm that the purchase appears on their profile, with the order's items.
- If Sync Customer Profiles is on, register a new customer account in your store, and confirm that a profile with their name appears in Iterable.
# Purchase and user profile fields
The integration sends the following fields for purchases and user profiles.
# Purchase fields
The integration tracks each order as a purchase with the following fields:
| Field | Type | Description |
|---|---|---|
createdAt | date | When the order was created. |
currency | string | Order currency, such as USD. |
firstName | string | Billing first name. |
items | array | One entry per line item. See Purchase item fields. |
lastName | string | Billing last name. |
orderId* | string | Order number, as shown in WooCommerce. |
status | string | Order status, such as processing or completed. |
total | number | Order total. |
* orderId can differ from the internal order ID if you use an
order-numbering plugin.
# Purchase item fields
Each item in a purchase has the following fields:
| Field | Type | Description |
|---|---|---|
id* | string | Product ID, so purchases of the same product group together. |
imageUrl | string | Product image. Left out when the product has no image. |
name | string | Product name. If the product has no name, the SKU is used. |
price | number | Unit price. For a fractional quantity, the line's total amount. |
productId | string | Product ID. |
quantity | number | Quantity ordered. A fractional quantity, such as for a product sold by weight or length, is sent as 1. |
sku | string | Product SKU. Left out when the product has no SKU. |
variantId | string | The order's line item ID for this item, for simple and variable products. |
* If the product has since been deleted, the integration uses the line item ID instead.
Iterable sets a field's type from the first value it receives. To cast an
item's price as a double, the first call that includes it should contain a
non-zero decimal value, such as 5.55. Otherwise, Iterable casts it as a long.
To learn more, see
API Endpoints and Sample Payloads.
# User profile fields
When a customer account is created or updated in your store, the integration creates or updates the matching Iterable user profile with the following fields:
| Field | Type | Description |
|---|---|---|
country | string | Billing country code, such as US. |
email | string | Customer email. |
firstName | string | First name. |
lastName | string | Last name. |
phoneNumber | string | Billing phone, as entered in WooCommerce. |
woocommerceCreatedAt | date | When the customer account was created. |
woocommerceCustomerId | string | Customer ID. |
woocommercePayingCustomer | boolean |
true once the customer has paid for an order. |
# Changing sync settings
- In Iterable, go to Integrations > Integrations Hub and open the WooCommerce page.
- Open the connection's menu and select Open Configuration.
- On Sync Settings, update your choices.
- On Review, select Finish.
New choices apply to changes from then on. They don't resend or remove data already in Iterable.
# Changing your REST API key
- In WooCommerce, create a new REST API key, as described in Step 1.
- In Iterable, go to Integrations > Integrations Hub and open the WooCommerce page.
- Open the connection's menu and select Open Configuration.
- On Connections, enter the new Consumer Key and Consumer Secret.
- On Review, select Finish.
Selecting Finish updates the webhooks with the new key right away. Don't revoke the old key until you've selected Finish.
# Deleting the connection
- In Iterable, go to Integrations > Integrations Hub and open the WooCommerce page.
- Open the connection's menu and select Delete Connection.
- Type
DELETE, and then select Delete Connection.
Deleting the connection removes its webhooks from your store and stops the sync. Data already sent to Iterable isn't changed.
# Troubleshooting
# Review shows errors
Review blocks setup if:
- Both Sync Customer Profiles and Send Orders as Purchases are off.
- Send Orders as Purchases is on, but no order status is selected.
- Import Past Orders and Customers is on, but no start date is set.
Fix the setting on Sync Settings, and then select Finish on Review.
# The connection fails with a 404 Not Found error
Your store uses Plain permalinks. In WordPress, go to Settings > Permalinks, choose any other option, and save. Also check that the domain you entered doesn't include a subfolder.
# The connection fails with a 401 Unauthorized or permissions error
Check the Consumer Key and Consumer Secret, and that the key has
Read/Write permissions and belongs to an Administrator. Some security
plugins and hosts block REST API requests or strip the authorization header.
Ask your host to allow requests to /wp-json/wc/v3/.
# Orders aren't reaching Iterable
Check that:
- The order has at least one of your selected statuses.
- Send Orders as Purchases is on.
- For guest orders, Send Guest Checkout Orders is on, and you use email as the primary identifier.
- The order has a billing email, if you use email as the primary identifier.
- The
Iterable:webhooks under WooCommerce > Settings > Advanced > Webhooks are Active, not Paused. - WP-Cron is running on your site. See Timing.
# Customer profiles aren't updating
Check that Sync Customer Profiles is on and, if you use email as the primary identifier, the customer has an email address. Changes to guest shoppers don't create profiles, because WooCommerce has no customer account for them.
# A webhook shows as Disabled in WooCommerce
WooCommerce disabled it after repeated failed deliveries. The integration turns it back on within 15 minutes. Changes your store tried to send while it was failing aren't resent. If a webhook keeps getting disabled, contact Iterable support.
# Updates stopped after you changed your REST API key
Update the WooCommerce connection with the new key and select Finish. See Changing your REST API key. Changes sent between revoking the old key and selecting Finish aren't recovered.
# An order shows an old status in Iterable
The order moved to a status you didn't select, so Iterable wasn't updated. Add that status to Order Statuses to Send if you want Iterable to reflect it.
# Frequently asked questions
# Why wasn't my order sent as soon as it was placed?
WooCommerce creates an order before it's paid. With bank transfer, cash on delivery, or redirect gateways such as PayPal, an order often starts as Pending payment or On hold. It's sent when it reaches one of your selected statuses, for example when payment completes and it moves to Processing.
# Can I connect more than one store to the same Iterable project?
Yes. Set up the integration once for each store. Orders from different stores are kept apart, even when they share an order number.
# Do a registered customer's guest orders appear on their profile?
If email is the primary identifier, yes. Orders are matched by billing email, so guest and registered orders with the same email land on the same profile. If user ID is the primary identifier, the integration skips guest orders.