Medusa Customers API

Customers can either be created when they register through the Store APIs, or created by the admin using the Admin APIs. These API routes allow admin users to manage customers in their store.

GitHub OpenAPI
Business capability
Customer Data Management BC-420.10

Operations 19

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /admin/customers List customers · List Customers #
Ask an LLM
“How do I get a list of all customers in the admin store?”
“Can I filter customers by email, company name or creation date?”
Tell an agent
List all customers.
Find customers with email {email}.
POST /admin/customers Create a customer · Create Customer #
Ask an LLM
“How do I create a new customer record with an email, name and phone number?”
“What fields are required when creating a customer?”
Tell an agent
Create a customer with email {email}, name {first_name} {last_name}, company {company_name} and phone {phone}.
Add a new customer {email} at {company_name} with phone {phone} and name {first_name} {last_name}.
GET /admin/customers/{id} Get a customer · Get a Customer #
Ask an LLM
“How do I look up one customer by ID?”
“Can I fetch a single customer's details?”
Tell an agent
Get customer {id}.
Show the details of customer {id}.
POST /admin/customers/{id} Update a customer · Update a Customer #
Ask an LLM
“How do I change an existing customer's email or phone number?”
“Can I update a customer's company name?”
Tell an agent
Update customer {id} with email {email}, name {first_name} {last_name}, company {company_name} and phone {phone}.
Change the phone of customer {id} to {phone}.
DELETE /admin/customers/{id} Delete a customer · Delete a Customer #
Ask an LLM
“How do I delete a customer?”
“Can I remove a customer record permanently?”
Tell an agent destructive · confirm first
Delete customer {id}.
Remove the customer record {id}.
GET /admin/customers/{id}/addresses List a customer's addresses · List Addresses #
Ask an LLM
“How do I list all addresses on a customer?”
“Can I filter a customer's addresses by city or postal code?”
Tell an agent
List the addresses of customer {id}.
Show customer {id}'s addresses in {country_code}.
POST /admin/customers/{id}/addresses Add an address to a customer · Add a Customer Address #
Ask an LLM
“How do I add a new billing or shipping address to a customer?”
“Can I set a new address as the customer's default billing address?”
Tell an agent
Add address {address_name} to customer {id} with company {company}, name {first_name} {last_name}, line {address_1}, city {city}, country {country_code}, province {province}, postal {postal_code} and phone {phone}.
Make {address_name} the default billing address for customer {id}.
GET /admin/customers/{id}/addresses/{address_id} Get a customer's address · List Addresses #
Ask an LLM
“How do I look up one address on a customer?”
“Can I fetch a single customer address by its ID?”
Tell an agent
Get address {address_id} of customer {id}.
Show customer {id}'s address {address_id}.
POST /admin/customers/{id}/addresses/{address_id} Update a customer's address · Update a Customer's Address #
Ask an LLM
“How do I change an address already on a customer?”
“Can I make an existing customer address the default shipping address?”
Tell an agent
Update address {address_id} of customer {id} to company {company}, name {first_name} {last_name}, line {address_1}, city {city}, country {country_code}, province {province}, postal {postal_code} and phone {phone}.
Set address {address_id} on customer {id} as the default shipping address.
DELETE /admin/customers/{id}/addresses/{address_id} Remove an address from a customer · Remove an Address from Customer #
Ask an LLM
“How do I remove an address from a customer?”
“Can I delete one address on a customer without deleting the customer?”
Tell an agent destructive · confirm first
Remove address {address_id} from customer {id}.
Delete the {address_id} address on customer {id}.
POST /admin/customers/{id}/customer-groups Add or remove a customer from customer groups · Manage Customer Groups of Customer #
Ask an LLM
“How do I add a customer to a customer group?”
“Can I remove a customer from a group?”
Tell an agent
Add customer {id} to customer groups {add}.
Remove customer {id} from customer groups {remove}.
POST /store/customers Register a customer (store) · Register Customer #
Ask an LLM
“How do I register a new customer through the store API?”
“What do I need to register a customer in the storefront?”
Tell an agent
Register a new storefront customer with email {email}, name {first_name} {last_name}, company {company_name} and phone {phone}.
Create a store customer {email} at {company_name} with phone {phone} and name {first_name} {last_name}.
GET /store/customers/me Get the logged-in customer · Get Logged-in Customer #
Ask an LLM
“How do I see the details of the customer who is logged in?”
“Can I fetch my own customer account with addresses expanded?”
Tell an agent
Get my logged-in customer account.
Show my customer record in locale {locale}.
POST /store/customers/me Update the logged-in customer · Update Customer #
Ask an LLM
“How do I change my own customer profile details?”
“Can I update my phone number or company name as the logged-in user?”
Tell an agent
Update my customer profile with company {company_name}, name {first_name} {last_name}, phone {phone}.
Change my phone number to {phone}.
GET /store/customers/me/addresses List the logged-in customer's addresses · List Customer's Addresses #
Ask an LLM
“How do I list all addresses on my own customer account?”
“Can I filter my own addresses by postal code?”
Tell an agent
List my addresses.
Show my addresses in {country_code}.
POST /store/customers/me/addresses Add an address to my logged-in customer · Create Address for Logged-In Customer #
Ask an LLM
“How do I add a billing address to my own account?”
“Can I set a new address as the default shipping address?”
Tell an agent
Add an address for my logged-in customer: {first_name} {last_name}, {address_1}, {city}, {country_code}.
Add {address_name} as an address on my account, marked as default shipping: {is_default_shipping}.
GET /store/customers/me/addresses/{address_id} Get one address from my logged-in customer · Get Customer's Address #
Ask an LLM
“How do I view a single address I already saved on my account?”
“Which details come back for a particular address of mine?”
Tell an agent
Get address {address_id} from my customer account.
Show me my saved address {address_id} with {fields}.
POST /store/customers/me/addresses/{address_id} Update one of my addresses · Update Customer's Address #
Ask an LLM
“How do I change an address on my own customer account?”
“Can I make an existing address on my account the default shipping address?”
Tell an agent
Update address {address_id} on my customer account to company {company}, name {first_name} {last_name}, line {address_1}, city {city}, country {country_code}, province {province}, postal {postal_code} and phone {phone}.
Set address {address_id} on my account as the default shipping address.
DELETE /store/customers/me/addresses/{address_id} Remove an address from my customer account · Remove Customer's Address #
Ask an LLM
“How do I remove an address from my own customer account?”
“Can I delete one address on my account without deleting the account?”
Tell an agent destructive · confirm first
Remove address {address_id} from my customer account.
Delete my address {address_id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/medusa:medusa-customers-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

medusa-customers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Medusa Customers API
  version: 2.19.0
  description: 'Operations tagged Customers across 2 of this provider''s published API definitions: medusa-admin-openapi.yaml, medusa-store-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: http://localhost:9000
- url: https://api.medusajs.com
tags:


# --- truncated at 32 KB (283 KB total) ---
# Full source: https://artifacts.apis.io/medusa/openapi/medusa-customers-api-openapi.yml