---
displayed_sidebar: modules
---

import ParameterTypes from "@site/src/components/ParameterTypes"

# DraftOrder

A draft order is created by an admin without direct involvement of the customer. Once its payment is marked as captured, it is transformed into an order.

## constructor

A draft order is created by an admin without direct involvement of the customer. Once its payment is marked as captured, it is transformed into an order.

___

## Methods

### beforeInsert

#### Returns

<ParameterTypes parameters={[
  {
    "name": "Promise",
    "type": "Promise&#60;void&#62;",
    "optional": false,
    "defaultValue": "",
    "description": "",
    "expandable": false,
    "children": []
  }
]} />
