Medusa Return Reasons API

A return reason is a possible reason that an item is returned from the customer, such as when returning an item. These API routes allow admin users to manage return reasons.

GitHub OpenAPI
Business capability
Post-Purchase AE-140.90

Operations 7

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/return-reasons List return reasons · List Return Reasons #
Ask an LLM
“What return reasons are configured for returns?”
“Can I filter return reasons by label or value?”
Tell an agent
List all return reasons.
Find return reasons with label {label}.
POST /admin/return-reasons Create a return reason · Create Return Reason #
Ask an LLM
“How do I add a new reason a customer can give for returning an item?”
“Can a return reason have a parent reason?”
Tell an agent
Create return reason {value} labeled {label}.
Add return reason {value} with label {label} under parent {parent}.
GET /admin/return-reasons/{id} Get a return reason · Get a Return Reason #
Ask an LLM
“What value and label does a specific return reason have?”
“Can I look up one return reason by its ID?”
Tell an agent
Get return reason {id}.
Show the value and label of return reason {id}.
POST /admin/return-reasons/{id} Update a return reason · Update a Return Reason #
Ask an LLM
“How do I change the label or value of an existing return reason?”
“Can I edit a return reason's description?”
Tell an agent
Update return reason {id} to label {label} with value {value}.
Set the description of return reason {id} to {description}.
DELETE /admin/return-reasons/{id} Delete a return reason · Delete a Return Reason #
Ask an LLM
“How do I remove a return reason we no longer use?”
“Can I delete a return reason by its ID?”
Tell an agent destructive · confirm first
Delete return reason {id}.
Remove the unused return reason {id}.
GET /store/return-reasons List return reasons for the store · List Return Reasons #
Ask an LLM
“Which return reasons does the storefront show to customers?”
“Can I sort the store's return reasons?”
Tell an agent
List return reasons for the store.
Show the first {limit} store return reasons sorted by {order}.
GET /store/return-reasons/{id} Get a store return reason · Get a Return Reason #
Ask an LLM
“What does the storefront return reason with a given ID say?”
“Can I fetch one store return reason by its ID?”
Tell an agent
Get store return reason {id}.
Show the label of storefront return reason {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-return-reasons-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-return-reasons-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Medusa Return Reasons API
  version: 2.19.0
  description: 'Operations tagged Return Reasons 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 (51 KB total) ---
# Full source: https://artifacts.apis.io/medusa/openapi/medusa-return-reasons-api-openapi.yml