Medusa Orders API

An order is a purchase made by a customer through a storefront. Orders can also originally be created as draft orders. These API routes allow admin users to view and manage orders.

GitHub OpenAPI
Business capability
Order Fulfilment Management BC-520.40

Operations 26

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/orders List orders · List Orders #
Ask an LLM
“Which orders have been placed in a given region?”
“Can I list orders placed by one customer?”
Tell an agent
List orders in region {region_id}.
Show orders placed by customer {customer_id}.
POST /admin/orders/export Export orders to CSV · Export Orders #
Ask an LLM
“How do I export all orders to a CSV file?”
“Can I export only orders from one sales channel?”
Tell an agent
Export orders from sales channel {sales_channel_id} to CSV.
Start an order export for customer {customer_id}.
GET /admin/orders/{id} Get an order · Get an Order #
Ask an LLM
“What are the details of one order?”
“Can I look up an order by its ID?”
Tell an agent
Get order {id}.
Show the details of order {id}.
POST /admin/orders/{id} Update an order · Update Order #
Ask an LLM
“Can I change the shipping address on an order?”
“Does updating an order's billing address recalculate taxes?”
Tell an agent
Set the shipping address of order {id} to {shipping_address}.
Change the email on order {id} to {email}.
POST /admin/orders/{id}/archive Archive an order · Archive an Order #
Ask an LLM
“How do I archive an order?”
“Can I archive an order without deleting it?”
Tell an agent destructive · confirm first
Archive order {id}.
Mark order {id} as archived.
POST /admin/orders/{id}/cancel Cancel an order · Cancel Order #
Ask an LLM
“Can I cancel an order that has already been paid?”
“Why would an order cancelation fail?”
Tell an agent destructive · confirm first
Cancel order {id}.
Cancel order {id} and send no notification.
GET /admin/orders/{id}/changes List changes made to an order · List Changes on an Order #
Ask an LLM
“What changes have been made to an order over time?”
“Can I see the return and exchange history on an order?”
Tell an agent
List changes made to order {id}.
Show changes on order {id} of type {change_type}.
POST /admin/orders/{id}/complete Mark an order as completed · Complete Order #
Ask an LLM
“How do I mark an order as completed?”
“Can I pass extra data when completing an order?”
Tell an agent
Mark order {id} as completed.
Complete order {id} with additional data {additional_data}.
POST /admin/orders/{id}/credit-lines Add a credit line to an order · Create Credit Line for Order #
Ask an LLM
“How do I give a customer a credit on an order?”
“Can I credit an order against a specific reference?”
Tell an agent
Add a credit line of {amount} to order {id} referencing {reference} {reference_id}.
Give customer a {amount} credit on order {id}.
POST /admin/orders/{id}/fulfillments Create a fulfillment for an order · Create an Order Fulfillment #
Ask an LLM
“How do I fulfill the items in an order?”
“Can I fulfill an order from a specific warehouse location?”
Tell an agent
Fulfill items {items} of order {id} from location {location_id}.
Create a fulfillment for order {id} and notify the customer.
POST /admin/orders/{id}/fulfillments/{fulfillment_id}/cancel Cancel an order fulfillment · Cancel Fulfillment #
Ask an LLM
“Can I cancel a fulfillment that has already shipped?”
“How do I cancel an order fulfillment?”
Tell an agent destructive · confirm first
Cancel fulfillment {fulfillment_id} of order {id}.
Cancel fulfillment {fulfillment_id} on order {id} without notifying the customer.
POST /admin/orders/{id}/fulfillments/{fulfillment_id}/mark-as-delivered Mark an order fulfillment as delivered · Mark a Fulfillment as Delivered #
Ask an LLM
“How do I mark an order fulfillment as delivered?”
“Can I mark a fulfillment delivered without notifying the customer?”
Tell an agent
Mark fulfillment {fulfillment_id} of order {id} as delivered.
Mark fulfillment {fulfillment_id} on order {id} as delivered without notifying the customer.
POST /admin/orders/{id}/fulfillments/{fulfillment_id}/shipments Create a shipment for an order fulfillment · Create Shipment for an Order's Fulfillment #
Ask an LLM
“How do I ship items from an order fulfillment?”
“Can I create shipment labels for an order fulfillment?”
Tell an agent
Create shipments for items {items} in fulfillment {fulfillment_id} of order {id}.
Ship fulfillment {fulfillment_id} of order {id} with labels {labels}.
GET /admin/orders/{id}/line-items List an order's line items · List Line Items #
Ask an LLM
“Which products are in an order?”
“Can I list only the line items of one item?”
Tell an agent
List the line items in order {id}.
Show line item {item_id} of order {id}.
POST /admin/orders/{id}/payment-sessions/authorize Authorize a payment session for an order · Authorize Payment Session #
Ask an LLM
“How do I authorize a payment session on an order?”
“Can I pay an order created from a draft order?”
Tell an agent
Authorize payment session {payment_session_id} on order {id}.
Pay order {id} using payment session {payment_session_id}.
GET /admin/orders/{id}/preview Preview an order edit · Get Preview #
Ask an LLM
“Can I preview what an order would look like after an edit?”
“What does a draft order change look like before it's saved?”
Tell an agent
Preview the changes on order {id}.
Show a draft edit of order {id}.
GET /admin/orders/{id}/shipping-options List shipping options for an order · List Shipping Options for Order #
Ask an LLM
“Which shipping options can I use for an order?”
“Can I see the shipping options available for an order's exchanges?”
Tell an agent
List shipping options for order {id}.
Show the outbound shipping options for order {id}.
POST /admin/orders/{id}/transfer Request to transfer an order to another customer · Request Order Transfer #
Ask an LLM
“How do I transfer an order to a different customer?”
“Can I send a note explaining why an order is being transferred?”
Tell an agent
Transfer order {id} to customer {customer_id}.
Request to transfer order {id} to {customer_id} with note {internal_note}.
POST /admin/orders/{id}/transfer/cancel Cancel an order transfer request · Cancel Transfer Request #
Ask an LLM
“How do I cancel a transfer request for an order?”
“Can I stop an order transfer before it's accepted?”
Tell an agent destructive · confirm first
Cancel the transfer request for order {id}.
Withdraw the transfer of order {id}.
POST /admin/orders/{id}/transfer/guest Transfer an order to a guest customer · Transfer Order to Guest Customer #
Ask an LLM
“How do I transfer an order to a guest customer?”
“Can I fix a wrong order email by transferring it to a guest?”
Tell an agent
Transfer order {id} to guest customer {email}.
Fix the order email on {id} by transferring it to guest {email}.
GET /store/orders List the logged-in customer's orders · List Logged-in Customer's Orders #
Ask an LLM
“Which orders have I placed as the logged-in customer?”
“Can I filter my own orders by status?”
Tell an agent
List my orders.
Show my orders with status {status}.
GET /store/orders/{id} Retrieve a storefront order for confirmation · Get an Order #
Ask an LLM
“Can a guest customer see their order confirmation page?”
“How do I fetch a placed order on the storefront using its ID?”
Tell an agent
Fetch storefront order {id} for the confirmation page using publishable key {api_key}.
Load storefront order {id} with locale {locale} and key {api_key}.
POST /store/orders/{id}/transfer/accept Accept an order transfer · Accept Order Transfer #
Ask an LLM
“How does a customer accept an order transfer to their account?”
“What token do I need to accept an order transfer?”
Tell an agent
Accept order {id} transfer with token {token}.
Confirm the transfer of order {id} using {token}.
POST /store/orders/{id}/transfer/cancel Cancel an order transfer · Cancel Order Transfer #
Ask an LLM
“Can I cancel an order transfer I requested?”
“What happens to an order transfer when I cancel it?”
Tell an agent destructive · confirm first
Cancel the order transfer for {id}.
Withdraw my request to transfer order {id}.
POST /store/orders/{id}/transfer/decline Decline an order transfer · Decline Order Transfer #
Ask an LLM
“How does an admin decline an order transfer request?”
“Can I turn down an order transfer with a token?”
Tell an agent destructive · confirm first
Decline the order transfer for {id} with token {token}.
Turn down the transfer request on order {id} using {token}.
POST /store/orders/{id}/transfer/request Request an order transfer · Request Order Transfer #
Ask an LLM
“How do I transfer an order to another customer's account?”
“Can I update the order's email when requesting a transfer?”
Tell an agent
Request a transfer of order {id}.
Transfer order {id} to another customer, updating the email to {update_order_email}.

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