Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

WooCommerce Orders API

Create, retrieve, update, and delete customer orders

WooCommerce Orders API is one of 21 APIs that WooCommerce publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 7 JSON Schema definitions.

Tagged areas include Orders. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, authentication docs, and 7 JSON Schemas.

This API exposes 6 operations across 3 paths, and defines 9 schemas. It is described by OpenAPI 3.1.0, at version v3.

Requests are made against a single base URL, https://example.com/wp-json/wc/v3.

6 operations 3 paths 9 schemas 1 DELETE3 GET1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
v3
Base URL
https://example.com/wp-json/wc/v3
Authentication
HTTP Basic
Terms of Service
Resource Areas
1

Authentication & Security 1

WooCommerce Orders API declares 1 security scheme for authenticating requests. It accepts HTTP basic authentication (basicAuth). By default, every request must be authenticated.

  • basicAuth — HTTP Basic Auth using the WooCommerce Consumer Key as the username and Consumer Secret as the password over HTTPS. Over plain HTTP use OAuth 1.0a one-legged au…

Paths & Operations 6

Across 3 paths, the API surfaces 6 operations — 1 DELETE, 3 GET, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Orders 6

Create, retrieve, update, and delete customer orders

GET
/orders
WooCommerce List All Orders
listOrders 8 params → 200401
POST
/orders
WooCommerce Create an Order
createOrder body → 201400401
GET
/orders/{id}
WooCommerce Retrieve an Order
getOrder 1 param → 200401404
PUT
/orders/{id}
WooCommerce Update an Order
updateOrder 1 param body → 200400401404
DELETE
/orders/{id}
WooCommerce Delete an Order
deleteOrder 2 params → 200401404
GET
/order/{id}
WooCommerce Retrieve a Customer Order
getStoreOrder 1 param → 200401404

Schemas 9

The contract defines 9 schemas that model the data the API accepts and returns. The most detailed are Order (25 properties), LineItem (13 properties), StoreAddress (11 properties), Address (11 properties). Each schema is shown below with its type and property counts.

Error_2
object
Error response returned when a request fails.
3 properties
StoreAddress
object
A customer billing or shipping address in the Store API context.
11 properties
MetaData
object
Custom metadata key-value entry.
3 properties
LineItem
object
A product line item within an order.
13 properties
StoreOrder
object
A customer order retrieved via the Store API.
8 properties
Address
object
Billing or shipping address associated with a customer or order.
11 properties
Order
object
A WooCommerce customer order.
25 properties
OrderInput
object
Input for creating or updating an order.
9 properties
Error
object
3 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

woocommerce-orders-api-openapi.yml Raw ↑

Other APIs WooCommerce publishes across the network.

WooCommerce Webhook Events
WooCommerce GraphQL API
WooCommerce Cart API
WooCommerce Checkout API
WooCommerce Coupons API
WooCommerce Customers API
WooCommerce Order Notes API
WooCommerce Order Refunds API
WooCommerce Payment Gateways API
WooCommerce Product Attributes API
WooCommerce Product Categories API
WooCommerce Product Reviews API