WooCommerce

Getting Started with WooCommerce

The WooCommerce modules allow you to monitor, create, update, delete and search orders, coupons, products, or customers in your WooCommerce account.

Prerequisites

  • A WooCommerce account
  • WooCommerce WordPress plugin installed

In order to use WooCommerce with Integromat, it is necessary to have a WooCommerce account. If you do not have one, you can create a WooCommerce account at woocommerce.com.

The module dialog fields that are displayed in bold (in the Integromat scenario, not in this documentation article) are mandatory!

Connecting WooCommerce to Integromat

To connect your WooCommerce account to Integromat you need to generate the API Key and Consumer Secret.

1. Log in to your WordPress.

2. Open WooCommerce > Settings > Advanced tab.

2019-05-06_17_13_41-Window.png

3. Go to Legacy API, check the Enable the Legacy REST API checkbox and click the Save changes button.

4. Continue to the REST API section.

2019-05-06_17_24_23-Window.png

5. Click the Add Key button.

6. Enter the description of your connection and select the Read/Write option from the permissions drop-down menu.

xj13BiPJip.gif

7. Click on the Generate API key button.

8. Copy the Consumer key and Consumer secret and save it to a safe place.

2019-05-06_17_33_43-Window.png

9. Go to Integromat and open the Create a connection dialog of the desired WooCommerce module. Enter the values to the respective fields.

2019-05-06_17_39_22-Window.png

SSL must be enabled on your WordPress site.
Use pretty permalinks. Change the permalinks settings under Settings > Permalinks.

10. Click the Continue button to begin setting up the WooCommerce module.

Triggers

