Skip to content

WooCommerce Integration

The WooCommerce integration connects MicroPIM to a WooCommerce store using the WooCommerce REST API. Products, stock, prices, and categories flow from MicroPIM to WooCommerce.

  • A WordPress site with WooCommerce 5.0+ installed and activated
  • Admin access to WordPress
  • Permalinks set to anything other than “Plain” (required for the REST API to work)
  • HTTPS enabled on the store (required for the REST API in production)
  • An active MicroPIM account
FieldWhere to find it
API URLYour WooCommerce store URL, e.g. https://store.example.com
API UserThe Consumer Key generated in WooCommerce
API SecretThe Consumer Secret generated in WooCommerce

To generate the keys:

  1. In WordPress admin, go to WooCommerce → Settings → Advanced → REST API
  2. Click Add key
  3. Set Description to MicroPIM, User to an admin account, and Permissions to Read/Write
  4. Click Generate API key
  5. Copy the Consumer key and Consumer secret (shown only once)

Caution: Keys are shown only once. If you lose them, revoke and regenerate.

  1. In MicroPIM, go to Integrations → Add Integration
  2. Select WooCommerce from the platform list
  3. Paste your store URL into API URL (no trailing slash)
  4. Paste the Consumer Key into API User
  5. Paste the Consumer Secret into API Secret
  6. Click Test Connection to verify
  7. Click Save to create the integration
DataDirectionNotes
ProductsMicroPIM → WooCommerceSimple, variable, and grouped types
StockMicroPIM → WooCommercePer-product and per-variation
PricingMicroPIM → WooCommerceRegular price and sale price
CategoriesMicroPIM → WooCommerceMapped by category slug
ImagesMicroPIM → WooCommerceFeatured image and gallery

Default mapping covers WooCommerce core fields. Map custom fields, attributes, and metadata from Integrations → Edit → Field Mapping.

401 Unauthorized — Consumer Key or Secret is wrong, or the user the key belongs to was deactivated. Regenerate and reconnect.

404 Not Found on test connection — permalinks are set to “Plain”. Change to “Post name” or another setting in Settings → Permalinks and save.

SSL certificate problem — the store’s HTTPS certificate is invalid or self-signed. Use a valid certificate (Let’s Encrypt is fine).

Variable products not syncing variations — confirm each variation has a unique SKU and is enabled in WooCommerce.

Does this work with WooCommerce Bookings, Subscriptions, or other extensions? Core product and stock sync works. Extension-specific fields can be added via custom field mapping.

Can I connect multiple WooCommerce stores? Yes — one integration per store.

Does it work with WordPress multisite? Yes — connect each subsite as a separate integration.

Can I roll back a sync? Syncs are not reversible, but every change is recorded in the Audit Log.