Claims Architecture
The claims system consists of three main components:- Claim Orders - Container for the claim with type and status
- Claim Items - Individual items being claimed
- Returns - Physical return of products
Claim Orders
Claim orders represent customer requests for returns or replacements:Claim Types
Replace - Customer receives replacement product:- Original item returned
- New item shipped
- No refund processed
- Useful for defective or wrong items
- Original item returned
- Refund processed to payment method
- No replacement shipped
- Useful for unwanted items
Creating Claims
Step 1: Identify Order and Items
Customer initiates claim for specific items:Step 2: Create Claim Order
Initiate the claim:Step 3: Create Return
Track physical return of products:Claim Items
Detailed information about items being claimed:Claim Reasons
- missing_item - Item not received
- wrong_item - Incorrect product sent
- production_failure - Defective or damaged
- other - Other reasons (see note)
Adding Evidence
Customers can attach photos:Tagging Claims
Categorize claims for analysis:Return Processing
Manage the physical return of products:Return Workflow
const label = await createShippingLabel({
order: returnOrder,
type: 'return',
fromAddress: order.shippingAddress,
toAddress: warehouse.address,
});
mutation UpdateReturn {
updateReturn(
where: { id: "return_id" }
data: {
status: "shipped"
trackingNumber: "1Z999AA10123456784"
}
) {
id
status
trackingNumber
}
}
mutation ReceiveReturn {
updateReturn(
where: { id: "return_id" }
data: {
status: "received"
receivedAt: "2024-03-15T10:30:00Z"
location: { connect: { id: "location_id" } }
}
) {
id
status
receivedAt
}
}
Return Items
Track individual items in returns:Partial Returns
Handle returns where not all items received:Refund Processing
Process refunds for returned items:Creating Refunds
Refund to Payment Method
Process refund through payment provider:Replacement Processing
Handle product replacements:Adding Replacement Items
Fulfilling Replacements
Ship replacement items:Return Reasons
Categorize returns for analysis:Common Return Reasons
Claims Dashboard
View and manage all claims:Filtering Claims
Inventory Updates
Claims automatically update inventory:Return Received
When items are received, inventory increases:Replacement Shipped
When replacement ships, inventory decreases:Best Practices
Claims Policy
- Clearly communicate return windows
- Define acceptable return conditions
- Specify who pays return shipping
- Set expectations for refund timing
Processing Returns
- Inspect returned items promptly
- Document item condition
- Update inventory immediately
- Process refunds within stated timeframe
Customer Communication
- Acknowledge claim receipt
- Provide return shipping labels
- Send tracking for replacements
- Notify when refunds are processed
Data Analysis
- Track return reasons
- Identify problem products
- Monitor return rates by category
- Use insights to improve products