Medusa Order Edits API

An order edit is a change to an order's details, such as items, shipping methods, and more. Changes made by an order edit are only applied on the order once they're confirmed. The order's previous version is retained due to versioning. These API routes allow admin users to make edits to an order and manage those edits.

GitHub OpenAPI

Operations 11

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

POST /admin/order-edits Create an order edit · Create Order Edit #
Ask an LLM
“How do I start editing an order without changing it yet?”
“Can I add a note and metadata when creating an order edit?”
Tell an agent
Create an edit on order {order_id}.
Start an edit on order {order_id} described as {description}.
DELETE /admin/order-edits/{id} Cancel an order edit · Cancel Order Edit #
Ask an LLM
“How do I cancel an order edit request before it's confirmed?”
“Can I withdraw an edit I requested on an order?”
Tell an agent destructive · confirm first
Cancel order edit {id}.
Withdraw the edit request {id} on the order.
POST /admin/order-edits/{id}/confirm Confirm an order edit · Confirm Order Edit #
Ask an LLM
“How do I apply the changes in an order edit to the order?”
“What happens to the order's previous version when an edit is confirmed?”
Tell an agent
Confirm order edit {id} and apply its changes.
Apply the changes in edit {id} to the order.
POST /admin/order-edits/{id}/items Add new items to an order edit · Add Items to Order Edit #
Ask an LLM
“How do I add a new product to an order edit?”
“Can I add several items to an edit in one request?”
Tell an agent
Add items {items} to order edit {id}.
Include new products {items} in edit {id}.
POST /admin/order-edits/{id}/items/item/{item_id} Change an item's quantity in an edit · Update Order Item Quantity of Order Edit #
Ask an LLM
“How do I change the quantity of an item in an order edit?”
“Can I remove an item from an edit by setting its quantity to zero?”
Tell an agent
Set item {item_id} in edit {id} to quantity {quantity}.
Change the quantity of item {item_id} in edit {id} to {quantity}.
POST /admin/order-edits/{id}/items/{action_id} Update an added item in an edit · Update an Item in an Order Edit #
Ask an LLM
“How do I change the quantity of an item I added to an order edit?”
“Can I adjust the price of an item already added to an edit?”
Tell an agent
Update added item {action_id} in edit {id} to quantity {quantity}.
Change the price of item {action_id} in edit {id} to {unit_price}.
DELETE /admin/order-edits/{id}/items/{action_id} Remove an added item from an edit · Remove Item from Order Edit #
Ask an LLM
“How do I remove an item I added to an order edit?”
“Can I delete an item from an edit by its add action ID?”
Tell an agent destructive · confirm first
Remove added item {action_id} from order edit {id}.
Delete item {action_id} in edit {id}.
POST /admin/order-edits/{id}/request Request an order edit · Request Order Edit #
Ask an LLM
“How do I send an order edit request to the customer?”
“Can I skip customer notifications when requesting an edit?”
Tell an agent
Request order edit {id}.
Send edit {id} to the customer, no notification: {no_notification}.
POST /admin/order-edits/{id}/shipping-method Add a shipping method to an order edit · Add Shipping Method to Order Edit #
Ask an LLM
“How do I add a new shipping option to an order edit?”
“Can I set a custom price on a shipping method in an edit?”
Tell an agent
Add shipping option {shipping_option_id} to order edit {id}.
Include shipping option {shipping_option_id} in edit {id} priced at {custom_amount}.
POST /admin/order-edits/{id}/shipping-method/{action_id} Update a shipping method in an edit · Update Shipping Method of an Order Edit #
Ask an LLM
“How do I change the price of a shipping method in an order edit?”
“Can I edit a shipping method by its add action ID?”
Tell an agent
Update shipping method {action_id} in edit {id} to {custom_amount}.
Change the shipping price of method {action_id} in edit {id} to {custom_amount}.
DELETE /admin/order-edits/{id}/shipping-method/{action_id} Remove a shipping method from an order edit · Remove Shipping Method from Order Edit #
Ask an LLM
“How do I remove a shipping method from an order edit?”
“Can I delete a shipping method by its add action ID?”
Tell an agent destructive · confirm first
Remove shipping method {action_id} from order edit {id}.
Delete shipping method {action_id} in edit {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-order-edits-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-order-edits-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2.19.0
  title: Medusa Admin Order Edits API
  license:
    name: MIT
    url: https://github.com/medusajs/medusa/blob/develop/LICENSE
  description: 'An order edit is a change to an order''s details, such as items, shipping methods, and more.


    Changes made by an order edit are only applied on the order once they''re confirmed.


    The order''s previous version is retained due to versioning.


    These API routes allow admin users to make edits to an order and manage those edits.'
servers:
- url: http://localhost:9000
- url: https://api.medusajs.com
tags:


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