Raw
1 type: object
2 description: The order change's claim.
3 x-schemaName: OrderClaim
4 required:
5 - id
6 - type
7 - order_id
8 - order_version
9 - display_id
10 - claim_items
11 - additional_items
12 - metadata
13 properties:
14 id:
15 type: string
16 title: id
17 description: The claim's ID.
18 order_id:
19 type: string
20 title: order_id
21 description: The ID of the order associated with the claim.
22 claim_items:
23 type: array
24 description: The order items targetted by the claim.
25 items:
26 $ref: ./BaseClaimItem.yaml
27 additional_items:
28 type: array
29 description: The outbound or new items of the claim.
30 items:
31 $ref: ./BaseClaimItem.yaml
32 return:
33 type: object
34 return_id:
35 type: string
36 title: return_id
37 description: The ID of the associated return.
38 no_notification:
39 type: boolean
40 title: no_notification
41 description: Whether the customer should be notified about changes in the claim.
42 refund_amount:
43 type: number
44 title: refund_amount
45 description: The amount to be refunded.
46 display_id:
47 type: number
48 title: display_id
49 description: The claim's display ID.
50 shipping_methods:
51 type: array
52 description: The claim's shipping methods.
53 items:
54 $ref: ./OrderShippingMethod.yaml
55 transactions:
56 type: array
57 description: The claim's transactions.
58 externalDocs:
59 url: https://docs.medusajs.com/resources/commerce-modules/order/transactions
60 description: Learn more about transactions of orders and associated models.
61 items:
62 $ref: ./OrderTransaction.yaml
63 metadata:
64 type: object
65 description: The claim's metadata, used to store custom key-value pairs.
66 externalDocs:
67 url: https://docs.medusajs.com/api/store#manage-metadata
68 description: Learn how to manage metadata
69 created_at:
70 type: string
71 format: date-time
72 title: created_at
73 description: The claim's creation date.
74 updated_at:
75 type: string
76 format: date-time
77 title: updated_at
78 description: The claim's update date.
79 type:
80 type: string
81 description: The claim's type.
82 enum:
83 - replace
84 - refund
85 order:
86 $ref: ./Order.yaml
87 order_version:
88 type: number
89 title: order_version
90 description: The claim's order version.
91 raw_refund_amount:
92 oneOf:
93 - type: string
94 title: raw_refund_amount
95 description: The claim's raw refund amount.
96 - type: number
97 title: raw_refund_amount
98 description: The claim's raw refund amount.
99 - type: string
100 title: raw_refund_amount
101 description: The claim's raw refund amount.
102 - type: number
103 title: raw_refund_amount
104 description: The claim's raw refund amount.
105 created_by:
106 type: string
107 title: created_by
108 description: The ID of the user that created the claim.
109 deleted_at:
110 type: string
111 format: date-time
112 title: deleted_at
113 description: The date the claim was deleted.
114 canceled_at:
115 type: string
116 title: canceled_at
117 description: The date the claim was canceled.
118 format: date-time