1 type: object
2 description: The details of the items to add to a draft order.
3 x-schemaName: AdminAddDraftOrderItems
4 properties:
5 items:
6 type: array
7 description: The items to add to the draft order.
8 items:
9 type: object
10 description: The item's details
11 required:
12 - quantity
13 properties:
14 quantity:
15 type: number
16 title: quantity
17 description: The item's quantity.
18 variant_id:
19 type: string
20 title: variant_id
21 description: The ID of the variant to add to the draft order.
22 title:
23 type: string
24 title: title
25 description: The item's title.
26 unit_price:
27 type: number
28 title: unit_price
29 description: The item's unit price.
30 compare_at_unit_price:
31 type: number
32 title: compare_at_unit_price
33 description: The original price of the item before a promotion or sale.
34 internal_note:
35 type: string
36 title: internal_note
37 description: A note viewed only by admin users about the item.
38 allow_backorder:
39 type: boolean
40 title: allow_backorder
41 description: Whether the item can be purchased if it's out of stock.
42 metadata:
43 type: object
44 description: The item's metadata, can hold custom key-value pairs.
45 externalDocs:
46 url: https://docs.medusajs.com/api/admin#manage-metadata
47 description: Learn how to manage metadata