|
1
|
type: object |
|
2
|
description: The exchange's details. |
|
3
|
x-schemaName: AdminExchange |
|
4
|
required: |
|
5
|
- id |
|
6
|
- order_id |
|
7
|
- created_at |
|
8
|
- updated_at |
|
9
|
- canceled_at |
|
10
|
- deleted_at |
|
11
|
- additional_items |
|
12
|
- return_items |
|
13
|
properties: |
|
14
|
order_id: |
|
15
|
type: string |
|
16
|
title: order_id |
|
17
|
description: The ID of the order the exchange is created for. |
|
18
|
return_items: |
|
19
|
type: array |
|
20
|
description: The items returned (inbound) by the exchange. |
|
21
|
items: |
|
22
|
$ref: ./AdminReturnItem.yaml |
|
23
|
additional_items: |
|
24
|
type: array |
|
25
|
description: The new items (outbound) sent by the exchange. |
|
26
|
items: |
|
27
|
$ref: ./BaseExchangeItem.yaml |
|
28
|
no_notification: |
|
29
|
type: boolean |
|
30
|
title: no_notification |
|
31
|
description: Whether to send the customer notifications when the exchange is updated. |
|
32
|
difference_due: |
|
33
|
type: number |
|
34
|
title: difference_due |
|
35
|
description: >- |
|
36
|
The amount to be exchanged or refunded. If the amount is negative, it must |
|
37
|
be refunded. If positive, additional payment is required from the |
|
38
|
customer. |
|
39
|
return: |
|
40
|
$ref: ./AdminReturn.yaml |
|
41
|
return_id: |
|
42
|
type: string |
|
43
|
title: return_id |
|
44
|
description: The ID of the associated exchange. |
|
45
|
id: |
|
46
|
type: string |
|
47
|
title: id |
|
48
|
description: The exchange's ID. |
|
49
|
display_id: |
|
50
|
type: string |
|
51
|
title: display_id |
|
52
|
description: The exchange's display ID. |
|
53
|
shipping_methods: |
|
54
|
type: array |
|
55
|
description: The shipping methods used to send the new (outbound) items. |
|
56
|
items: |
|
57
|
$ref: ./BaseOrderShippingMethod.yaml |
|
58
|
transactions: |
|
59
|
type: array |
|
60
|
description: The exchange's transactions. |
|
61
|
externalDocs: |
|
62
|
url: https://docs.medusajs.com/resources/commerce-modules/order/transactions |
|
63
|
items: |
|
64
|
$ref: ./BaseOrderTransaction.yaml |
|
65
|
metadata: |
|
66
|
type: object |
|
67
|
description: The exchange's metadata, can hold custom key-value pairs. |
|
68
|
externalDocs: |
|
69
|
url: https://docs.medusajs.com/api/admin#manage-metadata |
|
70
|
description: Learn how to manage metadata |
|
71
|
created_at: |
|
72
|
type: string |
|
73
|
format: date-time |
|
74
|
title: created_at |
|
75
|
description: The date that the exchange was created. |
|
76
|
updated_at: |
|
77
|
type: string |
|
78
|
format: date-time |
|
79
|
title: updated_at |
|
80
|
description: The date that the exchange was updated. |
|
81
|
order_version: |
|
82
|
type: string |
|
83
|
title: order_version |
|
84
|
description: The version of the order once the exchange is applied. |
|
85
|
created_by: |
|
86
|
type: string |
|
87
|
title: created_by |
|
88
|
description: The ID of the user that created the exchange. |
|
89
|
canceled_at: |
|
90
|
type: string |
|
91
|
title: canceled_at |
|
92
|
description: The date the exchange was canceled. |
|
93
|
format: date-time |
|
94
|
deleted_at: |
|
95
|
type: string |
|
96
|
format: date-time |
|
97
|
title: deleted_at |
|
98
|
description: The date the exchange was deleted. |
|
99
|
order: |
|
100
|
$ref: ./BaseOrder.yaml |
|
101
|
allow_backorder: |
|
102
|
type: boolean |
|
103
|
title: allow_backorder |
|
104
|
description: >- |
|
105
|
Whether variants that are out-of-stock can still be added as additional or |
|
106
|
outbound items. |