Raw
1 {
2 "OrderAddress": {
3 "filePath": "packages/modules/order/src/models/address.ts",
4 "properties": {
5 "id": "The ID of the order address.",
6 "customer_id": "The ID of the customer that the address belongs to.",
7 "company": "The company of the order address",
8 "first_name": "The first name of the order address",
9 "last_name": "The last name of the order address",
10 "address_1": "The first line of the order address",
11 "address_2": "The second line of the order address",
12 "city": "The city of the order address",
13 "country_code": "The country code of the order address.\n\n@example us",
14 "province": "The province of the order address",
15 "postal_code": "The postal code of the order address",
16 "phone": "The phone of the order address",
17 "metadata": "Holds custom data in key-value pairs."
18 },
19 "deprecated": {
20 "is_deprecated": false
21 }
22 },
23 "OrderClaimItemImage": {
24 "filePath": "packages/modules/order/src/models/claim-item-image.ts",
25 "properties": {
26 "id": "The ID of the order claim item image.",
27 "claim_item": "The associated claim item.\n\n@expandable",
28 "url": "The URL of the order claim item image",
29 "metadata": "Holds custom data in key-value pairs."
30 },
31 "deprecated": {
32 "is_deprecated": false
33 }
34 },
35 "OrderLineItemAdjustment": {
36 "filePath": "packages/modules/order/src/models/line-item-adjustment.ts",
37 "properties": {
38 "id": "The ID of the order line item adjustment.",
39 "description": "The description of the order line item adjustment",
40 "promotion_id": "The ID of the promotion applied.",
41 "code": "The code of the promotion.",
42 "amount": "The amount of the adjustment",
43 "provider_id": "The ID of the provider used to apply the adjustment.",
44 "item": "The associated item that the adjustment is applied on.\n\n@expandable",
45 "is_tax_inclusive": "Whether the order line item adjustment is tax inclusive.",
46 "version": "The version of the order line item adjustment"
47 },
48 "deprecated": {
49 "is_deprecated": false
50 }
51 },
52 "OrderLineItemTaxLine": {
53 "filePath": "packages/modules/order/src/models/line-item-tax-line.ts",
54 "properties": {
55 "id": "The ID of the order line item tax line.",
56 "description": "The description of the order line item tax line",
57 "tax_rate_id": "The ID of the applied tax rate.",
58 "code": "The code of the order line item tax line",
59 "rate": "The rate of the order line item tax line",
60 "provider_id": "The ID of the tax provider used to calculate the tax line.",
61 "item": "The associated item that the tax line is for.\n\n@expandable",
62 "metadata": "Holds custom data in key-value pairs.",
63 "data": "The data of the order line item tax line"
64 },
65 "deprecated": {
66 "is_deprecated": false
67 }
68 },
69 "OrderLineItem": {
70 "filePath": "packages/modules/order/src/models/line-item.ts",
71 "properties": {
72 "id": "The ID of the order line item.",
73 "title": "The title of the order line item",
74 "subtitle": "The subtitle of the order line item",
75 "thumbnail": "The thumbnail URL of the order line item",
76 "variant_id": "The ID of the associated variant.",
77 "product_id": "The ID of the variant's product.",
78 "product_title": "The title of the associated product.",
79 "product_description": "The description of the associated product.",
80 "product_subtitle": "The subtitle of the associated product.",
81 "product_type": "The type of the associated product.",
82 "product_type_id": "The ID of the associated product's type.",
83 "product_collection": "The collection of the associated product.",
84 "product_handle": "The handle of the associated product.",
85 "variant_sku": "The SKU of the associated variant.",
86 "variant_barcode": "The barcode of the associated variant.",
87 "variant_title": "The title of the associated variant.",
88 "variant_option_values": "The option values of the associated variant.",
89 "requires_shipping": "Whether the order line item requires shipping.",
90 "is_discountable": "Whether the order line item is discountable.",
91 "is_tax_inclusive": "Whether the order line item is tax inclusive.\n\nLearn more in [this documentation](https://docs.medusajs.com/resources/commerce-modules/pricing/tax-inclusive-pricing).",
92 "compare_at_unit_price": "The original price of the item before a promotion or sale.",
93 "unit_price": "The unit price of the order line item",
94 "is_custom_price": "Whether the order line item has a custom price.",
95 "metadata": "Holds custom data in key-value pairs.",
96 "tax_lines": "The associated tax lines.\n\n@expandable",
97 "adjustments": "The associated adjustments.\n\n@expandable",
98 "is_giftcard": "Whether the order line item is a giftcard."
99 },
100 "deprecated": {
101 "is_deprecated": false
102 }
103 },
104 "OrderClaimItem": {
105 "filePath": "packages/modules/order/src/models/claim-item.ts",
106 "properties": {
107 "id": "The ID of the order claim item.",
108 "reason": "The reason that the item is claimed.",
109 "quantity": "The claimed quantity.",
110 "is_additional_item": "Whether the order claim item is an outbound item.",
111 "note": "The note of the order claim item",
112 "metadata": "Holds custom data in key-value pairs.",
113 "claim": "The associated claim.\n\n@expandable",
114 "item": "The associated order item.\n\n@expandable",
115 "images": "The associated images.\n\n@expandable"
116 },
117 "deprecated": {
118 "is_deprecated": false
119 }
120 },
121 "OrderCreditLine": {
122 "filePath": "packages/modules/order/src/models/credit-line.ts",
123 "properties": {
124 "id": "The ID of the order credit line.",
125 "order": "The associated order.\n\n@expandable",
126 "reference": "The table that this credit line references. For example, `payment_collection`.",
127 "reference_id": "The ID of the record in the referenced table. For example, `paycol_123`.",
128 "amount": "The amount of the order credit line",
129 "raw_amount": "The raw amount of the order credit line",
130 "metadata": "Holds custom data in key-value pairs.",
131 "version": "The version of the order credit line"
132 },
133 "deprecated": {
134 "is_deprecated": false
135 }
136 },
137 "OrderItem": {
138 "filePath": "packages/modules/order/src/models/order-item.ts",
139 "properties": {
140 "id": "The ID of the order item.",
141 "version": "The version that the order item belongs to.",
142 "unit_price": "The unit price of the order item",
143 "compare_at_unit_price": "The original price of the item before a promotion or sale.",
144 "quantity": "The quantity of the order item",
145 "fulfilled_quantity": "The fulfilled quantity of the order item",
146 "delivered_quantity": "The delivered quantity of the order item",
147 "shipped_quantity": "The shipped quantity of the order item",
148 "return_requested_quantity": "The quantity requested to be returned.",
149 "return_received_quantity": "The quantity received by a return.",
150 "return_dismissed_quantity": "The quantity dismissed by a return.",
151 "written_off_quantity": "The quantity written off by an order edit.",
152 "metadata": "Holds custom data in key-value pairs.",
153 "order": "The associated order.\n\n@expandable",
154 "item": "The associated line item.\n\n@expandable"
155 },
156 "deprecated": {
157 "is_deprecated": false
158 }
159 },
160 "OrderExchangeItem": {
161 "filePath": "packages/modules/order/src/models/exchange-item.ts",
162 "properties": {
163 "id": "The ID of the order exchange item.",
164 "quantity": "The quantity of the order exchange item",
165 "note": "The note of the order exchange item",
166 "metadata": "Holds custom data in key-value pairs.",
167 "exchange": "The associated exchange.\n\n@expandable",
168 "item": "The associated item.\n\n@expandable"
169 },
170 "deprecated": {
171 "is_deprecated": false
172 }
173 },
174 "ReturnReason": {
175 "filePath": "packages/modules/order/src/models/return-reason.ts",
176 "properties": {
177 "id": "The ID of the return reason.",
178 "value": "The value of the return reason",
179 "label": "The label of the return reason",
180 "description": "The description of the return reason",
181 "metadata": "Holds custom data in key-value pairs.",
182 "parent_return_reason": "The associated parent_return_reason.\n\n@expandable",
183 "return_reason_children": "The associated return_reason_children.\n\n@expandable"
184 },
185 "deprecated": {
186 "is_deprecated": false
187 }
188 },
189 "ReturnItem": {
190 "filePath": "packages/modules/order/src/models/return-item.ts",
191 "properties": {
192 "id": "The ID of the return item.",
193 "quantity": "The quantity of the return item",
194 "received_quantity": "The received quantity of the return item",
195 "damaged_quantity": "The damaged quantity of the return item",
196 "note": "The note of the return item",
197 "metadata": "Holds custom data in key-value pairs.",
198 "reason": "The reason of the return item",
199 "return": "The associated return.\n\n@expandable",
200 "item": "The associated item.\n\n@expandable"
201 },
202 "deprecated": {
203 "is_deprecated": false
204 }
205 },
206 "OrderTransaction": {
207 "filePath": "packages/modules/order/src/models/transaction.ts",
208 "properties": {
209 "id": "The ID of the order transaction.",
210 "version": "The order version that the transaction belongs to.",
211 "amount": "The amount of the order transaction",
212 "currency_code": "The currency code of the order transaction.\n\n@example usd",
213 "reference": "indicates the table’s name in the database. For example, `payment` from the Payment Module.",
214 "reference_id": "indicates the ID of the record in the table. For example, `pay_123`.",
215 "order": "The associated order.\n\n@expandable",
216 "return": "The associated return.\n\n@expandable",
217 "exchange": "The associated exchange.\n\n@expandable",
218 "claim": "The associated claim.\n\n@expandable"
219 },
220 "deprecated": {
221 "is_deprecated": false
222 }
223 },
224 "Return": {
225 "filePath": "packages/modules/order/src/models/return.ts",
226 "properties": {
227 "id": "The ID of the return.",
228 "order_version": "The order version that this return belongs to.",
229 "display_id": "The display ID of the return",
230 "status": "The status of the return",
231 "location_id": "The ID of the stock location that the items are returned to.",
232 "no_notification": "Whether the customer should receive notifications for return updates.",
233 "refund_amount": "The amount to be refunded to the customer.",
234 "created_by": "The ID of the user or customer that created the return.",
235 "metadata": "Holds custom data in key-value pairs.",
236 "requested_at": "The date the return was requested.",
237 "received_at": "The date the return was received.",
238 "canceled_at": "The date the return was canceled.",
239 "order": "The associated order.\n\n@expandable",
240 "exchange": "The associated exchange, if the return belongs to it.\n\n@expandable",
241 "claim": "The associated claim, if the return belongs to it.\n\n@expandable",
242 "items": "The associated order items.\n\n@expandable",
243 "shipping_methods": "The associated shipping methods used to return the items.\n\n@expandable",
244 "transactions": "The associated transactions, which can include refunds made to the customer.\n\n@expandable"
245 },
246 "deprecated": {
247 "is_deprecated": false
248 }
249 },
250 "OrderExchange": {
251 "filePath": "packages/modules/order/src/models/exchange.ts",
252 "properties": {
253 "id": "The ID of the order exchange.",
254 "order_version": "The order version that this exchange belongs to.",
255 "display_id": "The display ID of the exchange",
256 "no_notification": "Whether the customer should receive notifications for exchange updates.",
257 "difference_due": "The amount to capture or refund to the customer.\n\nLearn more in [this documentation](https://docs.medusajs.com/resources/commerce-modules/order/exchange#exchange-payment)",
258 "allow_backorder": "Whether merchants can send customers items that are out of stock.",
259 "created_by": "The ID of the user that created the exchange.",
260 "metadata": "Holds custom data in key-value pairs.",
261 "canceled_at": "The date the exchange was canceled.",
262 "order": "The associated order.\n\n@expandable",
263 "return": "The associated return used to return items from the customer.\n\n@expandable",
264 "additional_items": "The associated additional (outbound) items that are send to the customer.\n\n@expandable",
265 "shipping_methods": "The associated shipping_methods.\n\n@expandable",
266 "transactions": "The associated transactions, which can hold payments made due to the `difference_due`.\n\n@expandable"
267 },
268 "deprecated": {
269 "is_deprecated": false
270 }
271 },
272 "OrderShippingMethodAdjustment": {
273 "filePath": "packages/modules/order/src/models/shipping-method-adjustment.ts",
274 "properties": {
275 "id": "The ID of the order shipping method adjustment.",
276 "description": "The description of the order shipping method adjustment",
277 "promotion_id": "The ID of the promotion applied.",
278 "code": "The code of the promotion.",
279 "amount": "The amount of the adjustment",
280 "provider_id": "The ID of the provider used to apply the adjustment.",
281 "shipping_method": "The associated shipping method that the adjustment is applied on.\n\n@expandable",
282 "version": "The version of the order shipping method adjustment"
283 },
284 "deprecated": {
285 "is_deprecated": false
286 }
287 },
288 "OrderShippingMethodTaxLine": {
289 "filePath": "packages/modules/order/src/models/shipping-method-tax-line.ts",
290 "properties": {
291 "id": "The ID of the order shipping method tax line.",
292 "description": "The description of the order shipping method tax line",
293 "tax_rate_id": "The ID of the applied tax rate.",
294 "code": "The code of the applied tax rate.",
295 "rate": "The applied tax rate",
296 "provider_id": "The ID of the tax provider used to calculate the tax line.",
297 "shipping_method": "The associated shipping_method that the tax line is for.\n\n@expandable",
298 "metadata": "Holds custom data in key-value pairs.",
299 "data": "The data of the order shipping method tax line"
300 },
301 "deprecated": {
302 "is_deprecated": false
303 }
304 },
305 "OrderShippingMethod": {
306 "filePath": "packages/modules/order/src/models/shipping-method.ts",
307 "properties": {
308 "id": "The ID of the order shipping method.",
309 "name": "The name of the order shipping method",
310 "description": "The description of the order shipping method",
311 "amount": "The amount of the order shipping method",
312 "is_tax_inclusive": "Whether the order shipping method is tax inclusive.\n\nLearn more in [this documentation](https://docs.medusajs.com/resources/commerce-modules/pricing/tax-inclusive-pricing).",
313 "is_custom_amount": "Whether the order shipping method has a custom amount.",
314 "shipping_option_id": "The ID of the associated shipping option.",
315 "data": "The data of the order shipping method useful for fulfillment.\n\nLearn more in [this documentation](https://docs.medusajs.com/resources/commerce-modules/order/concepts#data-property)",
316 "metadata": "Holds custom data in key-value pairs.",
317 "tax_lines": "The associated tax lines.\n\n@expandable",
318 "adjustments": "The applied adjustments.\n\n@expandable"
319 },
320 "deprecated": {
321 "is_deprecated": false
322 }
323 },
324 "OrderShipping": {
325 "filePath": "packages/modules/order/src/models/order-shipping-method.ts",
326 "properties": {
327 "id": "The ID of the order's shipping details.",
328 "version": "The version that the associated shipping method belongs to.",
329 "order": "The associated order.\n\n@expandable",
330 "return": "The associated return, if the shipping is used to return an item.\n\n@expandable",
331 "exchange": "The associated exchange, if the shipping is used to send an item in an exchange.\n\n@expandable",
332 "claim": "The associated claim, if the shipping is used to send an item in a claim.\n\n@expandable",
333 "shipping_method": "The associated shipping method.\n\n@expandable"
334 },
335 "deprecated": {
336 "is_deprecated": false
337 }
338 },
339 "OrderSummary": {
340 "filePath": "packages/modules/order/src/models/order-summary.ts",
341 "properties": {
342 "id": "The ID of the order summary.",
343 "version": "The version that the summary belongs to.",
344 "totals": "The totals of the order summary",
345 "order": "The associated order.\n\n@expandable"
346 },
347 "deprecated": {
348 "is_deprecated": false
349 }
350 },
351 "Order": {
352 "filePath": "packages/modules/order/src/models/order.ts",
353 "properties": {
354 "id": "The ID of the order.",
355 "display_id": "The display ID of the order",
356 "region_id": "The ID of the region that the order was purchased in.",
357 "customer_id": "The ID of the customer that placed the order.",
358 "version": "The version of the order",
359 "sales_channel_id": "The ID of the sales channel that the order was purchased through.",
360 "status": "The status of the order",
361 "is_draft_order": "Whether the order is a draft order.",
362 "email": "The email of the order's customer",
363 "currency_code": "The currency code of the order.\n\n@example usd",
364 "no_notification": "Whether the customer should receive notifications for order updates.",
365 "metadata": "Holds custom data in key-value pairs.",
366 "canceled_at": "The date the order was canceled.",
367 "shipping_address": "The associated shipping_address.\n\n@expandable",
368 "billing_address": "The associated billing address.\n\n@expandable",
369 "summary": "The associated summary.\n\n@expandable",
370 "items": "The associated items.\n\n@expandable",
371 "shipping_methods": "The associated shipping methods.\n\n@expandable",
372 "transactions": "The associated transactions, which include amounts captured and refunded.\n\n@expandable",
373 "credit_lines": "The associated credit lines, which include additional payment amounts for an order.\n\n@expandable",
374 "returns": "The associated returns.\n\n@expandable",
375 "custom_display_id": "The custom display ID of the order",
376 "locale": "The locale of the order"
377 },
378 "deprecated": {
379 "is_deprecated": false
380 }
381 },
382 "OrderClaim": {
383 "filePath": "packages/modules/order/src/models/claim.ts",
384 "properties": {
385 "id": "The ID of the order claim.",
386 "order_version": "The order version that this claim belongs to.",
387 "display_id": "The display ID of the order claim",
388 "type": "The type of the order claim",
389 "no_notification": "Whether the customer should receive notifications about claim updates.",
390 "refund_amount": "The amount to refund to the customer.",
391 "created_by": "The ID of the user that created the claim.",
392 "canceled_at": "The date that the claim was canceled.",
393 "metadata": "Holds custom data in key-value pairs.",
394 "order": "The associated order.\n\n@expandable",
395 "return": "The associated return.\n\n@expandable",
396 "additional_items": "The associated additional (outbound) items.\n\n@expandable",
397 "claim_items": "The associated claim (outbound) items.\n\n@expandable",
398 "shipping_methods": "The associated shipping methods used to send the new items.\n\n@expandable",
399 "transactions": "The associated transactions, which can hold the payments refunded.\n\n@expandable"
400 },
401 "deprecated": {
402 "is_deprecated": false
403 }
404 },
405 "OrderChangeAction": {
406 "filePath": "packages/modules/order/src/models/order-change-action.ts",
407 "properties": {
408 "id": "The ID of the order change action.",
409 "order_id": "The ID of the associated order.",
410 "return_id": "The ID of the return this action belongs to, if any.",
411 "claim_id": "The ID of the claim this action belongs to, if any.",
412 "exchange_id": "The ID of the exchange this action belongs to, if any.",
413 "ordering": "The ordering of this action in the parent order change.",
414 "version": "The order version that this action belongs to.",
415 "reference": "The name of the table that this action references.",
416 "reference_id": "The ID of the record in the table that the action references.",
417 "action": "The action of the order change action. For example, `item_add`.",
418 "details": "The details of the order change action",
419 "amount": "The amount of the order change action",
420 "internal_note": "The internal note of the order change action",
421 "applied": "Whether the order change action is applied.",
422 "order_change": "The order change that the action belongs to.\n\n@expandable"
423 },
424 "deprecated": {
425 "is_deprecated": false
426 }
427 },
428 "OrderChange": {
429 "filePath": "packages/modules/order/src/models/order-change.ts",
430 "properties": {
431 "id": "The ID of the order change.",
432 "return_id": "The ID of the return that's making this order change.",
433 "claim_id": "The ID of the claim that's making this order change.",
434 "exchange_id": "The ID of the exchange that's making this order change.",
435 "version": "The version that the order change belongs to.",
436 "change_type": "The type of change made.",
437 "description": "The description of the order change",
438 "status": "The status of the order change",
439 "internal_note": "The internal note of the order change, viewed by admin users only.",
440 "created_by": "The ID of the user that created the order change.",
441 "requested_by": "The ID of the user that requested the order change.",
442 "requested_at": "The date that the change was requested.",
443 "confirmed_by": "The ID of the user that confirmed the order change",
444 "confirmed_at": "The date that the change was confirmed",
445 "declined_by": "The ID of the user that declined the order change",
446 "declined_reason": "The reason that the order change was declined",
447 "metadata": "Holds custom data in key-value pairs.",
448 "declined_at": "The date that the change was declined",
449 "canceled_by": "The ID of the user that canceled the order change",
450 "canceled_at": "The date that the change was canceled",
451 "order": "The associated order that the change applies to.\n\n@expandable",
452 "actions": "The associated actions.\n\n@expandable",
453 "carry_over_promotions": "Whether the order change carries over promotions from the parent order.\n\n@since v2.12.0",
454 "no_notification": "Whether customer should receive notifications for updates.\n\n@since 2.19.0"
455 },
456 "deprecated": {
457 "is_deprecated": false
458 }
459 }
460 }