Skip to main content
The WooCommerce connector lets your workflows manage an online store’s products, orders, customers, and coupons through the WooCommerce REST API.
For the full API reference, see the WooCommerce REST API documentation.

Connection setup

1

Generate REST API keys

In your WordPress admin, go to WooCommerce > Settings > Advanced > REST API. Click Add key, give it a description (e.g., “Spojit Integration”), set permissions to Read/Write, and click Generate API Key. Copy the Consumer Key and Consumer Secret.
2

Add the connection in Spojit

Go to Connections in Spojit, click Add Connection, select WooCommerce, and enter:
  • Store URL: Your store URL (e.g., https://mystore.com)
  • Consumer Key: Your REST API consumer key (starts with ck_)
  • Consumer Secret: Your REST API consumer secret (starts with cs_)
Your WooCommerce store must have SSL (HTTPS) enabled for REST API authentication to work. The API uses HTTP Basic Auth over SSL.

Tools

Products

number
default:"1"
Page number for pagination.
number
default:"10"
Number of results per page (max 100).
Search products by keyword.
string
Filter by status: draft, pending, private, or publish.
string
Filter by category ID.
string
Filter by exact SKU.
Example request:
Example response:
string
required
Product ID.
Example request:
Example response:
string
required
Product name.
string
default:"simple"
Product type: simple, grouped, external, or variable.
string
Regular price.
string
Full product description (HTML supported).
string
Short product description (HTML supported).
string
Stock-keeping unit.
object[]
Categories to assign. Each object should have an id field.
string
default:"publish"
Product status: draft, pending, private, or publish.
Example request:
Example response:
string
required
Product ID.
string
New product name.
string
New regular price.
string
New description.
string
Short product description (HTML supported).
string
New SKU.
string
New status.
Example request:
Example response:

Orders

number
default:"1"
Page number for pagination.
number
default:"10"
Number of results per page (max 100).
string
Filter by status: pending, processing, on-hold, completed, cancelled, refunded, failed, or trash.
string
Filter by customer ID.
string
Filter orders created after this date (ISO 8601).
string
Filter orders created before this date (ISO 8601).
Example request:
Example response:
string
required
Order ID.
Example request:
Example response:
string
required
Order ID.
string
New order status.
Example request:
Example response:

Customers

number
default:"1"
Page number for pagination.
number
default:"10"
Number of results per page (max 100).
string
Search by keyword.
string
Filter by exact email address.
Example request:
Example response:
string
required
Customer ID.
Example request:
Example response:
string
required
Customer email address.
string
First name.
string
Last name.
string
Username. Auto-generated from email if not provided.
object
Billing address object with fields: first_name, last_name, company, address_1, address_2, city, state, postcode, country, email, phone.
object
Shipping address object with the same fields as billing (except email and phone).
Example request:
Example response:

Coupons

number
default:"1"
Page number for pagination.
number
default:"10"
Number of results per page (max 100).
string
Search by coupon code.
string
Filter by exact coupon code.
Example request:
Example response:

Advanced

Send a request to any WooCommerce REST API endpoint.
string
required
HTTP method: GET, POST, PUT, or DELETE.
string
required
API path (e.g., /wp-json/wc/v3/products, /wp-json/wc/v3/orders).
object
Request body for POST and PUT requests.
Example request:
Example response: