Skip to main content
POST
https://api.stateset.com
/
v1
/
warranties
/
:id
/
repair
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"
}

Body

warranty_id
string
The ID provided in the data tab may be used to identify the warranty
repair_type
string
The type of repair needed (e.g., “hardware”, “software”, “cosmetic”)
repair_description
string
Detailed description of the repair needed
repair_location
string
Where the repair will be performed (e.g., “authorized_service_center”, “mail_in”, “on_site”)
estimated_cost
number
Estimated cost of the repair (if applicable)
pickup_required
boolean
Whether pickup service is required for the item

Response

id
string
The ID provided in the data tab may be used to identify the warranty
object
string
The object type
repair_ticket_id
string
The unique identifier for the repair ticket
repair_status
string
The status of the repair (e.g., “scheduled”, “in_progress”, “completed”)
repair_location
string
The location where the repair will be performed
estimated_completion
string
The estimated completion date for the repair
repair_tracking_url
string
URL to track the repair status
success
number
Indicates whether the call was successful. true if successful, false if not.
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"
}