npm.io
2.22.7 • Published 4d ago

@medusajs/customer

Licence
MIT
Version
2.22.7
Deps
0
Size
100 kB
Vulns
0
Weekly
0
Stars
36.6K

Medusa logo

@medusajs/customer

Documentation | Website

Building blocks for digital commerce

Medusa is released under the MIT license. PRs welcome! Discord Chat Follow @medusajs

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)

Resources