Medusa · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Medusa Admin Exchanges API

19 actions 19 updates phrasing extends openapi/medusa-exchanges-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for Medusa's API. It is a proposal applied on top of the contract, not a document Medusa publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 19 · first 16 shown; the file carries all of them

$.info
$.paths['/admin/exchanges'].get
$.paths['/admin/exchanges'].post
$.paths['/admin/exchanges/{id}'].get
$.paths['/admin/exchanges/{id}/cancel'].post
$.paths['/admin/exchanges/{id}/inbound/items'].post
$.paths['/admin/exchanges/{id}/inbound/items/{action_id}'].post
$.paths['/admin/exchanges/{id}/inbound/items/{action_id}'].delete
$.paths['/admin/exchanges/{id}/inbound/shipping-method'].post
$.paths['/admin/exchanges/{id}/inbound/shipping-method/{action_id}'].post
$.paths['/admin/exchanges/{id}/inbound/shipping-method/{action_id}'].delete
$.paths['/admin/exchanges/{id}/outbound/items'].post
$.paths['/admin/exchanges/{id}/outbound/items/{action_id}'].post
$.paths['/admin/exchanges/{id}/outbound/items/{action_id}'].delete
$.paths['/admin/exchanges/{id}/outbound/shipping-method'].post
$.paths['/admin/exchanges/{id}/outbound/shipping-method/{action_id}'].post

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for Medusa Admin Exchanges API
  version: 1.0.0
