WooCommerce API

11 endpoints for WooCommerce, each at its own method and path, called with your API key. Open an endpoint for its inputs, examples and response.

Base URL
https://cotlet.dev/api/v1/woocommerce
Connects with
Your store's public URL and a WordPress account with the Administrator or Shop Manager role
Integration page
WooCommerce

Read (6)

Return data and change nothing in the account.

WooCommerce Endpoints: Read
EndpointDescription
GET /orders Orders with status, total, customer and date, filtered by status, date, customer or product.
GET /orders/{order_id} One order with line items, shipping, payment method, refunds and notes.
GET /products Products with price, sale price, stock and status, filtered by search, category, status or SKU.
GET /customers Customers with email, order count and total spent. Contains personal data.
GET /coupons Coupons with code, discount, usage count, limit and expiry date.
GET /sales-report Sales totals for a period: gross and net sales, orders, items, tax, shipping, refunds and coupons used.

Write (5)

Change the account. Calls marked Confirm wait for the user to approve them.

WooCommerce Endpoints: Write
EndpointDescription
PATCH /orders/{order_id}/status Confirm Set an order to pending, processing, on-hold, completed, cancelled, refunded or failed.
POST /orders/{order_id}/note Confirm Add a private note for your team or a note the customer sees and is emailed.
POST /orders/{order_id}/refunds Confirm Refund an amount or specific line items of an order, through the payment gateway or as a manual record.
POST /coupons Confirm Create a coupon with a discount type, amount, expiry date, usage limits and allowed emails.
PATCH /products/{product_id} Confirm Change a product name, status, price, sale price or stock.

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.