|
1
|
type: object |
|
2
|
description: The item's details. |
|
3
|
x-schemaName: StoreCartLineItem |
|
4
|
required: |
|
5
|
- cart |
|
6
|
- title |
|
7
|
- id |
|
8
|
- requires_shipping |
|
9
|
- is_discountable |
|
10
|
- is_tax_inclusive |
|
11
|
- unit_price |
|
12
|
- quantity |
|
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 URL. |
|
31
|
quantity: |
|
32
|
type: number |
|
33
|
title: quantity |
|
34
|
description: The item's quantity. |
|
35
|
product: |
|
36
|
$ref: ./StoreProduct.yaml |
|
37
|
product_id: |
|
38
|
type: string |
|
39
|
title: product_id |
|
40
|
description: The ID of the associated product. |
|
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 ID of the associated product's type. |
|
57
|
product_collection: |
|
58
|
type: string |
|
59
|
title: product_collection |
|
60
|
description: The ID of the associated product's collection. |
|
61
|
product_handle: |
|
62
|
type: string |
|
63
|
title: product_handle |
|
64
|
description: The item's product handle. |
|
65
|
variant: |
|
66
|
$ref: ./StoreProductVariant.yaml |
|
67
|
variant_id: |
|
68
|
type: string |
|
69
|
title: variant_id |
|
70
|
description: The ID of the associated product variant. |
|
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 associated variant's value for the product's options. |
|
86
|
example: |
|
87
|
Color: Red |
|
88
|
requires_shipping: |
|
89
|
type: boolean |
|
90
|
title: requires_shipping |
|
91
|
description: Whether the item requires shipping. |
|
92
|
is_discountable: |
|
93
|
type: boolean |
|
94
|
title: is_discountable |
|
95
|
description: Whether the item is discountable. |
|
96
|
is_tax_inclusive: |
|
97
|
type: boolean |
|
98
|
title: is_tax_inclusive |
|
99
|
description: Whether the item's price includes taxes. |
|
100
|
compare_at_unit_price: |
|
101
|
type: number |
|
102
|
title: compare_at_unit_price |
|
103
|
description: The original price of the item before a promotion or sale. |
|
104
|
unit_price: |
|
105
|
type: number |
|
106
|
title: unit_price |
|
107
|
description: The price of a single quantity of the item. |
|
108
|
tax_lines: |
|
109
|
type: array |
|
110
|
description: The item's tax lines. |
|
111
|
items: |
|
112
|
allOf: |
|
113
|
- $ref: ./BaseLineItemTaxLine.yaml |
|
114
|
- type: object |
|
115
|
description: The tax line's details. |
|
116
|
required: |
|
117
|
- item |
|
118
|
properties: |
|
119
|
item: |
|
120
|
type: object |
|
121
|
title: item |
|
122
|
description: The details of the item that the tax line belongs to. |
|
123
|
description: The tax line's details |
|
124
|
adjustments: |
|
125
|
type: array |
|
126
|
description: The item's adjustments. |
|
127
|
items: |
|
128
|
allOf: |
|
129
|
- $ref: ./BaseLineItemAdjustment.yaml |
|
130
|
- type: object |
|
131
|
description: The adjustment's details. |
|
132
|
required: |
|
133
|
- item |
|
134
|
properties: |
|
135
|
item: |
|
136
|
type: object |
|
137
|
title: item |
|
138
|
description: The details of the item that the adjustment belongs to. |
|
139
|
description: The adjustment's details. |
|
140
|
cart: |
|
141
|
type: object |
|
142
|
cart_id: |
|
143
|
type: string |
|
144
|
title: cart_id |
|
145
|
description: The ID of the cart that the line item belongs to. |
|
146
|
metadata: |
|
147
|
type: object |
|
148
|
description: The item's metadata, can hold custom key-value pairs. |
|
149
|
externalDocs: |
|
150
|
url: https://docs.medusajs.com/api/store#manage-metadata |
|
151
|
description: Learn how to manage metadata |
|
152
|
created_at: |
|
153
|
type: string |
|
154
|
title: created_at |
|
155
|
description: The date the item was created. |
|
156
|
format: date-time |
|
157
|
updated_at: |
|
158
|
type: string |
|
159
|
title: updated_at |
|
160
|
description: The date the item was updated. |
|
161
|
format: date-time |
|
162
|
deleted_at: |
|
163
|
type: string |
|
164
|
title: deleted_at |
|
165
|
description: The date the item was deleted. |
|
166
|
format: date-time |
|
167
|
original_total: |
|
168
|
type: number |
|
169
|
title: original_total |
|
170
|
description: >- |
|
171
|
The line item's original total before discounts, including taxes. This |
|
172
|
field is only available if you expand the `items.*` relation. Learn more |
|
173
|
in the [Cart |
|
174
|
Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-cart-item-totals) |
|
175
|
guide. |
|
176
|
original_subtotal: |
|
177
|
type: number |
|
178
|
title: original_subtotal |
|
179
|
description: >- |
|
180
|
The line item's original subtotal before discounts, excluding taxes. This |
|
181
|
field is only available if you expand the `items.*` relation. Learn more |
|
182
|
in the [Cart |
|
183
|
Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-cart-item-totals) |
|
184
|
guide. |
|
185
|
original_tax_total: |
|
186
|
type: number |
|
187
|
title: original_tax_total |
|
188
|
description: >- |
|
189
|
The line item's original tax total before discounts. This field is only |
|
190
|
available if you expand the `items.*` relation. Learn more in the [Cart |
|
191
|
Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-cart-item-totals) |
|
192
|
guide. |
|
193
|
item_total: |
|
194
|
type: number |
|
195
|
title: item_total |
|
196
|
description: >- |
|
197
|
The line item's total after discounts, including taxes. This field is only |
|
198
|
available if you expand the `items.*` relation. Learn more in the [Cart |
|
199
|
Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-cart-item-totals) |
|
200
|
guide. |
|
201
|
item_subtotal: |
|
202
|
type: number |
|
203
|
title: item_subtotal |
|
204
|
description: >- |
|
205
|
The line item's subtotal before discounts, excluding taxes. This field is |
|
206
|
only available if you expand the `items.*` relation. Learn more in the |
|
207
|
[Cart |
|
208
|
Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-cart-item-totals) |
|
209
|
guide. |
|
210
|
item_tax_total: |
|
211
|
type: number |
|
212
|
title: item_tax_total |
|
213
|
description: >- |
|
214
|
The line item's tax total after discounts. This field is only available if |
|
215
|
you expand the `items.*` relation. Learn more in the [Cart |
|
216
|
Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-cart-item-totals) |
|
217
|
guide. |
|
218
|
total: |
|
219
|
type: number |
|
220
|
title: total |
|
221
|
description: >- |
|
222
|
The line item's total after discounts, including taxes. This field is only |
|
223
|
available if you expand the `items.*` relation. Learn more in the [Cart |
|
224
|
Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-cart-item-totals) |
|
225
|
guide. |
|
226
|
subtotal: |
|
227
|
type: number |
|
228
|
title: subtotal |
|
229
|
description: >- |
|
230
|
The line item's subtotal before discounts, excluding taxes. This field is |
|
231
|
only available if you expand the `items.*` relation. Learn more in the |
|
232
|
[Cart |
|
233
|
Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-cart-item-totals) |
|
234
|
guide. |
|
235
|
tax_total: |
|
236
|
type: number |
|
237
|
title: tax_total |
|
238
|
description: >- |
|
239
|
The line item's tax total after discounts. This field is only available if |
|
240
|
you expand the `items.*` relation. Learn more in the [Cart |
|
241
|
Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-cart-item-totals) |
|
242
|
guide. |
|
243
|
discount_total: |
|
244
|
type: number |
|
245
|
title: discount_total |
|
246
|
description: >- |
|
247
|
The total amount of discounts applied to the line item, including the tax |
|
248
|
portion of discounts. This field is only available if you expand the |
|
249
|
`items.*` relation. Learn more in the [Cart |
|
250
|
Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-cart-item-totals) |
|
251
|
guide. |
|
252
|
discount_tax_total: |
|
253
|
type: number |
|
254
|
title: discount_tax_total |
|
255
|
description: >- |
|
256
|
The total amount of discounts applied to the line item's tax. Represents |
|
257
|
the tax portion of discounts. This field is only available if you expand |
|
258
|
the `items.*` relation. Learn more in the [Cart |
|
259
|
Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-cart-item-totals) |
|
260
|
guide. |