extends: openapi/medusa-exchanges-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-26'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 18
- target: $.paths['/admin/exchanges'].get
  update:
    x-apievangelist-phrasing:
      intent: List exchanges
      effect: read
      questions:
      - Which exchanges have been created for a given order?
      - Can I list exchanges that were cancelled?
      instructions:
      - text: List exchanges for order {order_id}.
        slots:
          order_id: query.order_id
      - text: Show exchanges with status {status}.
        slots:
          status: query.status
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/exchanges'].post
  update:
    x-apievangelist-phrasing:
      intent: Create an exchange for an order
      effect: write
      questions:
      - How do I start an exchange for a customer's order?
      - Can I add a note to an exchange when I create it?
      instructions:
      - text: Create an exchange for order {order_id}.
        slots:
          order_id: requestBody.order_id
      - text: Start an exchange for order {order_id} described as {description}.
        slots:
          order_id: requestBody.order_id
          description: requestBody.description
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/exchanges/{id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get an exchange
      effect: read
      questions:
      - What items and shipping are included in a specific exchange?
      - Can I look up one exchange by its ID?
      instructions:
      - text: Get exchange {id}.
        slots:
          id: path.id
      - text: Show the items and shipping in exchange {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/exchanges/{id}/cancel'].post
  update:
    x-apievangelist-phrasing:
      intent: Cancel an exchange and its return
      effect: destructive
      questions:
      - How do I cancel an exchange request before it's confirmed?
      - Can I stop an exchange and its return without notifying the customer?
      instructions:
      - text: Cancel exchange {id}.
        slots:
          id: path.id
      - text: Cancel exchange {id} and its return without notifying the customer.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/exchanges/{id}/inbound/items'].post
  update:
    x-apievangelist-phrasing:
      intent: Add return items to an exchange
      effect: write
      questions:
      - How do I add the items a customer is returning to an exchange?
      - Can I list the return items already on an exchange?
      instructions:
      - text: Add items {items} to exchange {id}.
        slots:
          items: requestBody.items
          id: path.id
      - text: Record the customer's return for exchange {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/exchanges/{id}/inbound/items/{action_id}'].post
  update:
    x-apievangelist-phrasing:
      intent: Update a return item in an exchange
      effect: write
      questions:
      - Can I change the quantity of a return item in an exchange?
      - How do I note why a returned item was sent back?
      instructions:
      - text: Set the quantity of return item {action_id} in exchange {id} to {quantity}.
        slots:
          action_id: path.action_id
          id: path.id
          quantity: requestBody.quantity
      - text: Note {internal_note} on return item {action_id} of exchange {id}.
        slots:
          internal_note: requestBody.internal_note
          action_id: path.action_id
          id: path.id
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/exchanges/{id}/inbound/items/{action_id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Remove a return item from an exchange
      effect: destructive
      questions:
      - How do I remove a returned item from an exchange?
      - Can I delete a return item action from an exchange?
      instructions:
      - text: Remove return item {action_id} from exchange {id}.
        slots:
          action_id: path.action_id
          id: path.id
      - text: Delete the return item action {action_id} on exchange {id}.
        slots:
          action_id: path.action_id
          id: path.id
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/exchanges/{id}/inbound/shipping-method'].post
  update:
    x-apievangelist-phrasing:
      intent: Add a return shipping method to an exchange
      effect: write
      questions:
      - 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?
      instructions:
      - text: Add return shipping method {shipping_option_id} to exchange {id}.
        slots:
          shipping_option_id: requestBody.shipping_option_id
          id: path.id
      - text: Set custom return shipping amount {custom_amount} on exchange {id}.
        slots:
          custom_amount: requestBody.custom_amount
          id: path.id
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/exchanges/{id}/inbound/shipping-method/{action_id}'].post
  update:
    x-apievangelist-phrasing:
      intent: Set the return shipping method on an exchange
      effect: write
      questions:
      - How do I change the return shipping method for an exchange?
      - Can I set a custom amount on the return shipping?
      instructions:
      - text: Set the return shipping method action {action_id} on exchange {id}.
        slots:
          action_id: path.action_id
          id: path.id
      - text: Apply return shipping action {action_id} to exchange {id} with note {note}.
        slots:
          action_id: path.action_id
          id: path.id
          note: requestBody.internal_note
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/exchanges/{id}/inbound/shipping-method/{action_id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Remove a return shipping method from an exchange
      effect: destructive
      questions:
      - How do I remove the shipping method used to return items?
      - Can I delete the return shipping action from an exchange?
      instructions:
      - text: Remove return shipping method {action_id} from exchange {id}.
        slots:
          action_id: path.action_id
          id: path.id
      - text: Delete the return shipping action {action_id} on exchange {id}.
        slots:
          action_id: path.action_id
          id: path.id
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/exchanges/{id}/outbound/items'].post
  update:
    x-apievangelist-phrasing:
      intent: Add new items to an exchange
      effect: write
      questions:
      - How do I add the replacement items to an exchange?
      - Can I add several new items to an exchange at once?
      instructions:
      - text: Add new items {items} to exchange {id}.
        slots:
          items: requestBody.items
          id: path.id
      - text: Add replacement items to exchange {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/exchanges/{id}/outbound/items/{action_id}'].post
  update:
    x-apievangelist-phrasing:
      intent: Update a new item in an exchange
      effect: write
      questions:
      - 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?
      instructions:
      - text: Set the quantity of new item {action_id} in exchange {id} to {quantity}.
        slots:
          action_id: path.action_id
          id: path.id
          quantity: requestBody.quantity
      - text: Note {internal_note} on new item {action_id} of exchange {id}.
        slots:
          internal_note: requestBody.internal_note
          action_id: path.action_id
          id: path.id
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/exchanges/{id}/outbound/items/{action_id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Remove a new item from an exchange
      effect: destructive
      questions:
      - How do I remove a replacement item from an exchange?
      - Can I delete a new item action from an exchange?
      instructions:
      - text: Remove new item {action_id} from exchange {id}.
        slots:
          action_id: path.action_id
          id: path.id
      - text: Delete the new item action {action_id} on exchange {id}.
        slots:
          action_id: path.action_id
          id: path.id
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/exchanges/{id}/outbound/shipping-method'].post
  update:
    x-apievangelist-phrasing:
      intent: Add a shipping method for new items
      effect: write
      questions:
      - 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?
      instructions:
      - text: Add new item shipping method {shipping_option_id} to exchange {id}.
        slots:
          shipping_option_id: requestBody.shipping_option_id
          id: path.id
      - text: Set custom new item shipping amount {custom_amount} on exchange {id}.
        slots:
          custom_amount: requestBody.custom_amount
          id: path.id
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/exchanges/{id}/outbound/shipping-method/{action_id}'].post
  update:
    x-apievangelist-phrasing:
      intent: Set the delivery shipping method on an exchange
      effect: write
      questions:
      - 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?
      instructions:
      - text: Set delivery shipping action {action_id} on exchange {id}.
        slots:
          action_id: path.action_id
          id: path.id
      - text: Apply outbound shipping action {action_id} to exchange {id} with note {note}.
        slots:
          action_id: path.action_id
          id: path.id
          note: requestBody.internal_note
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/exchanges/{id}/outbound/shipping-method/{action_id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Remove the outbound delivery shipping method
      effect: destructive
      questions:
      - How do I remove the shipping method for the replacement items?
      - Can I take a delivery shipping method off an exchange without cancelling it?
      instructions:
      - text: Remove delivery shipping action {action_id} from exchange {id}.
        slots:
          action_id: path.action_id
          id: path.id
      - text: Delete outbound shipping method {action_id} on exchange {id}.
        slots:
          action_id: path.action_id
          id: path.id
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/exchanges/{id}/request'].post
  update:
    x-apievangelist-phrasing:
      intent: Confirm an exchange
      effect: write
      questions:
      - How do I confirm an exchange and apply it to the order?
      - What happens to the order when an exchange is confirmed?
      instructions:
      - text: Confirm exchange {id}.
        slots:
          id: path.id
      - text: Apply the changes of exchange {id} to the order.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-26'
- target: $.paths['/admin/exchanges/{id}/request'].delete
  update:
    x-apievangelist-phrasing:
      intent: Cancel an exchange request
      effect: destructive
      questions:
      - How do I cancel an exchange request a customer submitted?
      - Can I reject an exchange request before any items are shipped?
      instructions:
      - text: Cancel exchange request {id}.
        slots:
          id: path.id
      - text: Reject the pending exchange {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-26'

Work with this as data

Every overlay 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 openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • 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 overlay
curl "https://apis.io/api/v1/overlays/medusa-exchanges-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?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.