- Documentation
- Integrations
- Apps
- WooCommerce integration
WooCommerce integration
Manage products, orders, customers, coupons, and react to store events on behalf of your clients' WooCommerce stores.
What it does
The WooCommerce integration runs ecommerce automations for any client whose WooCommerce store you manage. Connect a store once, then route new orders into fulfillment, update order status when a shipment leaves, keep prices and stock in sync, onboard customers, mint coupons, issue refunds, and pull sales reports. Sixteen store events start workflows the moment they happen.
Connect a WooCommerce store
- In the store's WordPress admin, open WooCommerce -> Settings -> Advanced -> REST API and click Add key. Give it a description, pick a user who is a Shop Manager or Administrator, set Permissions to Read/Write, and click Generate API key. Triggers need write access, because the store's webhooks are created with this key.
- In TaskJuice, add a WooCommerce connection from any WooCommerce node.
- Enter the store URL including
https://and without a trailing slash, for examplehttps://shop.example.com, orhttps://example.com/shopwhen WordPress lives in a subfolder. Use the address the store answers on, with no port number. The store must be served over HTTPS, and a URL in any other shape is refused when you save. - Paste the Consumer key (starts with
ck_) and the Consumer secret (starts withcs_). WooCommerce shows the secret only once, so copy it before you leave the page.
You can save the connection for one client workspace or for your whole account. You can revoke or rotate the key from the same REST API page at any time.
Set up triggers
There is nothing to set up in the store. When you publish a workflow with a WooCommerce trigger, TaskJuice creates one webhook per trigger topic in that store, through the connection's REST API key, and gives them a signing secret that only that connection's webhooks share. Every delivery's X-WC-Webhook-Signature is checked against that secret, and a delivery that does not match is refused. The trigger shows the webhook's status once it is registered.
The webhooks appear under WooCommerce -> Settings -> Advanced -> Webhooks named Automation followed by the topic, for example Automation order.created. Once no turned-on workflow on the connection uses a WooCommerce trigger, its webhooks are removed from the store about ten minutes later, and turning a workflow back on creates them again automatically. Deleting the connection removes them at once.
Each connection has its own webhooks. An event in one client's store only starts the workflows that use that store's connection, even when several client workspaces run WooCommerce triggers.
Webhooks you added to a store by hand before triggers were registered for you no longer start
workflows. Delete them from the store's Webhooks page and keep the ones named Automation.
Triggers
- Order Created, Order Updated, Order Deleted, Order Restored. Order Updated also fires on status changes and refunds.
- Product Created, Product Updated, Product Published, Product Deleted, Product Restored.
- Customer Created, Customer Updated, Customer Deleted.
- Coupon Created, Coupon Updated, Coupon Deleted, Coupon Restored.
Deleted triggers carry only the record id, because that is all WooCommerce sends for a deletion. Use a Get action downstream if you need more.
Actions
- Products: list, get, create, update, delete, and batch create/update/delete.
- Product variations: list, get, create, update, and delete.
- Product categories, tags, and attributes: list, create, update, and delete. Categories and attributes also have get, and attributes have a batch action.
- Attribute terms: list, get, create, update, delete, and batch.
- Product reviews: list, create, update, and delete.
- Orders: list (filter by status, customer, date, or search text), get, create, update (including status), delete, and batch.
- Order notes: list, get, create, and delete.
- Refunds: list store-wide, plus list, get, create, and delete on an order. Creating a refund can return money through the payment gateway.
- Customers: list (filter by email or search text), get, create, update, delete, and batch.
- Coupons: list (filter by code), get, create, update, delete, and batch.
- Reports: sales, top sellers, and order totals.
- Payment gateways: list.
To find a record, use the matching List action with a filter: SKU or search text for products, email for customers, code for coupons, search text for orders. Pickers let you choose products, variations, categories, tags, attributes, terms, orders, customers, and coupons by name instead of pasting IDs.
Known limitations
- WooCommerce does not retry failed deliveries, and it disables a webhook after repeated failures. Re-enable it from the Webhooks page if a trigger goes quiet.
- The store URL must use HTTPS on the default port. A store reached only through a port number, or over plain HTTP, cannot be connected.
- List actions return at most 100 records per page.
- HTTP Basic authentication only works over HTTPS.
- What the key can do is limited to the WordPress user it was generated for. Coupons, refunds, and reports need a Shop Manager or Administrator.
- Subscriptions, Memberships, and Bookings are paid extensions and are not covered.