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
list-products: List products
list-products: List products
get-product: Get a product by ID
get-product: Get a product by ID
create-product: Create a new product
create-product: Create a new product
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.Orders
list-orders: List orders
list-orders: List 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).
get-order: Get an order by ID
get-order: Get an order by ID
Customers
list-customers: List customers
list-customers: List customers
get-customer: Get a customer by ID
get-customer: Get a customer by ID
create-customer: Create a new customer
create-customer: Create a new customer
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).Coupons
Advanced
raw-api-request: Make an arbitrary API request
raw-api-request: Make an arbitrary API request