|
1
|
type: object |
|
2
|
description: The draft order preview's details. |
|
3
|
x-schemaName: AdminDraftOrderPreview |
|
4
|
required: |
|
5
|
- return_requested_total |
|
6
|
- order_change |
|
7
|
- items |
|
8
|
- id |
|
9
|
- version |
|
10
|
- region_id |
|
11
|
- customer_id |
|
12
|
- sales_channel_id |
|
13
|
- email |
|
14
|
- currency_code |
|
15
|
- status |
|
16
|
- payment_collections |
|
17
|
- payment_status |
|
18
|
- fulfillment_status |
|
19
|
- summary |
|
20
|
- created_at |
|
21
|
- updated_at |
|
22
|
- original_item_total |
|
23
|
- original_item_subtotal |
|
24
|
- original_item_tax_total |
|
25
|
- item_total |
|
26
|
- item_subtotal |
|
27
|
- item_tax_total |
|
28
|
- item_discount_total |
|
29
|
- original_total |
|
30
|
- original_subtotal |
|
31
|
- original_tax_total |
|
32
|
- total |
|
33
|
- subtotal |
|
34
|
- tax_total |
|
35
|
- discount_total |
|
36
|
- discount_tax_total |
|
37
|
- gift_card_total |
|
38
|
- gift_card_tax_total |
|
39
|
- shipping_total |
|
40
|
- shipping_subtotal |
|
41
|
- shipping_tax_total |
|
42
|
- shipping_discount_total |
|
43
|
- original_shipping_total |
|
44
|
- original_shipping_subtotal |
|
45
|
- original_shipping_tax_total |
|
46
|
- credit_line_total |
|
47
|
properties: |
|
48
|
return_requested_total: |
|
49
|
type: number |
|
50
|
title: return_requested_total |
|
51
|
description: The total of the requested return. |
|
52
|
order_change: |
|
53
|
$ref: ./AdminOrderChange.yaml |
|
54
|
items: |
|
55
|
type: array |
|
56
|
description: The order's items. |
|
57
|
items: |
|
58
|
$ref: ./AdminOrderLinePreview.yaml |
|
59
|
shipping_methods: |
|
60
|
type: array |
|
61
|
description: The order's shipping methods. |
|
62
|
items: |
|
63
|
allOf: |
|
64
|
- $ref: ./BaseOrderShippingMethod.yaml |
|
65
|
- type: object |
|
66
|
description: The shipping method's details. |
|
67
|
properties: |
|
68
|
actions: |
|
69
|
type: array |
|
70
|
description: The actions applied on the shipping method. |
|
71
|
items: |
|
72
|
$ref: ./BaseOrderChangeAction.yaml |
|
73
|
currency_code: |
|
74
|
type: string |
|
75
|
title: currency_code |
|
76
|
description: The order's currency code. |
|
77
|
version: |
|
78
|
type: number |
|
79
|
title: version |
|
80
|
description: The order's version when this preview is applied. |
|
81
|
id: |
|
82
|
type: string |
|
83
|
title: id |
|
84
|
description: The order's ID. |
|
85
|
region_id: |
|
86
|
type: string |
|
87
|
title: region_id |
|
88
|
description: The ID of the order's associated region. |
|
89
|
customer_id: |
|
90
|
type: string |
|
91
|
title: customer_id |
|
92
|
description: The ID of the customer that placed the order. |
|
93
|
sales_channel_id: |
|
94
|
type: string |
|
95
|
title: sales_channel_id |
|
96
|
description: The ID of the sales channel that the order was placed in. |
|
97
|
email: |
|
98
|
type: string |
|
99
|
title: email |
|
100
|
description: The email of the customer that placed the order. |
|
101
|
format: email |
|
102
|
display_id: |
|
103
|
type: number |
|
104
|
title: display_id |
|
105
|
description: The order's display ID. |
|
106
|
shipping_address: |
|
107
|
$ref: ./AdminOrderAddress.yaml |
|
108
|
billing_address: |
|
109
|
$ref: ./AdminOrderAddress.yaml |
|
110
|
payment_collections: |
|
111
|
type: array |
|
112
|
description: The order's payment collections. |
|
113
|
items: |
|
114
|
$ref: ./AdminPaymentCollection.yaml |
|
115
|
payment_status: |
|
116
|
type: string |
|
117
|
description: The order's payment status. |
|
118
|
enum: |
|
119
|
- canceled |
|
120
|
- not_paid |
|
121
|
- awaiting |
|
122
|
- authorized |
|
123
|
- partially_authorized |
|
124
|
- captured |
|
125
|
- partially_captured |
|
126
|
- partially_refunded |
|
127
|
- refunded |
|
128
|
- requires_action |
|
129
|
fulfillments: |
|
130
|
type: array |
|
131
|
description: The order's fulfillments. |
|
132
|
items: |
|
133
|
$ref: ./AdminOrderFulfillment.yaml |
|
134
|
fulfillment_status: |
|
135
|
type: string |
|
136
|
description: The order's fulfillment status. |
|
137
|
enum: |
|
138
|
- canceled |
|
139
|
- not_fulfilled |
|
140
|
- partially_fulfilled |
|
141
|
- fulfilled |
|
142
|
- partially_shipped |
|
143
|
- shipped |
|
144
|
- partially_delivered |
|
145
|
- delivered |
|
146
|
transactions: |
|
147
|
type: array |
|
148
|
description: The order's transactions. |
|
149
|
items: |
|
150
|
$ref: ./BaseOrderTransaction.yaml |
|
151
|
summary: |
|
152
|
$ref: ./BaseOrderSummary.yaml |
|
153
|
metadata: |
|
154
|
type: object |
|
155
|
description: The order's metadata, can hold custom key-value pairs. |
|
156
|
externalDocs: |
|
157
|
url: https://docs.medusajs.com/api/admin#manage-metadata |
|
158
|
description: Learn how to manage metadata |
|
159
|
created_at: |
|
160
|
type: string |
|
161
|
format: date-time |
|
162
|
title: created_at |
|
163
|
description: The date the order was created. |
|
164
|
updated_at: |
|
165
|
type: string |
|
166
|
format: date-time |
|
167
|
title: updated_at |
|
168
|
description: The date the order was updated. |
|
169
|
original_item_total: |
|
170
|
type: number |
|
171
|
title: original_item_total |
|
172
|
description: The total of the order's items including taxes, excluding promotions. |
|
173
|
original_item_subtotal: |
|
174
|
type: number |
|
175
|
title: original_item_subtotal |
|
176
|
description: The total of the order's items excluding taxes, including promotions. |
|
177
|
original_item_tax_total: |
|
178
|
type: number |
|
179
|
title: original_item_tax_total |
|
180
|
description: The tax total of the order's items excluding promotions. |
|
181
|
item_total: |
|
182
|
type: number |
|
183
|
title: item_total |
|
184
|
description: The total of the order's items including taxes and promotions. |
|
185
|
item_subtotal: |
|
186
|
type: number |
|
187
|
title: item_subtotal |
|
188
|
description: The total of the order's items excluding taxes, including promotions. |
|
189
|
item_tax_total: |
|
190
|
type: number |
|
191
|
title: item_tax_total |
|
192
|
description: The tax total of the order's items including promotions. |
|
193
|
original_total: |
|
194
|
type: number |
|
195
|
title: original_total |
|
196
|
description: The order's total excluding promotions, including taxes. |
|
197
|
original_subtotal: |
|
198
|
type: number |
|
199
|
title: original_subtotal |
|
200
|
description: The order's total excluding taxes, including promotions. |
|
201
|
original_tax_total: |
|
202
|
type: number |
|
203
|
title: original_tax_total |
|
204
|
description: The order's tax total, excluding promotions. |
|
205
|
total: |
|
206
|
type: number |
|
207
|
title: total |
|
208
|
description: The order's total including taxes and promotions. |
|
209
|
subtotal: |
|
210
|
type: number |
|
211
|
title: subtotal |
|
212
|
description: The order's total excluding taxes, including promotions. |
|
213
|
tax_total: |
|
214
|
type: number |
|
215
|
title: tax_total |
|
216
|
description: The order's tax total including promotions. |
|
217
|
discount_total: |
|
218
|
type: number |
|
219
|
title: discount_total |
|
220
|
description: The order's discount or promotions total. |
|
221
|
discount_tax_total: |
|
222
|
type: number |
|
223
|
title: discount_tax_total |
|
224
|
description: The tax total of order's discount or promotion. |
|
225
|
gift_card_total: |
|
226
|
type: number |
|
227
|
title: gift_card_total |
|
228
|
description: The order's gift card total. |
|
229
|
gift_card_tax_total: |
|
230
|
type: number |
|
231
|
title: gift_card_tax_total |
|
232
|
description: The tax total of the order's gift card. |
|
233
|
shipping_total: |
|
234
|
type: number |
|
235
|
title: shipping_total |
|
236
|
description: The order's shipping total including taxes and promotions. |
|
237
|
shipping_subtotal: |
|
238
|
type: number |
|
239
|
title: shipping_subtotal |
|
240
|
description: The order's shipping total excluding taxes, including promotions. |
|
241
|
shipping_tax_total: |
|
242
|
type: number |
|
243
|
title: shipping_tax_total |
|
244
|
description: The tax total of the order's shipping. |
|
245
|
original_shipping_total: |
|
246
|
type: number |
|
247
|
title: original_shipping_total |
|
248
|
description: The order's shipping total including taxes, excluding promotions. |
|
249
|
original_shipping_subtotal: |
|
250
|
type: number |
|
251
|
title: original_shipping_subtotal |
|
252
|
description: The order's shipping total excluding taxes, including promotions. |
|
253
|
original_shipping_tax_total: |
|
254
|
type: number |
|
255
|
title: original_shipping_tax_total |
|
256
|
description: The tax total of the order's shipping excluding promotions. |
|
257
|
customer: |
|
258
|
$ref: ./AdminCustomer.yaml |
|
259
|
sales_channel: |
|
260
|
$ref: ./AdminSalesChannel.yaml |
|
261
|
status: |
|
262
|
type: string |
|
263
|
title: status |
|
264
|
description: The order's status. |
|
265
|
region: |
|
266
|
$ref: ./AdminRegion.yaml |
|
267
|
credit_lines: |
|
268
|
type: array |
|
269
|
description: The order preview's credit lines. |
|
270
|
items: |
|
271
|
$ref: ./OrderCreditLine.yaml |
|
272
|
credit_line_total: |
|
273
|
type: number |
|
274
|
title: credit_line_total |
|
275
|
description: The draft order preview's credit line total. |
|
276
|
item_discount_total: |
|
277
|
type: number |
|
278
|
title: item_discount_total |
|
279
|
description: The total discount amount applied on the draft order's items. |
|
280
|
shipping_discount_total: |
|
281
|
type: number |
|
282
|
title: shipping_discount_total |
|
283
|
description: The total discount amount applied on the draft order's shipping. |
|
284
|
custom_display_id: |
|
285
|
type: string |
|
286
|
title: custom_display_id |
|
287
|
description: The custom display ID of the draft order. |
|
288
|
externalDocs: |
|
289
|
url: >- |
|
290
|
https://docs.medusajs.com/resources/commerce-modules/order/custom-display-id |