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 Customers API

Create, retrieve, update, and delete customer accounts

WooCommerce Customers 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 Customers. 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 6 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 6 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 Customers 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.

Customers 6

Create, retrieve, update, and delete customer accounts

GET
/customers
WooCommerce List All Customers
listCustomers 5 params → 200401
POST
/customers
WooCommerce Create a Customer
createCustomer body → 201400401
GET
/customers/{id}
WooCommerce Retrieve a Customer
getCustomer 1 param → 200401404
PUT
/customers/{id}
WooCommerce Update a Customer
updateCustomer 1 param body → 200400401404
DELETE
/customers/{id}
WooCommerce Delete a Customer
deleteCustomer 3 params → 200401404
GET
/customers/{id}/downloads
WooCommerce Retrieve Customer Downloads
getCustomerDownloads 1 param → 200401404

Schemas 6

The contract defines 6 schemas that model the data the API accepts and returns. The most detailed are Customer (15 properties), Address (11 properties), CustomerDownload (10 properties), CustomerInput (8 properties). Each schema is shown below with its type and property counts.

CustomerInput
object
Input for creating or updating a customer.
8 properties
CustomerDownload
object
A downloadable file accessible to a customer.
10 properties
Customer
object
A WooCommerce customer account.
15 properties
MetaData
object
Custom metadata key-value entry.
3 properties
Address
object
Billing or shipping address associated with a customer or order.
11 properties
Error
object
3 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

woocommerce-customers-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 Order Notes API
WooCommerce Order Refunds API
WooCommerce Orders API
WooCommerce Payment Gateways API
WooCommerce Product Attributes API
WooCommerce Product Categories API
WooCommerce Product Reviews API