1 type: object
2 description: The item's items.
3 x-schemaName: BaseOrderLineItem
4 required:
5 - id
6 - title
7 - subtitle
8 - thumbnail
9 - variant_id
10 - product_id
11 - product_title
12 - product_description
13 - product_subtitle
14 - product_type_id
15 - product_type
16 - product_collection
17 - product_handle
18 - variant_sku
19 - variant_barcode
20 - variant_title
21 - variant_option_values
22 - requires_shipping
23 - is_discountable
24 - is_tax_inclusive
25 - unit_price
26 - quantity
27 - detail
28 - created_at
29 - updated_at
30 - metadata
31 - original_total
32 - original_subtotal
33 - original_tax_total
34 - item_total
35 - item_subtotal
36 - item_tax_total
37 - total
38 - subtotal
39 - tax_total
40 - discount_total
41 - discount_tax_total
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: ./BaseProductVariant.yaml
63 variant_id:
64 type: string
65 title: variant_id
66 description: The ID of the associated variant.
67 product:
68 $ref: ./BaseProduct.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 $ref: ./BaseOrderItemDetail.yaml
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/store#manage-metadata
165 description: Learn how to manage metadata
166 original_total:
167 type: number
168 title: original_total
169 description: The line item's original total before discounts, including taxes.
170 original_subtotal:
171 type: number
172 title: original_subtotal
173 description: The line item's original subtotal before discounts, excluding taxes.
174 original_tax_total:
175 type: number
176 title: original_tax_total
177 description: The line item's original tax total before discounts.
178 item_total:
179 type: number
180 title: item_total
181 description: The line item's total after discounts, including taxes.
182 item_subtotal:
183 type: number
184 title: item_subtotal
185 description: The line item's subtotal before discounts, excluding taxes.
186 item_tax_total:
187 type: number
188 title: item_tax_total
189 description: The line item's tax total after discounts.
190 total:
191 type: number
192 title: total
193 description: The line item's total after discounts, including taxes.
194 subtotal:
195 type: number
196 title: subtotal
197 description: The line item's subtotal before discounts, excluding taxes.
198 tax_total:
199 type: number
200 title: tax_total
201 description: The line item's tax total after discounts.
202 discount_total:
203 type: number
204 title: discount_total
205 description: >-
206 The total amount of discounts applied to the line item, including the tax
207 portion of discounts.
208 discount_tax_total:
209 type: number
210 title: discount_tax_total
211 description: >-
212 The total amount of discounts applied to the line item's tax. Represents
213 the tax portion of discounts.
214 refundable_total:
215 type: number
216 title: refundable_total
217 description: The total refundable amount of the item's total.
218 refundable_total_per_unit:
219 type: number
220 title: refundable_total_per_unit
221 description: The total refundable amount of the item's total for a single quantity.
222 product_type_id:
223 type: string
224 title: product_type_id
225 description: The ID of the associated product's type.