Skip to content

Get one repair

GET
/repairs/{repair_id}
curl --request GET \
--url https://api.fleet.co/platform/v1/repairs/42 \
--header 'Authorization: Bearer <token>'
repair_id
required

Repair id

string
/^[1-9]\d*$/

Example

42

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
Allowed values: REQUEST_RECEIVED AWAITING_PICKUP PICKED_UP REPAIR_IN_PROGRESS IN_RETURN COMPLETED ON_HOLD CANCELLED
repairer
required
string
nullable
pickup_tracking
required

Tracking number of the pickup to the repairer

string
nullable
return_tracking
required

Tracking number of the return from the repairer

string
nullable
loan_device_id
required

Company device lent during the repair

integer
nullable
requested_at
required
string
nullable
picked_up_at
required
string
nullable
returned_at
required
string
nullable
closed_at
required
string
nullable
created_at
required
string
nullable
updated_at
required
string
nullable

Example

{
"data": {
"status": "REQUEST_RECEIVED"
}
}

Validation error

Media typeapplication/json
object
message
required

Every validation failure, comma-separated

string
type
required
string
Allowed values: validation_error
error
required
string
Allowed values: validation_error

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

Unauthorized

Repair not found

Media typeapplication/json
object
error
required
string
Allowed values: REPAIR_NOT_FOUND

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
Allowed values: INTERNAL_ERROR

Example

{
"error": "INTERNAL_ERROR"
}

Rate limiting is temporarily unavailable; retry with backoff

Media typeapplication/json
object
message
required
string

Example generated

{
"message": "example"
}