Raw
1 type: object
2 description: The tax line's item.
3 x-schemaName: BaseCartLineItem
4 required:
5 - id
6 - title
7 - quantity
8 - requires_shipping
9 - is_discountable
10 - is_tax_inclusive
11 - unit_price
12 - cart
13 - cart_id
14 properties:
15 id:
16 type: string
17 title: id
18 description: The item's ID.
19 title:
20 type: string
21 title: title
22 description: The item's title.
23 subtitle:
24 type: string
25 title: subtitle
26 description: The item's subtitle.
27 thumbnail:
28 type: string
29 title: thumbnail
30 description: The item's thumbnail.
31 quantity:
32 type: number
33 title: quantity
34 description: The item's quantity.
35 product:
36 $ref: ./BaseProduct.yaml
37 product_id:
38 type: string
39 title: product_id
40 description: The item's product id.
41 product_title:
42 type: string
43 title: product_title
44 description: The item's product title.
45 product_description:
46 type: string
47 title: product_description
48 description: The item's product description.
49 product_subtitle:
50 type: string
51 title: product_subtitle
52 description: The item's product subtitle.
53 product_type:
54 type: string
55 title: product_type
56 description: The item's product type.
57 product_collection:
58 type: string
59 title: product_collection
60 description: The item's product collection.
61 product_handle:
62 type: string
63 title: product_handle
64 description: The item's product handle.
65 variant:
66 $ref: ./BaseProductVariant.yaml
67 variant_id:
68 type: string
69 title: variant_id
70 description: The item's variant id.
71 variant_sku:
72 type: string
73 title: variant_sku
74 description: The item's variant sku.
75 variant_barcode:
76 type: string
77 title: variant_barcode
78 description: The item's variant barcode.
79 variant_title:
80 type: string
81 title: variant_title
82 description: The item's variant title.
83 variant_option_values:
84 type: object
85 description: The item's variant option values.
86 requires_shipping:
87 type: boolean
88 title: requires_shipping
89 description: The item's requires shipping.
90 is_discountable:
91 type: boolean
92 title: is_discountable
93 description: The item's is discountable.
94 is_tax_inclusive:
95 type: boolean
96 title: is_tax_inclusive
97 description: The item's is tax inclusive.
98 compare_at_unit_price:
99 type: number
100 title: compare_at_unit_price
101 description: The item's compare at unit price.
102 unit_price:
103 type: number
104 title: unit_price
105 description: The item's unit price.
106 tax_lines:
107 type: array
108 description: The item's tax lines.
109 items:
110 type: object
111 adjustments:
112 type: array
113 description: The item's adjustments.
114 items:
115 $ref: ./BaseLineItemAdjustment.yaml
116 cart:
117 $ref: ./BaseCart.yaml
118 cart_id:
119 type: string
120 title: cart_id
121 description: The item's cart id.
122 metadata:
123 type: object
124 description: The item's metadata.
125 externalDocs:
126 url: https://docs.medusajs.com/api/store#manage-metadata
127 description: Learn how to manage metadata
128 created_at:
129 type: string
130 format: date-time
131 title: created_at
132 description: The item's created at.
133 updated_at:
134 type: string
135 format: date-time
136 title: updated_at
137 description: The item's updated at.
138 deleted_at:
139 type: string
140 format: date-time
141 title: deleted_at
142 description: The item's deleted at.
143 original_total:
144 type: number
145 title: original_total
146 description: The line item's original total before discounts, including taxes.
147 original_subtotal:
148 type: number
149 title: original_subtotal
150 description: The line item's original subtotal before discounts, excluding taxes.
151 original_tax_total:
152 type: number
153 title: original_tax_total
154 description: The line item's original tax total before discounts.
155 item_total:
156 type: number
157 title: item_total
158 description: The line item's total after discounts, including taxes.
159 item_subtotal:
160 type: number
161 title: item_subtotal
162 description: The line item's subtotal before discounts, excluding taxes.
163 item_tax_total:
164 type: number
165 title: item_tax_total
166 description: The line item's tax total after discounts.
167 total:
168 type: number
169 title: total
170 description: The line item's total after discounts, including taxes.
171 subtotal:
172 type: number
173 title: subtotal
174 description: The line item's subtotal before discounts, excluding taxes.
175 tax_total:
176 type: number
177 title: tax_total
178 description: The line item's tax total after discounts.
179 discount_total:
180 type: number
181 title: discount_total
182 description: >-
183 The total amount of discounts applied to the line item, including the tax
184 portion of discounts.
185 discount_tax_total:
186 type: number
187 title: discount_tax_total
188 description: >-
189 The total amount of discounts applied to the line item's tax. Represents
190 the tax portion of discounts.