curl --location --request POST 'https://api.stateset.com/v1/warranties/:id/refund' \ --header 'Content-Type: application/json' \ --header 'Authorization: Token <token>' \ --data-raw '{ "id": "e0901f083-aa1c-43c5-af5c-0a9d2fc64e30", "refund_amount": 299.99, "refund_reason": "Product defect covered under warranty", "refund_method": "credit_card" }'
{ "id": "e0901f083-aa1c-43c5-af5c-0a9d2fc64e30", "object": "warranty", "refunded": true, "refund_id": "ref_abc123xyz", "refund_amount": 299.99, "refund_status": "completed", "refund_date": "2024-01-15T10:30:00Z", "refund_reason": "Product defect covered under warranty", "refund_method": "credit_card" }
This endpoint processes a refund for a warranty claim.