Overview
Store Returns API allows store owners to list returns, review detailed requests, respond (approve/reject), mark pickups completed (triggering refunds), and configure return policies. Location:convex/stores/returns.ts
List Store Returns
List return requests for a store with optional status filtering.Store ID (defaults to authenticated owner’s store)
Optional status filter
Pagination configuration
Get Return Request Details
Get the full details of a return request for store review.Return request ID
Respond To Return
Approve or reject a return request.Return request ID
Decision: true to approve, false to reject
Optional reason (required when rejecting)
Mark Pickup Completed
Mark a return as picked up. This will schedule refund processing.Return request ID
Update Return Policy
Configure store-level return policy settings.Store ID (defaults to authenticated owner’s store)
Whether returns are allowed
Return window in days (1-90)
Update Product Returnability
Toggle whether a product is returnable.Product ID
Whether product is returnable
