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

Body

warranty_id
string
The ID provided in the data tab may be used to identify the warranty
inspection_type
string
The type of inspection performed (e.g., “physical”, “diagnostic”, “functional”)
inspector_id
string
The ID of the inspector or technician
inspection_notes
string
Detailed notes from the inspection
defects_found
array
List of defects found during inspection
inspection_images
array
URLs of images taken during inspection
warranty_valid
boolean
Whether the issue is covered under warranty

Response

id
string
The ID provided in the data tab may be used to identify the warranty
object
string
The object type
inspection_id
string
The unique identifier for the inspection record
inspection_status
string
The status of the inspection (e.g., “completed”, “pending_review”)
inspection_date
string
The date when the inspection was performed
warranty_valid
boolean
Whether the warranty claim is valid based on inspection
The recommended action based on inspection results
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/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"
}