# @medusajs/draft-order

> A draft order plugin for Medusa.

Latest version **2.21.2** (published 2026-09-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install @medusajs/draft-order
pnpm add @medusajs/draft-order
yarn add @medusajs/draft-order
bun add @medusajs/draft-order
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.21.2 |
| Published | 2026-09-28 |
| First published | 2025-03-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=20 |
| Dependencies | 13 |
| Unpacked size | 659.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 36632 |
| Author | Medusa |
| Maintainers | sebrindom, oliverjuhl, nicolas-gorga, sradevski, olijuhl, shahednasser |
| Keywords | medusa, plugin, medusa-plugin-other, medusa-plugin, medusa-v2 |

## Links

- npm: https://www.npmjs.com/package/@medusajs/draft-order
- Repository: https://github.com/medusajs/medusa
- Homepage: https://github.com/medusajs/medusa#readme
- Issues: https://github.com/medusajs/medusa/issues
- npm.io page: https://npm.io/package/@medusajs/draft-order

## Dependencies (13)

- [zod](https://npm.io/package/zod.md) 4.2.0
- [date-fns](https://npm.io/package/date-fns.md) ^3.6.0
- [radix-ui](https://npm.io/package/radix-ui.md) 1.1.2
- [match-sorter](https://npm.io/package/match-sorter.md) ^6.3.4
- [@ariakit/react](https://npm.io/package/@ariakit/react.md) ^0.4.15
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.26.10
- [lodash.isequal](https://npm.io/package/lodash.isequal.md) ^4.5.0
- [lodash.debounce](https://npm.io/package/lodash.debounce.md) ^4.0.8
- [react-hook-form](https://npm.io/package/react-hook-form.md) 7.83.0
- [@medusajs/js-sdk](https://npm.io/package/@medusajs/js-sdk.md) 2.21.2
- [@hookform/resolvers](https://npm.io/package/@hookform/resolvers.md) 5.5.7
- [@uiw/react-json-view](https://npm.io/package/@uiw/react-json-view.md) ^2.0.0-alpha.17
- [@tanstack/react-query](https://npm.io/package/@tanstack/react-query.md) 5.64.2

## Recent versions

- 2.21.2 (latest) — 2026-09-28
- 2.22.0-snapshot-20261008225942 (snapshot) — 2026-10-08
- 2.22.0-preview-20261002101246 (preview) — 2026-10-02
- 2.16.0-options-preview-20260605124754 (options-preview) — 2026-06-05
- 2.22.0-snapshot-20261008220405 — 2026-10-08
- 2.22.0-snapshot-20261008144129 — 2026-10-08
- 2.22.0-snapshot-20261006025321 — 2026-10-06
- 2.22.0-preview-20261002093930 — 2026-10-02
- 2.21.2-snapshot-20260928075521 — 2026-09-28
- 2.21.2-snapshot-20260925150426 — 2026-09-25
- 2.21.2-preview-20260925133948 — 2026-09-25
- 2.21.1 — 2026-09-22
- 2.21.1-preview-20260922104932 — 2026-09-22
- 2.21.1-preview-20260922093132 — 2026-09-22
- 2.21.1-preview-20260922080739 — 2026-09-22
- … 132 more at https://npm.io/package/@medusajs/draft-order/versions

## README

<p align="center">
  <a href="https://www.medusajs.com">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/59018053/229103275-b5e482bb-4601-46e6-8142-244f531cebdb.svg">
    <source media="(prefers-color-scheme: light)" srcset="https://user-images.githubusercontent.com/59018053/229103726-e5b529a3-9b3f-4970-8a1f-c6af37f087bf.svg">
    <img alt="Medusa logo" src="https://user-images.githubusercontent.com/59018053/229103726-e5b529a3-9b3f-4970-8a1f-c6af37f087bf.svg">
    </picture>
  </a>
</p>
<h1 align="center">
  Draft Order Plugin
</h1>

<h4 align="center">
  <a href="https://docs.medusajs.com">Documentation</a> |
  <a href="https://www.medusajs.com">Website</a>
</h4>

<p align="center">
  Create and manage draft orders on behalf of customers in Medusa
</p>
<p align="center">
  <a href="https://github.com/medusajs/medusa/blob/master/CONTRIBUTING.md">
    <img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat" alt="PRs welcome!" />
  </a>
    <a href="https://www.producthunt.com/posts/medusa"><img src="https://img.shields.io/badge/Product%20Hunt-%231%20Product%20of%20the%20Day-%23DA552E" alt="Product Hunt"></a>
  <a href="https://discord.gg/xpCwq3Kfn8">
    <img src="https://img.shields.io/badge/chat-on%20discord-7289DA.svg" alt="Discord Chat" />
  </a>
  <a href="https://twitter.com/intent/follow?screen_name=medusajs">
    <img src="https://img.shields.io/twitter/follow/medusajs.svg?label=Follow%20@medusajs" alt="Follow @medusajs" />
  </a>
</p>

## Overview

The Draft Order Plugin enables admin users to create and manage orders on behalf of customers. This is particularly useful for customer support scenarios or when customers place orders offline.

## Features

- **Create draft orders** from the Medusa Admin dashboard
- **Manage items** in draft orders (add, update, remove)
- **Add shipping methods** to draft orders
- **Associate customers** with draft orders
- **Convert draft orders** to regular orders for purchase completion


## Installation

1. Install the Draft Order plugin
```
yarn add @medusajs/draft-order
```
2. Configure the plugin in your medusa-config.ts
```
module.exports = defineConfig({
  projectConfig: {
    ...
  },
  plugins: [
    {
      resolve: "@medusajs/draft-order",
      options: {},
    },
  ],
})
```
3. Start your server
   
## Requirements
- Medusa application version >= 2.4.0

## Support

## Community & Contributions

The community and core team are available in [GitHub Discussions](https://github.com/medusajs/medusa/discussions), where you can ask for support, discuss roadmap, and share ideas.

Join our [Discord server](https://discord.com/invite/medusajs) to meet other community members.

## Other channels

- [GitHub Issues](https://github.com/medusajs/medusa/issues)
- [Twitter](https://twitter.com/medusajs)
- [LinkedIn](https://www.linkedin.com/company/medusajs)
- [Medusa Blog](https://medusajs.com/blog/)

---
_Source: https://npm.io/package/@medusajs/draft-order · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
