WooCommerce
API actions for the WooCommerce integration.
WooCommerce
Manage WooCommerce products, customers, and orders.
Create WooCommerce customer
Create a customer with email and optional profile details.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
email | string | Yes | Customer email. |
first_name | string | No | First name. |
last_name | string | No | Last name. |
Response
{}Create WooCommerce order
Create an order with one or more products and an optional customer.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
line_items | array | Yes | The products to include in the order, each with a product ID and quantity. |
customer_id | number | No | The customer's ID to link to this order. Use 0 for a guest checkout. |
status | string | No | The order's status, for example pending, processing, or completed. |
Response
{}Create WooCommerce product
Create a new WooCommerce product with optional description and price.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Product name. |
description | string | No | Product description. |
regular_price | string | No | Regular price for the product. |
Response
{}Get WooCommerce product
Retrieve a single WooCommerce product by ID.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
product_id | string | Yes | WooCommerce product ID. |
Response
{}List WooCommerce orders
List recent WooCommerce orders optionally filtered by status.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
per_page | number | No | Maximum number of orders to return. |
status | string | No | Only show orders with this status, for example pending, processing, or completed. |
Response
{
"results": [
{}
]
}List WooCommerce products
List products from your WooCommerce store.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
per_page | number | No | Maximum number of products to return. |
Response
{
"results": [
{}
]
}