Documentation Index
Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
Use this file to discover all available pages before exploring further.
Body
The ID provided in the data tab may be used to identify the warranty
The type of inspection performed (e.g., “physical”, “diagnostic”, “functional”)
The ID of the inspector or technician
Detailed notes from the inspection
List of defects found during inspection
URLs of images taken during inspection
Whether the issue is covered under warranty
Response
The ID provided in the data tab may be used to identify the warranty
The unique identifier for the inspection record
The status of the inspection (e.g., “completed”, “pending_review”)
The date when the inspection was performed
Whether the warranty claim is valid based on inspection
The recommended action based on inspection results
Indicates whether the call was successful. true if successful, false if not.
curl --location --request POST 'https://api.stateset.com/v1/warranties/:id/inspect' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "e0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
"inspection_type": "diagnostic",
"inspector_id": "tech_456",
"inspection_notes": "Device shows signs of manufacturing defect in display panel",
"defects_found": ["dead_pixels", "backlight_bleeding"],
"inspection_images": ["https://images.stateset.com/inspect/img1.jpg", "https://images.stateset.com/inspect/img2.jpg"],
"warranty_valid": true
}'
{
"id": "e0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
"object": "warranty",
"inspected": true,
"inspection_id": "insp_abc123",
"inspection_status": "completed",
"inspection_date": "2024-01-15T14:30:00Z",
"warranty_valid": true,
"defects_found": ["dead_pixels", "backlight_bleeding"],
"recommended_action": "replace",
"inspector_id": "tech_456"
}