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