Raw
1 type: object
2 description: The item's details.
3 x-schemaName: AdminOrderLineItem
4 required:
5 - title
6 - id
7 - metadata
8 - created_at
9 - updated_at
10 - item_total
11 - item_subtotal
12 - item_tax_total
13 - original_total
14 - original_subtotal
15 - original_tax_total
16 - total
17 - subtotal
18 - tax_total
19 - discount_total
20 - discount_tax_total
21 - subtitle
22 - thumbnail
23 - variant_id
24 - product_id
25 - product_title
26 - product_description
27 - product_subtitle
28 - product_type_id
29 - product_type
30 - product_collection
31 - product_handle
32 - variant_sku
33 - variant_barcode
34 - variant_title
35 - variant_option_values
36 - requires_shipping
37 - is_discountable
38 - is_tax_inclusive
39 - unit_price
40 - quantity
41 - detail
42 - refundable_total
43 - refundable_total_per_unit
44 properties:
45 id:
46 type: string
47 title: id
48 description: The item's ID.
49 title:
50 type: string
51 title: title
52 description: The item's title.
53 subtitle:
54 type: string
55 title: subtitle
56 description: The item's subtitle.
57 thumbnail:
58 type: string
59 title: thumbnail
60 description: The URL of the item's thumbnail.
61 variant:
62 $ref: ./AdminProductVariant.yaml
63 variant_id:
64 type: string
65 title: variant_id
66 description: The ID of the associated variant.
67 product:
68 $ref: ./AdminProduct.yaml
69 product_id:
70 type: string
71 title: product_id
72 description: The ID of the associated product.
73 product_title:
74 type: string
75 title: product_title
76 description: The item's product title.
77 product_description:
78 type: string
79 title: product_description
80 description: The item's product description.
81 product_subtitle:
82 type: string
83 title: product_subtitle
84 description: The item's product subtitle.
85 product_type:
86 type: string
87 title: product_type
88 description: The item's product type.
89 product_collection:
90 type: string
91 title: product_collection
92 description: The ID of the collection the item's product belongs to.
93 product_handle:
94 type: string
95 title: product_handle
96 description: The item's product handle.
97 variant_sku:
98 type: string
99 title: variant_sku
100 description: The item's variant SKU.
101 variant_barcode:
102 type: string
103 title: variant_barcode
104 description: The item's variant barcode.
105 variant_title:
106 type: string
107 title: variant_title
108 description: The item's variant title.
109 variant_option_values:
110 type: object
111 description: The values of the item variant's options.
112 example:
113 Color: Blue
114 requires_shipping:
115 type: boolean
116 title: requires_shipping
117 description: Whether the item requires shipping.
118 is_discountable:
119 type: boolean
120 title: is_discountable
121 description: Whether the item is discountable.
122 is_tax_inclusive:
123 type: boolean
124 title: is_tax_inclusive
125 description: Whether the item is tax inclusive.
126 compare_at_unit_price:
127 type: number
128 title: compare_at_unit_price
129 description: The original price of the item before a promotion or sale.
130 unit_price:
131 type: number
132 title: unit_price
133 description: The item's unit price.
134 quantity:
135 type: number
136 title: quantity
137 description: The item's quantity.
138 tax_lines:
139 type: array
140 description: The item's tax lines.
141 items:
142 $ref: ./BaseOrderLineItemTaxLine.yaml
143 adjustments:
144 type: array
145 description: The item's adjustments.
146 items:
147 $ref: ./BaseOrderLineItemAdjustment.yaml
148 detail:
149 type: object
150 created_at:
151 type: string
152 format: date-time
153 title: created_at
154 description: The date the item was created.
155 updated_at:
156 type: string
157 format: date-time
158 title: updated_at
159 description: The date the item was updated.
160 metadata:
161 type: object
162 description: The item's metadata, can hold custom key-value pairs.
163 externalDocs:
164 url: https://docs.medusajs.com/api/admin#manage-metadata
165 description: Learn how to manage metadata
166 original_total:
167 type: number
168 title: original_total
169 description: The item's total including taxes, excluding promotions.
170 original_subtotal:
171 type: number
172 title: original_subtotal
173 description: The item's total excluding taxes, including promotions.
174 original_tax_total:
175 type: number
176 title: original_tax_total
177 description: The total taxes of the item, excluding promotions.
178 item_total:
179 type: number
180 title: item_total
181 description: The total taxes of the item, including promotions.
182 item_subtotal:
183 type: number
184 title: item_subtotal
185 description: The item's total excluding taxes, including promotions.
186 item_tax_total:
187 type: number
188 title: item_tax_total
189 description: The total taxes of the item, including promotions.
190 total:
191 type: number
192 title: total
193 description: The item's total, including taxes and promotions.
194 subtotal:
195 type: number
196 title: subtotal
197 description: The item's subtotal excluding taxes, including promotions.
198 tax_total:
199 type: number
200 title: tax_total
201 description: The tax total of the item including promotions.
202 discount_total:
203 type: number
204 title: discount_total
205 description: The total discount amount of the item.
206 discount_tax_total:
207 type: number
208 title: discount_tax_total
209 description: The total taxes applied on the discounted amount.
210 refundable_total:
211 type: number
212 title: refundable_total
213 description: The total refundable amount of the item's total.
214 refundable_total_per_unit:
215 type: number
216 title: refundable_total_per_unit
217 description: The total refundable amount of the item's total for a single quantity.
218 product_type_id:
219 type: string
220 title: product_type_id
221 description: The ID of the associated product's type.