Medusa Exchanges API

An exchange is the replacement of an item that the customer ordered with another. These API routes allow admin users to create and manage exchanges.

GitHub OpenAPI
Business capability
Post-Purchase AE-140.90

Operations 18

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/exchanges List exchanges · List Exchanges #
Ask an LLM
“Which exchanges have been created for a given order?”
“Can I list exchanges that were cancelled?”
Tell an agent
List exchanges for order {order_id}.
Show exchanges with status {status}.
POST /admin/exchanges Create an exchange for an order · Create Exchange #
Ask an LLM
“How do I start an exchange for a customer's order?”
“Can I add a note to an exchange when I create it?”
Tell an agent
Create an exchange for order {order_id}.
Start an exchange for order {order_id} described as {description}.
GET /admin/exchanges/{id} Get an exchange · Get an Exchange #
Ask an LLM
“What items and shipping are included in a specific exchange?”
“Can I look up one exchange by its ID?”
Tell an agent
Get exchange {id}.
Show the items and shipping in exchange {id}.
POST /admin/exchanges/{id}/cancel Cancel an exchange and its return · Cancel an Exchange #
Ask an LLM
“How do I cancel an exchange request before it's confirmed?”
“Can I stop an exchange and its return without notifying the customer?”
Tell an agent destructive · confirm first
Cancel exchange {id}.
Cancel exchange {id} and its return without notifying the customer.
POST /admin/exchanges/{id}/inbound/items Add return items to an exchange · Add Inbound Items to an Exchange #
Ask an LLM
“How do I add the items a customer is returning to an exchange?”
“Can I list the return items already on an exchange?”
Tell an agent
Add items {items} to exchange {id}.
Record the customer's return for exchange {id}.
POST /admin/exchanges/{id}/inbound/items/{action_id} Update a return item in an exchange · Update an Inbount Item of an Exchange #
Ask an LLM
“Can I change the quantity of a return item in an exchange?”
“How do I note why a returned item was sent back?”
Tell an agent
Set the quantity of return item {action_id} in exchange {id} to {quantity}.
Note {internal_note} on return item {action_id} of exchange {id}.
DELETE /admin/exchanges/{id}/inbound/items/{action_id} Remove a return item from an exchange · Remove Inbound Item from Exchange #
Ask an LLM
“How do I remove a returned item from an exchange?”
“Can I delete a return item action from an exchange?”
Tell an agent destructive · confirm first
Remove return item {action_id} from exchange {id}.
Delete the return item action {action_id} on exchange {id}.
POST /admin/exchanges/{id}/inbound/shipping-method Add a return shipping method to an exchange · Add an Inbound Shipping Method to an Exchange #
Ask an LLM
“How do I add a shipping method for the items being returned in an exchange?”
“Can I set a custom price on the return shipping?”
Tell an agent
Add return shipping method {shipping_option_id} to exchange {id}.
Set custom return shipping amount {custom_amount} on exchange {id}.
POST /admin/exchanges/{id}/inbound/shipping-method/{action_id} Set the return shipping method on an exchange · Update Inbound Shipping Method of an Exchange #
Ask an LLM
“How do I change the return shipping method for an exchange?”
“Can I set a custom amount on the return shipping?”
Tell an agent
Set the return shipping method action {action_id} on exchange {id}.
Apply return shipping action {action_id} to exchange {id} with note {note}.
DELETE /admin/exchanges/{id}/inbound/shipping-method/{action_id} Remove a return shipping method from an exchange · Remove Inbound Shipping Method from Exchange #
Ask an LLM
“How do I remove the shipping method used to return items?”
“Can I delete the return shipping action from an exchange?”
Tell an agent destructive · confirm first
Remove return shipping method {action_id} from exchange {id}.
Delete the return shipping action {action_id} on exchange {id}.
POST /admin/exchanges/{id}/outbound/items Add new items to an exchange · Add Outbound Items to Exchange #
Ask an LLM
“How do I add the replacement items to an exchange?”
“Can I add several new items to an exchange at once?”
Tell an agent
Add new items {items} to exchange {id}.
Add replacement items to exchange {id}.
POST /admin/exchanges/{id}/outbound/items/{action_id} Update a new item in an exchange · Update Outbound Item of an Exchange #
Ask an LLM
“Can I change the quantity of a replacement item in an exchange?”
“How do I add a note to a new item on an exchange?”
Tell an agent
Set the quantity of new item {action_id} in exchange {id} to {quantity}.
Note {internal_note} on new item {action_id} of exchange {id}.
DELETE /admin/exchanges/{id}/outbound/items/{action_id} Remove a new item from an exchange · Remove Outbound Item from Exchange #
Ask an LLM
“How do I remove a replacement item from an exchange?”
“Can I delete a new item action from an exchange?”
Tell an agent destructive · confirm first
Remove new item {action_id} from exchange {id}.
Delete the new item action {action_id} on exchange {id}.
POST /admin/exchanges/{id}/outbound/shipping-method Add a shipping method for new items · Add Outbound Shipping Method to Exchange #
Ask an LLM
“How do I add a shipping method for the replacement items in an exchange?”
“Can I set a custom price on the new item shipping?”
Tell an agent
Add new item shipping method {shipping_option_id} to exchange {id}.
Set custom new item shipping amount {custom_amount} on exchange {id}.
POST /admin/exchanges/{id}/outbound/shipping-method/{action_id} Set the delivery shipping method on an exchange · Update Outbound Shipping Method of Exchange #
Ask an LLM
“How do I change the delivery shipping method for the replacement items in an exchange?”
“Can I set a custom amount on the outbound shipping?”
Tell an agent
Set delivery shipping action {action_id} on exchange {id}.
Apply outbound shipping action {action_id} to exchange {id} with note {note}.
DELETE /admin/exchanges/{id}/outbound/shipping-method/{action_id} Remove the outbound delivery shipping method · Remove Outbound Shipping Method from Exchange #
Ask an LLM
“How do I remove the shipping method for the replacement items?”
“Can I take a delivery shipping method off an exchange without cancelling it?”
Tell an agent destructive · confirm first
Remove delivery shipping action {action_id} from exchange {id}.
Delete outbound shipping method {action_id} on exchange {id}.
POST /admin/exchanges/{id}/request Confirm an exchange · Confirm an Exchange #
Ask an LLM
“How do I confirm an exchange and apply it to the order?”
“What happens to the order when an exchange is confirmed?”
Tell an agent
Confirm exchange {id}.
Apply the changes of exchange {id} to the order.
DELETE /admin/exchanges/{id}/request Cancel an exchange request · Cancel Exchange Request #
Ask an LLM
“How do I cancel an exchange request a customer submitted?”
“Can I reject an exchange request before any items are shipped?”
Tell an agent destructive · confirm first
Cancel exchange request {id}.
Reject the pending exchange {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-exchanges-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-exchanges-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2.19.0
  title: Medusa Admin Exchanges API
  license:
    name: MIT
    url: https://github.com/medusajs/medusa/blob/develop/LICENSE
  description: 'An exchange is the replacement of an item that the customer ordered with another.


    These API routes allow admin users to create and manage exchanges.'
servers:
- url: http://localhost:9000
- url: https://api.medusajs.com
tags:


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