@medusajs/customer
Documentation | Website
Building blocks for digital commerce
Customer Module for Medusa: manages customers, customer addresses, and customer groups. Use it to store customer contact details and segment customers into groups. It ships with @medusajs/medusa and is registered by default, so you normally use it through the Medusa application rather than installing it directly.
At a glance
| Package | @medusajs/customer |
| Type | Commerce Module |
| Module key | Modules.CUSTOMER ("customer") |
| Registered by default | Yes |
| Import from | @medusajs/medusa/customer |
Features
- Store customer contact details and multiple addresses per customer.
- Group customers into customer groups.
Installation
No installation needed. The module ships with @medusajs/medusa and is registered by default.
Usage
Resolve the module's service from the container, for example in a workflow step:
import { Modules } from "@medusajs/framework/utils"
const customerModuleService = container.resolve(Modules.CUSTOMER)