curl --location --request POST 'https://api.stateset.com/v1/warranties/:id/repair' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "e0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
"repair_type": "hardware",
"repair_description": "Screen replacement needed due to manufacturing defect",
"repair_location": "authorized_service_center",
"estimated_cost": 150.00,
"pickup_required": true
}'
{
"id": "e0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
"object": "warranty",
"repair_initiated": true,
"repair_ticket_id": "rpr_ticket_789xyz",
"repair_status": "scheduled",
"repair_type": "hardware",
"repair_location": "authorized_service_center",
"estimated_completion": "2024-01-25",
"repair_tracking_url": "https://repairs.stateset.com/track/rpr_ticket_789xyz",
"pickup_scheduled": "2024-01-16T14:00:00Z"
}
This endpoint initiates a repair for a warranty claim.
curl --location --request POST 'https://api.stateset.com/v1/warranties/:id/repair' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "e0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
"repair_type": "hardware",
"repair_description": "Screen replacement needed due to manufacturing defect",
"repair_location": "authorized_service_center",
"estimated_cost": 150.00,
"pickup_required": true
}'
{
"id": "e0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
"object": "warranty",
"repair_initiated": true,
"repair_ticket_id": "rpr_ticket_789xyz",
"repair_status": "scheduled",
"repair_type": "hardware",
"repair_location": "authorized_service_center",
"estimated_completion": "2024-01-25",
"repair_tracking_url": "https://repairs.stateset.com/track/rpr_ticket_789xyz",
"pickup_scheduled": "2024-01-16T14:00:00Z"
}
curl --location --request POST 'https://api.stateset.com/v1/warranties/:id/repair' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "e0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
"repair_type": "hardware",
"repair_description": "Screen replacement needed due to manufacturing defect",
"repair_location": "authorized_service_center",
"estimated_cost": 150.00,
"pickup_required": true
}'
{
"id": "e0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
"object": "warranty",
"repair_initiated": true,
"repair_ticket_id": "rpr_ticket_789xyz",
"repair_status": "scheduled",
"repair_type": "hardware",
"repair_location": "authorized_service_center",
"estimated_completion": "2024-01-25",
"repair_tracking_url": "https://repairs.stateset.com/track/rpr_ticket_789xyz",
"pickup_scheduled": "2024-01-16T14:00:00Z"
}