Menu
API Reference
createStoreClient(options)
Creates a WooCommerce Store API client (public-facing operations).
Options:
baseURL: string— REST API root
Returns: WooCommerceStoreClient
Store methods
store.products.list(params?)—GET /wc/store/v1/productsstore.products.get(id)—GET /wc/store/v1/products/:idstore.cart.get()—GET /wc/store/v1/cartstore.cart.addItem({ id, quantity })—POST /wc/store/v1/cart/add-itemstore.cart.updateItem({ key, quantity })—POST /wc/store/v1/cart/update-itemstore.cart.removeItem({ key })—POST /wc/store/v1/cart/remove-itemstore.checkout.get()—GET /wc/store/v1/checkoutstore.checkout.placeOrder(data)—POST /wc/store/v1/checkout
createAdminClient(options)
Creates a WooCommerce Admin API client (authenticated, server-side only).
Options:
baseURL: stringconsumerKey: stringconsumerSecret: string
Returns: WooCommerceAdminClient
Admin methods
admin.orders.list(params?)—GET /wc/v3/ordersadmin.orders.get(id)—GET /wc/v3/orders/:idadmin.customers.list(params?)—GET /wc/v3/customersadmin.products.list(params?)—GET /wc/v3/products