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