(Reference: https://woocommerce.github.io/woocommerce-rest-api-docs/)

New event

Triggers when a coupon, customer, order, or product is created, updated or deleted.

Webhook nameEnter a name for the webhook. E.g. Order Created Webhook.
ConnectionEstablish a connection to your WooCommerce account.
TopicSelect the action that triggers the module.

Watch Coupons

Triggers when a new coupon is created.

ConnectionEstablish a connection to your WooCommerce account.
LimitSet the maximum number of coupons Integromat will return during one cycle.

Watch Customers

ConnectionEstablish a connection to your WooCommerce account.
Role

Select the specific role of the user you want to retrieve.

I want to watchSelect whether to retrieve only new users or new and updated users.
LimitSet the maximum number of users Integromat will return during one cycle.

Watch Orders

Triggers when a new order is created.

ConnectionEstablish a connection to your WooCommerce account.
LimitSet the maximum number of orders Integromat will return during one cycle.

Watch Products

Triggers when a new product is created.

ConnectionEstablish a connection to your WooCommerce account.
LimitSet the maximum number of products Integromat will return during one cycle.

Actions

Create a Coupon

Creates a new coupon.

ConnectionEstablish a connection to your WooCommerce account.
CodeEnter a coupon code.
AmountEnter the amount of discount. Should always be numeric, even if setting a percentage.
Discount typeSelect a type of applied discount.
DescriptionEnter a description for the coupon.
Date expiresEnter the date when the coupon expires. List of supported date formats.
Individual useIf enabled, the coupon can only be used individually. Other applied coupons will be removed from the cart.
Product IDsEnter product IDs the coupon can be used on.
Excluded product IDsEnter product IDs the coupon cannot be used on.
Usage limitDefine how many times the coupon can be used (in total).
Usage limit per userDefine how many times the coupon can be used (per customer).
Limit usage to X itemsSet a maximum number of items in the cart the coupon can be applied to.
Free shippingIf this option is enabled and if the free shipping method requires a coupon, this coupon will enable free shipping.
Product categoriesSelect (or map) product categories (IDs) the coupon applies to.
Excluded product categoriesSelect (or map) product categories (IDs) the coupon does not apply to.
Exclude sale itemsIf this option is enabled the coupon will not be applied to items that have sale prices.
Minimum amountEnter the minimum order amount that needs to be in the cart before the coupon applies.
Maximum amountEnter the maximum order amount allowed when using the coupon.
Email restrictionsEnter email addresses that can use this coupon.
Meta dataEnter the key-value metadata for the coupon.

Create a Customer

Creates a new customer.

ConnectionEstablish a connection to your WooCommerce account.
UsernameSet the customer login name.
PasswordSet the customer password
First nameEnter the customer's first name.
Last nameEnter the customer's last name.
Billing addressEnter the billing address properties.
Shipping addressEnter the shipping address properties.
Meta dataEnter the key-value metadata for the coupon.

Create an Order

Creates a new order.

ConnectionEstablish a connection to your WooCommerce account.
Parent Order IDEnter the parent order ID.
StatusSet the order status.
CurrencySelect the currency for the order.
Customer IDEnter the ID of the customer who created the order. 0 = guest.
Customer NoteThe note that is left by a customer during checkout.
Billing addressEnter the billing address properties. For the Country field, please use ISO 3166-1 country code.
Shipping addressEnter the shipping address properties. For the Country field, please use ISO 3166-1 country code.
Payment MethodSelect one of the payment methods.
Transaction IDEnter the unique transaction ID.
Line itemsAdd desired line items. For more details refer to the WooCommerce API documentation.
Shipping LinesEnter shipping line properties. For more details refer to the WooCommerce API documentation.
Fee LinesAdd fee lines if needed. For more details refer to the WooCommerce API documentation.
Coupon LinesEnter coupon codes and discount totals.
Set paidIf the option Yes is selected, the order is set as paid. It will set the status to processing and reduce stock items. The default value is set to No.
Meta dataEnter the key-value metadata for the order.

Create an Order Note

Adds a note to the order.

ConnectionEstablish a connection to your WooCommerce account.
Order IDEnter (map) the ID of the order you want to add a note to.
NoteEnter the content of the note.
Note will be shown to customersIf this option is enabled, the note will be for customers (with notification). If disabled, the note will be set as private – only for your reference.

Create a Product

For more details about WooCommerce products refer to Adding and Managing Products on the WooCommerce documentation site.

Adds a new product.

ConnectionEstablish a connection to your WooCommerce account.
NameEnter a product name.
SlugSet the product slug for the URL.
TypeSelect a product type. Options: simple, grouped, external and variable. Default is simple.
StatusSet the product status by selecting from the drop-down menu.
FeaturedSelect the Yes option to set the product as featured.
Catalog visibilitySelect where the created product will be visible.
DescriptionEnter the product description.
Short descriptionEnter the short description of the product.
SKUEnter the stock-keeping unit.
Regular priceEnter the regular price of the product.
Sale priceEnter the sale price of the product.
Date on sale fromThe start date of the sale price, in the site's timezone. The list of supported date formats.
Date on sale toThe end date of the sale price, in the site's timezone. The list of supported date formats.
VirtualSelect the Yes option if the product is virtual.
DownloadableSelect the Yes option if the product is downloadable.
Downloads

Add files to be downloaded.

File name
Name of the file that is shown to a customer.

File URL
Enter the URL or absolute path to the file which customers will get access to. URLs should be already encoded.

Download limit

Enter the number of times downloadable files can be downloaded after purchase.

Download expiry

Enter the number of days until access to downloadable files expires.

External URL

Product external URL. Only for external products.

Button text

Button text for the external product. Only for external products.

Tax status

Select whether the taxable status of the product is taxableshipping or none.

Tax class

Select to tax class of the product.

Stock management at product level

Select whether you want to manage the stock or not.

Stock quantity

Enter the stock quantity (Stock management at product level option must be enabled).

In stock

Select Yes to list the product as in stock, or No to list the product as out of stock on the frontend.

Backorders

If managing stock, this controls if backorders are allowed.

Sold individually

Select the Yes option to allow one item to be bought in a single order.

Weight

Enter the product weight.

Dimensions

Enter the product length, width, and height.

Shipping class

Select the shipping class of the product.

Reviews allowed

Select Yes to allow product reviews.

Up-sell IDs

Enter the IDs of the recommended (up-sells) products.

Cross-sell IDs

Enter the IDs of the products you want to promote in the cart.

Product parent IDs

Enter the product parent ID.

Purchase note

Optional note to send the customer after purchase.

Categories

Select product categories.

Tags

Add tag(s) to the product.

Images

Add images of the product.

Menu order

Enter the custom ordering position.

Attributes

Use this to add product attributes (e.g. color, size, etc.).

Metadata

Enter the key-value metadata for the product

Create Products (batch)

Allows you to create multiple products.

Products

Add one or more products.

Find fields description in the Create a product section above.

Create a Product Variation

Creates a variation of the specified product.

ConnectionEstablish a connection to your WooCommerce account.
Product IDEnter (map) the ID of the product that you want to create a variation for.

Please find the field descriptions in the Create a product section above.

Delete a coupon

Deletes a specified coupon.

ConnectionEstablish a connection to your WooCommerce account.
Coupon IDEnter (map) the ID of the coupon you want to delete.

Delete a Customer

Deletes a specified customer.

ConnectionEstablish a connection to your WooCommerce account.
Customer IDEnter (map) the ID of the customer you want to delete.

Delete an Order

Deletes a specified order.

ConnectionEstablish a connection to your WooCommerce account.
Order IDEnter (map) the ID of the order you want to delete.

Delete an Order Note

ConnectionEstablish a connection to your WooCommerce account.
Order IDEnter (map) the ID of the order that contains a note you want to delete.
Note IDEnter (map) the ID of the note you want to delete.

Delete a Product

Deletes a specified product.

ConnectionEstablish a connection to your WooCommerce account.
Product IDEnter (map) the ID of the product you want to delete.

Delete Products (batch)

Deletes multiple products.

ConnectionEstablish a connection to your WooCommerce account.
Product IDsAdd (map) IDs of the products you want to delete.

Delete a Product Variation

Deletes a variation of a specified product.

ConnectionEstablish a connection to your WooCommerce account.
Product IDEnter (map) the ID of the product that contains a variation you want to delete.
Variation IDEnter (map) the ID of the variation you want to delete.

Get a Coupon

Retrieves coupon details.

ConnectionEstablish a connection to your WooCommerce account.
Coupon IDEnter (map) the ID of the coupon you want to retrieve information about.

Get a Customer

Retrieves customer details.

ConnectionEstablish a connection to your WooCommerce account.
Customer IDEnter (map) the ID of the customer you want to retrieve information about.

Get an Order

Retrieves specified order details.

ConnectionEstablish a connection to your WooCommerce account.
Customer IDEnter (map) the ID of the order you want to retrieve information about.

Get an Order Note

Retrieves specified order note details.

ConnectionEstablish a connection to your WooCommerce account.
Order IDEnter (map) the ID of the order that contains a note you want to retrieve information about.
Note IDEnter (map) the ID of the note you want to retrieve information about.

Get a Product

Retrieves specified product details.

ConnectionEstablish a connection to your WooCommerce account.
Product IDEnter (map) the ID of the product you want to retrieve information about.

Get a Product Variation

Retrieves details of a specified product variation.

ConnectionEstablish a connection to your WooCommerce account.
Order IDEnter (map) the ID of the product that contains a variation you want to retrieve information about.
Variation IDEnter (map) the ID of the variation you want to retrieve information about.

Update a Coupon

Updates an existing coupon.

Coupon IDEnter (map) the ID of the coupon you want to modify.

Please find the description of the module fields in the Create a Coupon section.

Update a Customer

Updates customer details.

Customer IDEnter (map) the ID of the customer whose details you want to modify.

Please find the description of the module fields in the Create a Customer section.

Update an Order

Changes the order details.

Order IDEnter (map) the ID of the order which details you want to modify.

Please find the description of the module fields in the Create an Order section.

Update an Order Status

Allows you to change the status of a specified order.

Order IDEnter (map) the ID of the order which status you want to change.
Status

Select a new status of the order.

If the error 404 "Failed to load data" is displayed, try using the Update an Order module to change the order status. 
The Update an Order Status module is intended for users with custom order status and requires Order Status Manager plugin.

wwerror.png

Update a Product

Allows you to modify product details.

Product IDEnter (map) the ID of the product you want to update.

Please find the description of the module fields in the Create a Product section.

Update Products (batch)

Allows you to modify details of multiple products.

Products

Add the products you want to modify.

Please find the description of the module fields in the Create a Product section.

Update a Product Variation

Allows you to modify details of a product variation.

Product IDEnter (map) the ID of the product that has a variation you want to update.
Variation IDEnter (map) the ID of the variation you want to update.

Searches

Search for a Customer

Performs a search among customers.

ConnectionEstablish a connection to your WooCommerce account.
SearchEnter the search term.
EmailFilter results by email.
RoleFilter search results by a specific user role.
Number of resultsSet the maximum number of returned users.

List Order Notes

Retrieves notes for the specified order.

ConnectionEstablish a connection to your WooCommerce account.
Order ID
Enter the ID of the order you want to retrieve notes from.

List Product Variations

Retrieves variations of the specified product.

ConnectionEstablish a connection to your WooCommerce account.
Product ID
Enter the ID of the product that contains the variations you want to retrieve.

Search for a Coupon

Performs a search for a coupon.

ConnectionEstablish a connection to your WooCommerce account.
SearchEnter the search term.
EmailFilter results by the coupon code.
Number of resultsSet the maximum number of returned coupons.

Search for an Order

Performs a search for an order.

ConnectionEstablish a connection to your WooCommerce account.
SearchEnter the search term.
Customer IDEnter (map) the ID of the customer you want to filter results by.
Product IDEnter (map) the ID of the product you want to filter results by.
StatusSelect the status of the order you want to filter results by.
Number of resultsSet the maximum number of returned orders.

Search for a Product

Performs a search for a product based on defined filter settings.

ConnectionEstablish a connection to your WooCommerce account.
SearchEnter the search term.
SlugEnter the product slug you want to filter results by.
CategorySelect the category of the product you want to filter results by.
TagSelect the tag of the product you want to filter results by.
StatusSelect the status of the product you want to filter results by.
SKUEnter the stock-keeping unit you want to filter results by.
In stockSelect whether you want to search for products that are in stock or not.
On saleSelect whether you want to search for products that are on sale or not.
Featured productSelect whether you want to search for products that are featured or not.
Min priceEnter the minimum price of the searched product.
Max priceEnter the maximum price of the searched product.
AttributeSelect the attribute and Attribute term of the product.
Number of resultsSet the maximum number of returned products.

 

Popular use cases from our blog

procur

How to Automate Procurement in Your Shopify Store - Part 1

Using Notion as CMS for Webflow -Tutorial- -illustration.png

How to Use Notion as a CMS for Your Webflow Site [Tutorial]

Basic-tutorial-for-Revolut-users-illustration.png

How to Create Your First Revolut Business Automation [Tutorial]

cancelled saas subscriptions-ILLUSTRATION.png

How to Track SaaS Subscriptions to Reduce Churn [Tutorial]

jira-excel-automation.png

How to Export From Jira to Excel Using Integromat [Tutorial]

influencer partner code sign up tracking-Illustration.png

How to Track Influencer Campaigns With Integromat

Didn’t find what you were looking for?

Ticket

Create a ticket

Contact our world-class support team and tell us what’s happening.

Create a ticket
Expert

Find an expert

We feature a network of 450+ certified partners across the globe who are ready to help

Find an expert

Automate any workflow in your business

Sign up for a free account today. No credit card required, no time limits on free plan.