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.
| Endpoint | Description |
|---|---|
| GET | Orders with status, total, customer and date, filtered by status, date, customer or product. |
| GET | One order with line items, shipping, payment method, refunds and notes. |
| GET | Products with price, sale price, stock and status, filtered by search, category, status or SKU. |
| GET | Customers with email, order count and total spent. Contains personal data. |
| GET | Coupons with code, discount, usage count, limit and expiry date. |
| GET | 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.
| Endpoint | Description |
|---|---|
| PATCH | Set an order to pending, processing, on-hold, completed, cancelled, refunded or failed. |
| POST | Add a private note for your team or a note the customer sees and is emailed. |
| POST | Refund an amount or specific line items of an order, through the payment gateway or as a manual record. |
| POST | Create a coupon with a discount type, amount, expiry date, usage limits and allowed emails. |
| PATCH | Change a product name, status, price, sale price or stock. |