Setting up the connection

The integration starts in the back-end of your webshop. Log in via yourdomain.com/wp-admin/ and follow these steps:

  1. In WooCommerce, go to Settings → Advanced → REST API.
  2. Click Add key, enter for example Xendy in the Description field, set Permissions to Read and click Generate API key.
  3. Copy the Consumer key and the Consumer secret. Keep that page open: WooCommerce only shows the secret once.
  4. In Xendy, go to Settings → Webshop and select Woocommerce under Choose your platform.
  5. Enter the Webshop URL and paste the Consumer key (starts with ck_) and the Consumer secret (starts with cs_). Leave Woocommerce API set to wc/v3.
  6. Xendy verifies the details immediately. If you see "We were able to successfully connect to your webshop.", click Connect Woocommerce. Xendy will start the first import right away. You can track the progress in the bottom left of the dashboard.

Xendy WordPress plugin

After connecting your WooCommerce store, you can install the Xendy Connect plugin. With it, you collect abandoned carts and also connect contact forms, a sign-up checkbox in the checkout, and WP Loyalty to Xendy.

  1. In Xendy, go to Settings → Store and click Download plugin in the WordPress plugin block. You'll download a zip file with a name like xendy-connect-x.x.x.zip.
  2. In WordPress, go to Plugins → Add new plugin → Upload plugin. Choose the file, click Install now, and then click Activate.
  3. In Xendy, click Generate plugin API key and copy the key. You'll only see it once.
  4. In WordPress, go to Xendy → General, paste the key, and click Connect.

How to set up each feature is explained in Setting up the Xendy Connect WordPress plugin.

Sending extra fields from WooCommerce

In addition to the standard synchronization, you can also send custom fields to Xendy, such as a VIP status, loyalty points, or a training date. You (or your web developer) configure this in WooCommerce.

How does it work?

  • Always use the prefix xendy_ in the field name, for example xendy_vip_status or xendy_training_date.
  • For customers: add the field as a standalone field to the customer data returned by the WooCommerce REST API. Fields that only exist in the meta_data of a customer are not read by Xendy. Xendy stores the field in the contact profile.
  • For orders and products: xendy_ fields in the meta_data of an order or product are stored with that order or product, not with the contact.
  • Xendy skips empty values.

What can you do with it?

  • Contact fields are available as filter rules in dynamic segments.
  • In the email editor, type @ and select the field, for example xendy_vip_status or xendy_company_name. In your email it will appear as {xendy_vip_status}.
  • This allows you to segment customers by loyalty points, send reminder emails based on a training date, or start emails personally with the customer's company name.

Frequently asked questions

Xendy automatically retrieves data from WooCommerce once a day during the night. This keeps your data up to date without you having to do anything yourself. Don't want to wait? Go to Settings → Web shop, click the three dots next to your connection and select Synchronize now. If the data cannot be retrieved, you will see this at Settings → Web shop and you will proactively receive a notification via email.

Yep, with WooCommerce data you can create dynamic segments in Xendy. You can filter on:

  • The number of purchases a customer has made
  • The total order value
  • How long ago someone last placed an order
  • Specific products or product categories that have or haven't been purchased

This makes it easy to target campaigns at recently ordering customers, loyal buyers with a high order value, or customers who haven't been active in a while.

Check these points:

  • Are the key (starts with ck_) and the secret (starts with cs_) in the correct field?
  • Is the URL exactly right, with or without www?
  • Is Settings → Permalinks in WordPress set to Plain? Then the API won't work. Choose a different setting.
  • Is a security plugin or firewall blocking the API? Allow wc/v3.

Is an existing connection suddenly no longer working, for example because the keys have been revoked? Then you'll see an error message at Settings → Web shop. Click Update API keys and paste in new keys.

Xendy imports customers with a valid email address and a first name (in the account or in the billing address). Customers without a valid email address or without a first name are skipped during the import. Customers who place an order as a guest will appear as a contact in Xendy.

Joeri Ras

Written by

Joeri Ras

Founder & co-owner @ Xendy

Prefer to talk directly?

Related articles

Integrations

Connect Gravity Forms to Xendy

With Gravity Forms you can easily create forms in WordPress. By connecting it to Xendy, submissions automatically end up in a static segment, so you can use new contacts right away for newsletters or email automations.

Read more
Integrations

Connect your Lightspeed store to Xendy

By connecting Lightspeed to Xendy, customer, order, and product data are automatically synchronized every night. This allows you to create segments based on purchasing behavior and display products directly in your emails. With two scripts in your webshop, you can also follow up on abandoned shopping carts.

Read more
Integrations

Connect your Magento 2 store to Xendy

By connecting Magento 2 to Xendy, customer, order and product data are automatically synchronized every night. This allows you to create segments based on purchasing behavior, display personal product recommendations and follow up on abandoned shopping carts. Please note: abandoned shopping carts only work in Magento 2 for customers who are logged in to your webshop. Xendy retrieves them during the nightly import.

Read more
Integrations

Connect your Shopify store to Xendy

By connecting Shopify to Xendy, your customers, orders, and products will be available in Xendy. This allows you to create segments based on purchasing behavior and add products to your emails. You can connect via the Xendy app in Shopify or with a custom app from the Shopify Dev Dashboard. With the Xendy app, changes come in immediately, abandoned carts work, and unsubscribes sync both ways. With a custom app, your data is updated every night.

Read more