1 type: object
2 description: The order change's details.
3 x-schemaName: AdminOrderChange
4 required:
5 - order
6 - claim
7 - return_order
8 - exchange
9 - actions
10 - id
11 - version
12 - status
13 - metadata
14 - created_at
15 - updated_at
16 - order_id
17 - internal_note
18 - return_id
19 - exchange_id
20 - claim_id
21 - requested_by
22 - requested_at
23 - confirmed_by
24 - confirmed_at
25 - declined_by
26 - declined_reason
27 - declined_at
28 - canceled_by
29 - canceled_at
30 - created_by
31 properties:
32 id:
33 type: string
34 title: id
35 description: The order change's ID.
36 version:
37 type: number
38 title: version
39 description: >-
40 The order change's version. This will be the order's version when the
41 change is applied.
42 change_type:
43 type: string
44 description: The order change's type.
45 enum:
46 - return
47 - exchange
48 - claim
49 - edit
50 order_id:
51 type: string
52 title: order_id
53 description: The ID of the order this change applies on.
54 return_id:
55 type: string
56 title: return_id
57 description: The ID of the associated return.
58 exchange_id:
59 type: string
60 title: exchange_id
61 description: The ID of the associated exchange.
62 claim_id:
63 type: string
64 title: claim_id
65 description: The ID of the associated claim.
66 order:
67 $ref: ./AdminOrder.yaml
68 return_order:
69 $ref: ./AdminReturn.yaml
70 exchange:
71 $ref: ./AdminExchange.yaml
72 claim:
73 $ref: ./AdminClaim.yaml
74 actions:
75 type: array
76 description: The order change's actions.
77 items:
78 $ref: ./AdminOrderChangeAction.yaml
79 status:
80 type: string
81 description: The order change's status.
82 enum:
83 - canceled
84 - requested
85 - pending
86 - confirmed
87 - declined
88 requested_by:
89 type: string
90 title: requested_by
91 description: The ID of the user that requested the change.
92 requested_at:
93 type: string
94 title: requested_at
95 description: The date the order change was requested.
96 format: date-time
97 confirmed_by:
98 type: string
99 title: confirmed_by
100 description: The ID of the user that confirmed the order change.
101 confirmed_at:
102 type: string
103 title: confirmed_at
104 description: The date the order change was confirmed.
105 format: date-time
106 declined_by:
107 type: string
108 title: declined_by
109 description: The ID of the user that declined the order change.
110 declined_reason:
111 type: string
112 title: declined_reason
113 description: The reason the order change was declined.
114 metadata:
115 type: object
116 description: The order change's metadata, can hold custom key-value pairs.
117 externalDocs:
118 url: https://docs.medusajs.com/api/admin#manage-metadata
119 description: Learn how to manage metadata
120 declined_at:
121 type: string
122 title: declined_at
123 description: The date the order change was declined.
124 format: date-time
125 canceled_by:
126 type: string
127 title: canceled_by
128 description: The ID of the user that canceled the order change.
129 canceled_at:
130 type: string
131 title: canceled_at
132 description: The date the order change was canceled.
133 format: date-time
134 created_at:
135 type: string
136 format: date-time
137 title: created_at
138 description: The date the order change was created.
139 updated_at:
140 type: string
141 format: date-time
142 title: updated_at
143 description: The date the order change was updated.
144 carry_over_promotions:
145 type: boolean
146 title: carry_over_promotions
147 description: >-
148 Whether promotions from the original order should be carried over to the
149 order change (specifically, exchanges).
150 created_by:
151 type: string
152 title: created_by
153 description: The ID of the user that created the order change.
154 internal_note:
155 type: string
156 title: internal_note
157 description: The order change's internal note.
158 no_notification:
159 type: boolean
160 title: no_notification
161 description: >-
162 Whether to send notifications to the customer regarding the order change's
163 updates.