medusajs/medusa

[Bug]: address_name field is missing in the response of sdk.store.customer.listAddress

Open

#14585 opened on Jan 20, 2026

View on GitHub
 (4 comments) (0 reactions) (0 assignees)TypeScript (22,539 stars) (2,090 forks)batch import
good first issuetype: bugversion: 2.0

Description

Package.json file

{
  "name": "medusa-next",
  "version": "1.0.3",
  "private": true,
  "author": "Kasper Fabricius Kristensen <kasper@medusajs.com> & Victor Gerbrands <victor@medusajs.com> (https://www.medusajs.com)",
  "description": "Next.js Starter to be used with Medusa V2",
  "keywords": [
    "medusa-storefront"
  ],
  "scripts": {
    "dev": "next dev --turbopack -p 8000",
    "build": "next build",
    "start": "next start -p 8000",
    "lint": "next lint",
    "analyze": "ANALYZE=true next build"
  },
  "dependencies": {
    "@hookform/resolvers": "^5.2.1",
    "@medusajs/js-sdk": "latest",
    "@radix-ui/react-accordion": "^1.2.12",
    "@radix-ui/react-alert-dialog": "^1.1.15",
    "@radix-ui/react-aspect-ratio": "^1.1.7",
    "@radix-ui/react-avatar": "^1.1.10",
    "@radix-ui/react-checkbox": "^1.3.3",
    "@radix-ui/react-collapsible": "^1.1.12",
    "@radix-ui/react-context-menu": "^2.2.16",
    "@radix-ui/react-dialog": "^1.1.15",
    "@radix-ui/react-dropdown-menu": "^2.1.16",
    "@radix-ui/react-hover-card": "^1.1.15",
    "@radix-ui/react-label": "^2.1.7",
    "@radix-ui/react-menubar": "^1.1.16",
    "@radix-ui/react-navigation-menu": "^1.2.14",
    "@radix-ui/react-popover": "^1.1.15",
    "@radix-ui/react-progress": "^1.1.7",
    "@radix-ui/react-radio-group": "^1.3.8",
    "@radix-ui/react-scroll-area": "^1.2.10",
    "@radix-ui/react-select": "^2.2.6",
    "@radix-ui/react-separator": "^1.1.7",
    "@radix-ui/react-slider": "^1.3.6",
    "@radix-ui/react-slot": "^1.2.4",
    "@radix-ui/react-switch": "^1.2.6",
    "@radix-ui/react-tabs": "^1.1.13",
    "@radix-ui/react-toast": "^1.2.15",
    "@radix-ui/react-toggle": "^1.1.10",
    "@radix-ui/react-toggle-group": "^1.1.11",
    "@radix-ui/react-tooltip": "^1.2.8",
    "@stripe/react-stripe-js": "^1.7.2",
    "@stripe/stripe-js": "^1.29.0",
    "@tosspayments/tosspayments-sdk": "^2.4.1",
    "class-variance-authority": "^0.7.1",
    "clsx": "^2.1.1",
    "cmdk": "^1.1.1",
    "currency.js": "^2.0.4",
    "date-fns": "^4.1.0",
    "embla-carousel": "^8.6.0",
    "embla-carousel-autoplay": "^8.6.0",
    "embla-carousel-react": "^8.6.0",
    "framer-motion": "^12.23.26",
    "i": "^0.3.7",
    "intl-tel-input": "^25.12.5",
    "lodash": "^4.17.21",
    "lodash.sortby": "^4.7.0",
    "lucide-react": "^0.542.0",
    "next": "^15.3.1",
    "next-themes": "^0.4.6",
    "npm": "^11.6.4",
    "overlay-kit": "^1.8.6",
    "pg": "^8.11.3",
    "qs": "^6.12.1",
    "react": "19.0.0-rc-66855b96-20241106",
    "react-country-flag": "^3.1.0",
    "react-day-picker": "latest",
    "react-dom": "19.0.0-rc-66855b96-20241106",
    "react-hook-form": "^7.62.0",
    "react-icons": "^5.5.0",
    "react-mobile-picker": "^1.2.0",
    "react-phone-number-input": "^3.4.14",
    "react-resizable-panels": "^3.0.5",
    "react-signature-canvas": "^1.1.0-alpha.2",
    "server-only": "^0.0.1",
    "sonner": "^2.0.7",
    "swr": "^2.3.6",
    "tailwind-merge": "^3.3.1",
    "tailwindcss-animate": "^1.0.7",
    "tailwindcss-radix": "^2.8.0",
    "uuid": "^13.0.0",
    "vaul": "^1.1.2",
    "webpack": "^5",
    "zod": "^4.1.5",
    "zustand": "^5.0.9"
  },
  "devDependencies": {
    "@babel/core": "^7.17.5",
    "@medusajs/types": "latest",
    "@svgr/webpack": "^8.1.0",
    "@tailwindcss/postcss": "^4.1.13",
    "@types/lodash": "^4.17.21",
    "@types/node": "17.0.21",
    "@types/pg": "^8.11.0",
    "@types/react": "^18.3.12",
    "@types/react-dom": "^18.3.1",
    "@types/react-instantsearch-dom": "^6.12.3",
    "@types/react-signature-canvas": "^1.0.7",
    "ansi-colors": "^4.1.3",
    "autoprefixer": "^10.4.17",
    "babel-loader": "^8.2.3",
    "eslint": "^8.57.1",
    "eslint-config-next": "15.0.3",
    "postcss": "^8.4.35",
    "prettier": "3.8.0",
    "prettier-plugin-tailwindcss": "^0.6.14",
    "shadcn": "latest",
    "tailwindcss": "^4.1.13",
    "typescript": "^5.3.2"
  },
  "packageManager": "yarn@3.2.3",
  "resolutions": {
    "@types/react": "npm:types-react@19.0.0-rc.1",
    "@types/react-dom": "npm:types-react-dom@19.0.0-rc.1"
  },
  "overrides": {
    "react": "19.0.0-rc-66855b96-20241106",
    "react-dom": "19.0.0-rc-66855b96-20241106"
  }
}

