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
}'
mutation warrantyRepairMutation {
warrantyRepair(
id: "${warrantyId}",
repairType: "${repairType}",
repairDescription: "${repairDescription}",
repairLocation: "${repairLocation}",
estimatedCost: ${estimatedCost},
pickupRequired: ${pickupRequired}
) {
warranty {
id,
status,
repair_ticket_id,
repair_status,
estimated_completion
}
userErrors {
field
message
}
}
}
`;
const warranties = await stateset.warranties.repair({
id: '0901f083-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
});
warranties = stateset.warranties.repair({
'id': '0901f083-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
})
warranties = Stateset::Warranty.repair({
id: '0901f083-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
})
warranties, err := stateset.Warranties.repair({
ID: '0901f083-aa1c-43c5-af5c-0a9d2fc64e30',
RepairType: 'hardware',
RepairDescription: 'Screen replacement needed due to manufacturing defect',
RepairLocation: 'authorized_service_center',
EstimatedCost: 150.00,
PickupRequired: true
})
Warranty warranties = stateset.Warranties.repair({
id: '0901f083-aa1c-43c5-af5c-0a9d2fc64e30',
repairType: 'hardware',
repairDescription: 'Screen replacement needed due to manufacturing defect',
repairLocation: 'authorized_service_center',
estimatedCost: 150.00,
pickupRequired: true
});
$warranties = $stateset->warranties->repair([
'id' => '0901f083-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
]);
var warranties = await stateset.Warranties.Repair(new {
Id = '0901f083-aa1c-43c5-af5c-0a9d2fc64e30',
RepairType = 'hardware',
RepairDescription = 'Screen replacement needed due to manufacturing defect',
RepairLocation = 'authorized_service_center',
EstimatedCost = 150.00,
PickupRequired = 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"
}
Repair Warranty Item
This endpoint initiates a repair for a warranty claim.
POST
/
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
}'
mutation warrantyRepairMutation {
warrantyRepair(
id: "${warrantyId}",
repairType: "${repairType}",
repairDescription: "${repairDescription}",
repairLocation: "${repairLocation}",
estimatedCost: ${estimatedCost},
pickupRequired: ${pickupRequired}
) {
warranty {
id,
status,
repair_ticket_id,
repair_status,
estimated_completion
}
userErrors {
field
message
}
}
}
`;
const warranties = await stateset.warranties.repair({
id: '0901f083-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
});
warranties = stateset.warranties.repair({
'id': '0901f083-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
})
warranties = Stateset::Warranty.repair({
id: '0901f083-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
})
warranties, err := stateset.Warranties.repair({
ID: '0901f083-aa1c-43c5-af5c-0a9d2fc64e30',
RepairType: 'hardware',
RepairDescription: 'Screen replacement needed due to manufacturing defect',
RepairLocation: 'authorized_service_center',
EstimatedCost: 150.00,
PickupRequired: true
})
Warranty warranties = stateset.Warranties.repair({
id: '0901f083-aa1c-43c5-af5c-0a9d2fc64e30',
repairType: 'hardware',
repairDescription: 'Screen replacement needed due to manufacturing defect',
repairLocation: 'authorized_service_center',
estimatedCost: 150.00,
pickupRequired: true
});
$warranties = $stateset->warranties->repair([
'id' => '0901f083-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
]);
var warranties = await stateset.Warranties.Repair(new {
Id = '0901f083-aa1c-43c5-af5c-0a9d2fc64e30',
RepairType = 'hardware',
RepairDescription = 'Screen replacement needed due to manufacturing defect',
RepairLocation = 'authorized_service_center',
EstimatedCost = 150.00,
PickupRequired = 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
The ID provided in the data tab may be used to identify the warranty
The type of repair needed (e.g., “hardware”, “software”, “cosmetic”)
Detailed description of the repair needed
Where the repair will be performed (e.g., “authorized_service_center”, “mail_in”, “on_site”)
Estimated cost of the repair (if applicable)
Whether pickup service is required for the item
Response
The ID provided in the data tab may be used to identify the warranty
The object type
The unique identifier for the repair ticket
The status of the repair (e.g., “scheduled”, “in_progress”, “completed”)
The location where the repair will be performed
The estimated completion date for the repair
URL to track the repair status
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
}'
mutation warrantyRepairMutation {
warrantyRepair(
id: "${warrantyId}",
repairType: "${repairType}",
repairDescription: "${repairDescription}",
repairLocation: "${repairLocation}",
estimatedCost: ${estimatedCost},
pickupRequired: ${pickupRequired}
) {
warranty {
id,
status,
repair_ticket_id,
repair_status,
estimated_completion
}
userErrors {
field
message
}
}
}
`;
const warranties = await stateset.warranties.repair({
id: '0901f083-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
});
warranties = stateset.warranties.repair({
'id': '0901f083-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
})
warranties = Stateset::Warranty.repair({
id: '0901f083-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
})
warranties, err := stateset.Warranties.repair({
ID: '0901f083-aa1c-43c5-af5c-0a9d2fc64e30',
RepairType: 'hardware',
RepairDescription: 'Screen replacement needed due to manufacturing defect',
RepairLocation: 'authorized_service_center',
EstimatedCost: 150.00,
PickupRequired: true
})
Warranty warranties = stateset.Warranties.repair({
id: '0901f083-aa1c-43c5-af5c-0a9d2fc64e30',
repairType: 'hardware',
repairDescription: 'Screen replacement needed due to manufacturing defect',
repairLocation: 'authorized_service_center',
estimatedCost: 150.00,
pickupRequired: true
});
$warranties = $stateset->warranties->repair([
'id' => '0901f083-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
]);
var warranties = await stateset.Warranties.Repair(new {
Id = '0901f083-aa1c-43c5-af5c-0a9d2fc64e30',
RepairType = 'hardware',
RepairDescription = 'Screen replacement needed due to manufacturing defect',
RepairLocation = 'authorized_service_center',
EstimatedCost = 150.00,
PickupRequired = 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"
}
⌘I