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