Node.js version

v25.2.1

Database and its version

6.4.16

Operating system name and version

mac

Browser name

No response

What happended?

Description When fetching a customer's address list using the JS SDK, the address_name field is not included in the returned address objects, even though the data exists in the database.

Steps to Reproduce Create a customer address with an address_name (e.g., "Home", "Office").

Fetch the addresses using the following SDK code:

TypeScript

export const getCustomerAddresses = async () => { const headers = await getAuthHeaders()

return await sdk.store.customer .listAddress({}, headers) .then(({ addresses }) => { console.log(addresses) // Check the address objects here return addresses }) .catch(() => null) } Expected Behavior Each address object in the addresses array should include the address_name field.

Actual Behavior The address_name field is missing/undefined in the response, while other fields like first_name, last_name, and address_1 are returned correctly.

Environment Medusa Version: v2 (latest)

SDK Version: @medusajs/js-sdk (latest)

Expected behavior

Description When fetching a customer's address list using the JS SDK, the address_name field is not included in the returned address objects, even though the data exists in the database.

Steps to Reproduce Create a customer address with an address_name (e.g., "Home", "Office").

Fetch the addresses using the following SDK code:

TypeScript

export const getCustomerAddresses = async () => { const headers = await getAuthHeaders()

return await sdk.store.customer .listAddress({}, headers) .then(({ addresses }) => { console.log(addresses) // Check the address objects here return addresses }) .catch(() => null) } Expected Behavior Each address object in the addresses array should include the address_name field.

Actual Behavior The address_name field is missing/undefined in the response, while other fields like first_name, last_name, and address_1 are returned correctly.

Environment Medusa Version: v2 (latest)

SDK Version: @medusajs/js-sdk (latest)

Actual behavior

Description When fetching a customer's address list using the JS SDK, the address_name field is not included in the returned address objects, even though the data exists in the database.

Steps to Reproduce Create a customer address with an address_name (e.g., "Home", "Office").

Fetch the addresses using the following SDK code:

TypeScript

export const getCustomerAddresses = async () => { const headers = await getAuthHeaders()

return await sdk.store.customer .listAddress({}, headers) .then(({ addresses }) => { console.log(addresses) // Check the address objects here return addresses }) .catch(() => null) } Expected Behavior Each address object in the addresses array should include the address_name field.

Actual Behavior The address_name field is missing/undefined in the response, while other fields like first_name, last_name, and address_1 are returned correctly.

Environment Medusa Version: v2 (latest)

SDK Version: @medusajs/js-sdk (latest)

Link to reproduction repo

/

Contributor guide