--- displayed_sidebar: entitiesSidebar slug: /references/entities/classes/DraftOrder --- 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. ## Properties `","description":"An optional key-value map with additional details","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"idempotency_key","type":"`string`","description":"Randomly generated key used to continue the completion of the cart associated with the draft order in case of failure.","optional":false,"defaultValue":"","expandable":false,"children":[]}]} expandUrl="https://docs.medusajs.com/development/entities/repositories#retrieving-a-list-of-records" sectionTitle="DraftOrder"/>