Actions15
Customer → Get
AI-generatedSummary
Fetches a single customer record from a WooCommerce store using the REST API.
Inputs
- storeUrl (required) — The base URL of the WooCommerce store (e.g., https://your-store.com).
- consumerKey (required) — The WooCommerce API consumer key.
- consumerSecret (required) — The WooCommerce API consumer secret.
- customerId (required) — The unique ID of the customer to retrieve.
Output shape
A single customer record (object) containing customer details such as ID, name, email, and billing/shipping addresses.
Returns an empty array if the customer ID does not exist or the request fails.
Examples
Example 1: Retrieve a customer by their numeric ID.
Set Store URL, Credentials, and Customer ID parameters.
Example 2: Retrieve customer details for a specific email lookup (requires API context).
Use the 'Get Many' operation with the 'search' filter option instead.