|
1
|
type: object |
|
2
|
description: The order change's order. |
|
3
|
x-schemaName: Order |
|
4
|
required: |
|
5
|
- id |
|
6
|
- version |
|
7
|
- display_id |
|
8
|
- status |
|
9
|
- currency_code |
|
10
|
- created_at |
|
11
|
- updated_at |
|
12
|
- original_item_total |
|
13
|
- original_item_subtotal |
|
14
|
- original_item_tax_total |
|
15
|
- item_total |
|
16
|
- item_subtotal |
|
17
|
- item_tax_total |
|
18
|
- item_discount_total |
|
19
|
- original_total |
|
20
|
- original_subtotal |
|
21
|
- original_tax_total |
|
22
|
- total |
|
23
|
- subtotal |
|
24
|
- tax_total |
|
25
|
- discount_subtotal |
|
26
|
- discount_total |
|
27
|
- discount_tax_total |
|
28
|
- credit_line_total |
|
29
|
- gift_card_total |
|
30
|
- gift_card_tax_total |
|
31
|
- shipping_total |
|
32
|
- shipping_subtotal |
|
33
|
- shipping_tax_total |
|
34
|
- shipping_discount_total |
|
35
|
- original_shipping_total |
|
36
|
- original_shipping_subtotal |
|
37
|
- original_shipping_tax_total |
|
38
|
properties: |
|
39
|
id: |
|
40
|
type: string |
|
41
|
title: id |
|
42
|
description: The order's ID. |
|
43
|
version: |
|
44
|
type: number |
|
45
|
title: version |
|
46
|
description: The order's version. |
|
47
|
order_change: |
|
48
|
type: object |
|
49
|
status: |
|
50
|
type: string |
|
51
|
description: The order's status. |
|
52
|
enum: |
|
53
|
- canceled |
|
54
|
- requires_action |
|
55
|
- pending |
|
56
|
- completed |
|
57
|
- draft |
|
58
|
- archived |
|
59
|
region_id: |
|
60
|
type: string |
|
61
|
title: region_id |
|
62
|
description: The ID of the region the order belongs to. |
|
63
|
customer_id: |
|
64
|
type: string |
|
65
|
title: customer_id |
|
66
|
description: The ID of the customer that placed the order. |
|
67
|
sales_channel_id: |
|
68
|
type: string |
|
69
|
title: sales_channel_id |
|
70
|
description: The ID of the sales channel the order was placed in. |
|
71
|
email: |
|
72
|
type: string |
|
73
|
title: email |
|
74
|
description: The email of the customer that placed the order. |
|
75
|
format: email |
|
76
|
currency_code: |
|
77
|
type: string |
|
78
|
title: currency_code |
|
79
|
description: The order's currency code. |
|
80
|
example: usd |
|
81
|
shipping_address: |
|
82
|
$ref: ./OrderAddress.yaml |
|
83
|
billing_address: |
|
84
|
$ref: ./OrderAddress.yaml |
|
85
|
items: |
|
86
|
type: array |
|
87
|
description: The order's items. |
|
88
|
items: |
|
89
|
$ref: ./OrderLineItem.yaml |
|
90
|
shipping_methods: |
|
91
|
type: array |
|
92
|
description: The order's shipping methods. |
|
93
|
items: |
|
94
|
$ref: ./OrderShippingMethod.yaml |
|
95
|
transactions: |
|
96
|
type: array |
|
97
|
description: The order's transactions. |
|
98
|
items: |
|
99
|
$ref: ./OrderTransaction.yaml |
|
100
|
summary: |
|
101
|
type: object |
|
102
|
description: The order's summary. |
|
103
|
properties: |
|
104
|
pending_difference: |
|
105
|
type: number |
|
106
|
title: pending_difference |
|
107
|
description: The remaining amount to be paid or refunded. |
|
108
|
current_order_total: |
|
109
|
type: number |
|
110
|
title: current_order_total |
|
111
|
description: The order's current total. |
|
112
|
original_order_total: |
|
113
|
type: number |
|
114
|
title: original_order_total |
|
115
|
description: The order's total before any changes. |
|
116
|
transaction_total: |
|
117
|
type: number |
|
118
|
title: transaction_total |
|
119
|
description: >- |
|
120
|
The total of the transactions (payments and refunds) made on the |
|
121
|
order. |
|
122
|
paid_total: |
|
123
|
type: number |
|
124
|
title: paid_total |
|
125
|
description: The total paid amount. |
|
126
|
refunded_total: |
|
127
|
type: number |
|
128
|
title: refunded_total |
|
129
|
description: The total refunded amount. |
|
130
|
credit_line_total: |
|
131
|
type: number |
|
132
|
title: credit_line_total |
|
133
|
description: The total credit line amount. |
|
134
|
accounting_total: |
|
135
|
type: number |
|
136
|
title: accounting_total |
|
137
|
description: The total amount for accounting purposes. |
|
138
|
raw_pending_difference: |
|
139
|
type: object |
|
140
|
description: The summary's raw pending difference. |
|
141
|
raw_current_order_total: |
|
142
|
type: object |
|
143
|
description: The summary's raw current order total. |
|
144
|
raw_original_order_total: |
|
145
|
type: object |
|
146
|
description: The summary's raw original order total. |
|
147
|
raw_transaction_total: |
|
148
|
type: object |
|
149
|
description: The summary's raw transaction total. |
|
150
|
raw_paid_total: |
|
151
|
type: object |
|
152
|
description: The summary's raw paid total. |
|
153
|
raw_refunded_total: |
|
154
|
type: object |
|
155
|
description: The summary's raw refunded total. |
|
156
|
raw_credit_line_total: |
|
157
|
type: object |
|
158
|
description: The summary's raw credit line total. |
|
159
|
raw_accounting_total: |
|
160
|
type: object |
|
161
|
description: The summary's raw accounting total. |
|
162
|
required: |
|
163
|
- pending_difference |
|
164
|
- current_order_total |
|
165
|
- original_order_total |
|
166
|
- transaction_total |
|
167
|
- paid_total |
|
168
|
- refunded_total |
|
169
|
- credit_line_total |
|
170
|
- accounting_total |
|
171
|
- raw_pending_difference |
|
172
|
- raw_current_order_total |
|
173
|
- raw_original_order_total |
|
174
|
- raw_transaction_total |
|
175
|
- raw_paid_total |
|
176
|
- raw_refunded_total |
|
177
|
- raw_credit_line_total |
|
178
|
- raw_accounting_total |
|
179
|
metadata: |
|
180
|
type: object |
|
181
|
description: The order's metadata, can hold custom key-value pairs. |
|
182
|
externalDocs: |
|
183
|
url: https://docs.medusajs.com/api/store#manage-metadata |
|
184
|
description: Learn how to manage metadata |
|
185
|
canceled_at: |
|
186
|
type: string |
|
187
|
format: date-time |
|
188
|
title: canceled_at |
|
189
|
description: The date the order was canceled. |
|
190
|
created_at: |
|
191
|
type: string |
|
192
|
format: date-time |
|
193
|
title: created_at |
|
194
|
description: The date the order was created. |
|
195
|
updated_at: |
|
196
|
type: string |
|
197
|
format: date-time |
|
198
|
title: updated_at |
|
199
|
description: The date the order was updated. |
|
200
|
original_item_total: |
|
201
|
type: number |
|
202
|
title: original_item_total |
|
203
|
description: The order items' total including taxes, excluding promotions. |
|
204
|
original_item_subtotal: |
|
205
|
type: number |
|
206
|
title: original_item_subtotal |
|
207
|
description: The order items' total excluding taxes, including promotions. |
|
208
|
original_item_tax_total: |
|
209
|
type: number |
|
210
|
title: original_item_tax_total |
|
211
|
description: The taxes total for order items, excluding promotions. |
|
212
|
item_total: |
|
213
|
type: number |
|
214
|
title: item_total |
|
215
|
description: The order items' total including taxes and promotions. |
|
216
|
item_subtotal: |
|
217
|
type: number |
|
218
|
title: item_subtotal |
|
219
|
description: The order items' total excluding taxes, including promotions. |
|
220
|
item_tax_total: |
|
221
|
type: number |
|
222
|
title: item_tax_total |
|
223
|
description: The tax total of the order items including promotions. |
|
224
|
original_total: |
|
225
|
type: number |
|
226
|
title: original_total |
|
227
|
description: The order's total including taxes, excluding promotions. |
|
228
|
original_subtotal: |
|
229
|
type: number |
|
230
|
title: original_subtotal |
|
231
|
description: The order's total excluding taxes, including promotions. |
|
232
|
original_tax_total: |
|
233
|
type: number |
|
234
|
title: original_tax_total |
|
235
|
description: The tax total of the order excluding promotions. |
|
236
|
total: |
|
237
|
type: number |
|
238
|
title: total |
|
239
|
description: The order's total including taxes and promotions. |
|
240
|
subtotal: |
|
241
|
type: number |
|
242
|
title: subtotal |
|
243
|
description: The order's subtotal excluding taxes, including promotions. |
|
244
|
tax_total: |
|
245
|
type: number |
|
246
|
title: tax_total |
|
247
|
description: The tax total of the order including promotions. |
|
248
|
discount_subtotal: |
|
249
|
type: number |
|
250
|
title: discount_subtotal |
|
251
|
description: The total discount excluding taxes. |
|
252
|
discount_total: |
|
253
|
type: number |
|
254
|
title: discount_total |
|
255
|
description: The total discount including taxes. |
|
256
|
discount_tax_total: |
|
257
|
type: number |
|
258
|
title: discount_tax_total |
|
259
|
description: The tax total applied on the discount. |
|
260
|
gift_card_total: |
|
261
|
type: number |
|
262
|
title: gift_card_total |
|
263
|
description: The order's gift card total. |
|
264
|
gift_card_tax_total: |
|
265
|
type: number |
|
266
|
title: gift_card_tax_total |
|
267
|
description: The order's gift card tax total. |
|
268
|
shipping_total: |
|
269
|
type: number |
|
270
|
title: shipping_total |
|
271
|
description: The order's shipping total including taxes and promotions. |
|
272
|
shipping_subtotal: |
|
273
|
type: number |
|
274
|
title: shipping_subtotal |
|
275
|
description: The order's shipping total excluding taxes, including promotions. |
|
276
|
shipping_tax_total: |
|
277
|
type: number |
|
278
|
title: shipping_tax_total |
|
279
|
description: The total taxes of the order's shipping including taxes. |
|
280
|
original_shipping_total: |
|
281
|
type: number |
|
282
|
title: original_shipping_total |
|
283
|
description: The order's shipping total including taxes, excluding promotions. |
|
284
|
original_shipping_subtotal: |
|
285
|
type: number |
|
286
|
title: original_shipping_subtotal |
|
287
|
description: The order's shipping total excluding taxes, including promotions. |
|
288
|
original_shipping_tax_total: |
|
289
|
type: number |
|
290
|
title: original_shipping_tax_total |
|
291
|
description: The total taxes of the order's shipping excluding promotions. |
|
292
|
display_id: |
|
293
|
type: number |
|
294
|
title: display_id |
|
295
|
description: The order's display ID. |
|
296
|
credit_lines: |
|
297
|
type: array |
|
298
|
description: >- |
|
299
|
The order's credit lines, useful to add additional payment amounts for an |
|
300
|
order. |
|
301
|
items: |
|
302
|
$ref: ./OrderCreditLine.yaml |
|
303
|
is_draft_order: |
|
304
|
type: boolean |
|
305
|
title: is_draft_order |
|
306
|
description: Whether the order is a draft order. |
|
307
|
deleted_at: |
|
308
|
type: string |
|
309
|
format: date-time |
|
310
|
title: deleted_at |
|
311
|
description: The date the order was deleted. |
|
312
|
credit_line_total: |
|
313
|
type: number |
|
314
|
title: credit_line_total |
|
315
|
description: The order's credit line total. |
|
316
|
item_discount_total: |
|
317
|
type: number |
|
318
|
title: item_discount_total |
|
319
|
description: The total discount amount applied on the order's items. |
|
320
|
shipping_discount_total: |
|
321
|
type: number |
|
322
|
title: shipping_discount_total |
|
323
|
description: The total discount amount applied on the order's shipping. |
|
324
|
custom_display_id: |
|
325
|
type: string |
|
326
|
title: custom_display_id |
|
327
|
description: The custom display ID of the order. |
|
328
|
externalDocs: |
|
329
|
url: >- |
|
330
|
https://docs.medusajs.com/resources/commerce-modules/order/custom-display-id |
|
331
|
locale: |
|
332
|
type: string |
|
333
|
title: locale |
|
334
|
description: >- |
|
335
|
The order's locale in [BCP |
|
336
|
47](https://gist.github.com/typpo/b2b828a35e683b9bf8db91b5404f1bd1) |
|
337
|
format. |
|
338
|
example: en-US |