|
1
|
export const metadata = { |
|
2
|
title: `Order Claim`, |
|
3
|
} |
|
4
|
|
|
5
|
# {metadata.title} |
|
6
|
|
|
7
|
In this guide, you'll learn about order claims. |
|
8
|
|
|
9
|
<Note title="Looking for no-code docs?"> |
|
10
|
|
|
11
|
Refer to this [Medusa Admin User Guide](!user-guide!/orders/claims) to learn how to manage an order's claims using the dashboard. |
|
12
|
|
|
13
|
</Note> |
|
14
|
|
|
15
|
## What is a Claim? |
|
16
|
|
|
17
|
When a customer receives a defective or incorrect item, the merchant can create a claim to refund or replace that item. |
|
18
|
|
|
19
|
A claim is represented by the [OrderClaim data model](/references/order/models/OrderClaim). |
|
20
|
|
|
21
|
--- |
|
22
|
|
|
23
|
## Claim Type |
|
24
|
|
|
25
|
The `Claim` data model has a `type` property that indicates the type of claim: |
|
26
|
|
|
27
|
- `refund`: The items are returned and the customer receives a refund. |
|
28
|
- `replace`: The items are returned and the customer receives new items. |
|
29
|
|
|
30
|
--- |
|
31
|
|
|
32
|
## Old and Replacement Items |
|
33
|
|
|
34
|
When you create a claim, a return is also created to handle receiving the old items from the customer. The return is represented by the [Return data model](/references/order/models/Return). |
|
35
|
|
|
36
|
<Note> |
|
37
|
|
|
38
|
Refer to the [Returns](../return/page.mdx) guide to learn more about returns. |
|
39
|
|
|
40
|
</Note> |
|
41
|
|
|
42
|
If the claim's type is `replace`, the replacement items are represented by the [ClaimItem data model](/references/order/models/OrderClaimItem). |
|
43
|
|
|
44
|
--- |
|
45
|
|
|
46
|
## Claim Shipping Methods |
|
47
|
|
|
48
|
A claim uses shipping methods to send replacement items to the customer. These methods are represented by the [OrderShippingMethod data model](/references/order/models/OrderShippingMethod). |
|
49
|
|
|
50
|
The shipping methods for returned items are linked to the claim's return, as explained in the [Returns](../return/page.mdx#return-shipping-methods) guide. |
|
51
|
|
|
52
|
--- |
|
53
|
|
|
54
|
## Claim Refund |
|
55
|
|
|
56
|
If the claim's type is `refund`, the refund amount is stored in the `refund_amount` property. |
|
57
|
|
|
58
|
The [Transaction data model](/references/order/models/OrderTransaction) represents the refunds made for the claim. |
|
59
|
|
|
60
|
--- |
|
61
|
|
|
62
|
## How Claims Impact an Order's Version |
|
63
|
|
|
64
|
When you confirm a claim, the order's version increases. |
|
65
|
|
|
66
|
Learn more about order versions in the [Order Versioning](../order-versioning/page.mdx) guide. |