Medusa Returns API

Admin users create a return when a customer returns an item to them. Returns can also be created by customers through the storefront, and admins will be able to manage them and make refunds, if necessary. Refunds are made through the [Payment API Routes](#payment) These API routes allow admin users to manage returns.

GitHub OpenAPI
Business capability
Post-Purchase AE-140.90

Operations 23

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/returns List returns · List Returns #
Ask an LLM
“Which returns have been requested or received?”
“Can I filter returns by order or status?”
Tell an agent
List all returns.
List returns for order {order_id}.
POST /admin/returns Create a return for an order · Create Return #
Ask an LLM
“How do I start a return for an order?”
“Can I add a note and a location when creating a return?”
Tell an agent
Create a return for order {order_id}.
Create return {order_id} with note {description}.
GET /admin/returns/{id} Get a return · Get a Return #
Ask an LLM
“What is the status of a specific return?”
“Can I look up one return by its ID?”
Tell an agent
Get return {id}.
Show the status of return {id}.
POST /admin/returns/{id} Update a return's details · Update a Return #
Ask an LLM
“Can I change the location a return is returned to?”
“Is it possible to stop notifications on a return?”
Tell an agent
Set the return {id} location to {location_id}.
Update return {id} with metadata {metadata}.
POST /admin/returns/{id}/cancel Cancel a return · Cancel a return #
Ask an LLM
“How do I cancel a return that hasn't been confirmed yet?”
“Can I stop a return without notifying the customer?”
Tell an agent destructive · confirm first
Cancel return {id}.
Cancel return {id} without notifying the customer.
POST /admin/returns/{id}/dismiss-items Add damaged items to a return · Add Damaged Items to Return #
Ask an LLM
“How do I record that some returned items arrived damaged?”
“Can I add damaged items to a return by their action ID?”
Tell an agent
Add damaged items {items} to return {id}.
Record damaged items {items} on return {id}.
POST /admin/returns/{id}/dismiss-items/{action_id} Update a damaged item on a return · Update Damaged Item of Return #
Ask an LLM
“Can I change the quantity of a damaged item already added to a return?”
“Is it possible to add a note to a damaged item on a return?”
Tell an agent
Set the quantity of damaged item {action_id} on return {id} to {quantity}.
Add note {internal_note} to damaged item {action_id} of return {id}.
DELETE /admin/returns/{id}/dismiss-items/{action_id} Remove a damaged item from a return · Remove Damaged Item from Return #
Ask an LLM
“How do I remove a damaged item from a return?”
“Can I delete a damaged item action on a return?”
Tell an agent destructive · confirm first
Remove damaged item {action_id} from return {id}.
Delete the damaged item action {action_id} on return {id}.
POST /admin/returns/{id}/receive Start receiving a return · Start Return Receival #
Ask an LLM
“How do I begin the process of receiving a return?”
“Can I start return receival with a note?”
Tell an agent
Start receiving return {id}.
Start receiving return {id} with note {internal_note}.
DELETE /admin/returns/{id}/receive Cancel a return's receival · Cancel Return Receival #
Ask an LLM
“How do I cancel a return receival that hasn't been confirmed?”
“Can I stop the return receiving process?”
Tell an agent destructive · confirm first
Cancel the receival of return {id}.
Stop the receiving process for return {id}.
POST /admin/returns/{id}/receive-items Add received items to a return · Add Received Items to Return #
Ask an LLM
“How do I record items that have been received back?”
“Can I add received items to a return by their action ID?”
Tell an agent
Add received items {items} to return {id}.
Record received items {items} on return {id}.
POST /admin/returns/{id}/receive-items/{action_id} Update a received item on a return · Update a Received Item in a Return #
Ask an LLM
“Can I change the quantity of a received item on a return?”
“Is it possible to add a note to a received item?”
Tell an agent
Set the quantity of received item {action_id} on return {id} to {quantity}.
Add note {internal_note} to received item {action_id} of return {id}.
DELETE /admin/returns/{id}/receive-items/{action_id} Remove a received item from a return · Remove a Received Item from Return #
Ask an LLM
“How do I remove a received item from a return?”
“Can I delete a received item action on a return?”
Tell an agent destructive · confirm first
Remove received item {action_id} from return {id}.
Delete the received item action {action_id} on return {id}.
POST /admin/returns/{id}/receive/confirm Confirm a return has been received · Confirm Return Receival #
Ask an LLM
“How do I confirm a return has been received?”
“Can I notify the customer when a return is confirmed received?”
Tell an agent
Confirm return {id} has been received.
Confirm return {id} received and notify the customer.
POST /admin/returns/{id}/request Confirm a requested return · Confirm Return Request #
Ask an LLM
“How do I confirm a return that a customer has requested?”
“Can I confirm a return request without notifying the customer?”
Tell an agent
Confirm return {id} has been requested.
Confirm return {id} request without notifying the customer.
DELETE /admin/returns/{id}/request Cancel a requested return · Cancel Return Request #
Ask an LLM
“How do I cancel a return request that hasn't been confirmed?”
“Can I stop a customer's return request?”
Tell an agent destructive · confirm first
Cancel the return request {id}.
Stop the customer's return request {id}.
POST /admin/returns/{id}/request-items Request items to be returned · Add Requested Items to Return #
Ask an LLM
“How do I request specific items to be returned on a return?”
“Can I ask for some items on a return without the customer shipping the rest?”
Tell an agent
Request these items on return {id}: {items}.
Add {items} to return {id} as requested items.
POST /admin/returns/{id}/request-items/{action_id} Update a requested item on a return · Update Requested Item in Return #
Ask an LLM
“Can I change the quantity of an item a customer wants to return?”
“Is it possible to add a reason to a requested item?”
Tell an agent
Set the quantity of requested item {action_id} on return {id} to {quantity}.
Add reason {reason_id} to requested item {action_id} of return {id}.
DELETE /admin/returns/{id}/request-items/{action_id} Remove an item from a return request · Remove Item from Return #
Ask an LLM
“How do I remove an item from a customer's return request?”
“Can I delete a requested item action on a return?”
Tell an agent destructive · confirm first
Remove requested item {action_id} from return {id}.
Delete the requested item action {action_id} on return {id}.
POST /admin/returns/{id}/shipping-method Add a shipping method to a return · Add a Shipping Method to a Return #
Ask an LLM
“How do I add a shipping method to a return?”
“Can I set a custom amount on a return's shipping method?”
Tell an agent
Add shipping option {shipping_option_id} to return {id}.
Add shipping option {shipping_option_id} to return {id} with amount {custom_amount}.
POST /admin/returns/{id}/shipping-method/{action_id} Update a shipping method on a return · Update a Shipping Method of a Return #
Ask an LLM
“Can I change the shipping method a customer returns an item with?”
“Is it possible to set a custom price on a return's shipping method?”
Tell an agent
Update shipping method {action_id} on return {id}.
Set custom amount {custom_amount} on shipping method {action_id} of return {id}.
DELETE /admin/returns/{id}/shipping-method/{action_id} Remove a shipping method from a return · Remove Shipping Method from Return #
Ask an LLM
“Can I remove the shipping method from a return?”
“What happens to a return when its shipping method is removed?”
Tell an agent destructive · confirm first
Remove shipping method {action_id} from return {id}.
Delete the shipping method {action_id} on return {id}.
POST /store/returns Request a return for an order · Create Return #
Ask an LLM
“Can a guest customer request a return for their order?”
“What shipping details do I need to create a return?”
Tell an agent
Create a return for order {order_id} with items {items} and shipping {return_shipping}.
Request a return for order {order_id} with note {note}.

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-returns-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-returns-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Medusa Returns API
  version: 2.19.0
  description: 'Operations tagged Returns 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 (448 KB total) ---
# Full source: https://artifacts.apis.io/medusa/openapi/medusa-returns-api-openapi.yml