Get one repair
GET
/repairs/{repair_id}
const url = 'https://api.fleet.co/platform/v1/repairs/42';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.fleet.co/platform/v1/repairs/42 \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”repair_id
required
Repair id
string
Example
42Responses
Section titled “Responses”Repair
Media typeapplication/json
object
data
required
Open repair; closed repairs are listed by GET /repairs?device_id=
object
id
required
integer
device_id
required
integer
status
required
Repair progress. COMPLETED and CANCELLED are closed repairs.
string
repairer
required
string
pickup_tracking
required
Tracking number of the pickup to the repairer
string
return_tracking
required
Tracking number of the return from the repairer
string
loan_device_id
required
Company device lent during the repair
integer
requested_at
required
string
picked_up_at
required
string
returned_at
required
string
closed_at
required
string
created_at
required
string
updated_at
required
string
Example
{ "data": { "status": "REQUEST_RECEIVED" }}Validation error
Media typeapplication/json
object
message
required
Every validation failure, comma-separated
string
type
required
string
error
required
string
Example
{ "message": "Required, must be an ISO 3166-1 alpha-2 country code", "type": "validation_error", "error": "validation_error"}Missing, invalid, or revoked API key
Media typetext/plain
string
Example
UnauthorizedRepair not found
Media typeapplication/json
object
error
required
string
Example
{ "error": "REPAIR_NOT_FOUND"}Rate limit exceeded. The RateLimit-* headers give the limit and the reset time.
Media typetext/plain
string
Example
Too many requests, please try again later.Unexpected server error
Media typeapplication/json
object
error
required
string
Example
{ "error": "INTERNAL_ERROR"}Rate limiting is temporarily unavailable; retry with backoff
Media typeapplication/json
object
message
required
string
Example generated
{ "message": "example"}
