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"
}
This endpoint records inspection details for a warranty claim.
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"
}
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"
}