Actions25
- Product Actions
- Category Actions
- Customer Actions
- Order Actions
- Inventory Actions
- Store Actions
Customer → Get
AI-generatedSummary
Retrieve a customer from Magento 2 by ID
Inputs
- customerId (required) — Customer ID
- websiteCode — Store view code for multi-store Magento instances (used in URL like /rest/{code}/V1/...). Options are loaded from your Magento store, but you can enter any custom store view code.
- simplifyOutput — When enabled, flattens the response structure. Converts custom_attributes array to an object, flattens extension_attributes, and simplifies nested structures.
Output shape
Magento 2 customer resource JSON
If simplifyOutput is true, the response passes through flattenResponse which converts custom_attributes to an object, flattens extension_attributes into top-level keys, and simplifies nested structures.
Examples
Example 1: Get single customer
customerId=123 with default websiteCode (empty) returns GET /rest/V1/customers/123