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