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