Skip to content
WooCommerce logo

Connectors / E-commerce · HTTP Connector

Automate WooCommerce with Tray.ai

Create an order, create a product and create a customer in WooCommerce, and start a workflow when WooCommerce sends “Order created”.

What can you do with WooCommerce on Tray.ai?

WooCommerce is an open-source ecommerce plugin for WordPress that runs online stores, handling products, orders, customers, coupons, taxes and shipping. Tray.ai connects to WooCommerce through the HTTP Connector, so your workflows can call the WooCommerce API alongside the rest of your stack.

  • When WooCommerce sends “Order created”, record the sale in your accounting system.
  • Add the customer to your email marketing list when WooCommerce sends “Customer created”.
  • Update a product when stock levels change in your inventory system.
  • Create a coupon when support approves a goodwill gesture in your help desk.
Connects through
HTTP Connector
Authentication
Basic authentication or an API key in the query string
Base URL
https://{your-store-domain}/wp-json/wc/v3

Set it up

Connect WooCommerce to Tray.ai

Each step uses WooCommerce's own API details, from its documentation.

Step 1

Save WooCommerce's username and password

Save the credentials WooCommerce gives you as a Tray.ai authentication. The HTTP Client sends them as basic auth. They stay out of the workflow and out of the logs.

Step 2

Point the HTTP Client at the API

Add an HTTP Client step and use https://{your-store-domain}/wp-json/wc/v3 as the base URL. Or paste a cURL example from WooCommerce's API docs, and Tray.ai fills in the method, URL, and headers.

Step 3

Start with “List orders”

It's one of 21 documented actions, under Orders. The response comes back as data the next step can map into your other apps.

Step 4

Start workflows from WooCommerce events

Give WooCommerce the URL of a Tray.ai webhook trigger. “Order created” can then start a workflow, and so can 11 other events.

Workflows to build with WooCommerce

Each one uses actions and events from WooCommerce's own API documentation.

Send new WooCommerce orders to NetSuite

When

Order created

Then

  1. Create a sales order in NetSuite with the items and customer
  2. Update an order in WooCommerce with the NetSuite reference

With NetSuite

Add WooCommerce customers to HubSpot

When

Customer created

Then

  1. Create or update the contact in HubSpot
  2. Add the contact to the store customers list in HubSpot

With HubSpot

Post weekly WooCommerce top sellers to Slack

When

On a schedule

Then

  1. Get sales report in WooCommerce for the past week
  2. Get top sellers report
  3. Post the summary to the ecommerce channel in Slack

With Slack

Apps you can build on WooCommerce data

Internal tools your team can build with an AI assistant, each one using WooCommerce calls from its API documentation.

Refund request queue

Lists orders with their past refunds and lets support issue a refund.

Coupon manager

Lists store coupons and lets marketing update a coupon's amount or expiry.

Sales dashboard

Shows sales totals and top-selling products for a chosen period.

Give your AI agents WooCommerce tools

Build an MCP server on WooCommerce in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • List orders
  • List products
  • List customers
  • List coupons
  • List refunds
  • Get sales report
  • Create an order
  • Update an order

What the WooCommerce API covers

6 resources and 21 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Orders

  • List orders
  • Create an order
  • Update an order
  • Delete an order

Products

  • List products
  • Create a product
  • Update a product
  • Duplicate a product

Customers

  • List customers
  • Create a customer
  • Update a customer
  • Delete a customer

Coupons

  • List coupons
  • Create a coupon
  • Update a coupon
  • Delete a coupon

Refunds

  • List refunds
  • Create an order refund
  • Delete an order refund

Reports

  • Get sales report
  • Get top sellers report

Events WooCommerce can send to a Tray.ai webhook trigger

  • Order created
  • Order updated
  • Order deleted
  • Product created
  • Product updated
  • Product deleted
  • Customer created
  • Customer updated
  • Customer deleted
  • Coupon created
  • Coupon updated
  • Coupon deleted

Checked against WooCommerce's own documentation on 2026-10-22

woocommerce.github.io/woocommerce-rest-api-docs

Related integrations

Hundreds of pre-built WooCommerce integrations ready to deploy.

Frequently asked questions

What can a Tray.ai workflow do in WooCommerce?

+

The WooCommerce API documents 21 actions across 6 resources (Orders, Products, Customers, Coupons, Refunds, Reports). For example: List orders; List products; List customers. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with WooCommerce?

+

The WooCommerce API uses basic authentication and an API key in the query string. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Which WooCommerce events can start a Tray.ai workflow?

+

WooCommerce sends 12 events to a webhook URL, for example: Order created; Order updated; Order deleted; Product created; Product updated; Product deleted; Customer created; Customer updated. A Tray.ai webhook trigger receives them and starts a workflow.

See WooCommerce working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.