Get one storage stay
GET
/storage-stays/{storage_stay_id}
const url = 'https://api.fleet.co/platform/v1/storage-stays/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/storage-stays/42 \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”storage_stay_id
required
Storage stay id
string
Example
42Responses
Section titled “Responses”Storage stay
Media typeapplication/json
object
data
required
Current storage stay (ACTIVE or ENDING); past stays are listed by GET /storage-stays?device_id=
object
id
required
integer
device_id
required
integer
status
required
ACTIVE: stored at Fleet. ENDING: on its way back. ENDED: delivered back. CANCELLED: never stored.
string
country_code
required
Country of the Fleet storage (ISO alpha-2)
string
factory_reset
required
Whether the device was factory reset on intake
boolean
quality
required
Condition graded on intake
string
inbound_parcel_id
required
Shipment to the storage; listed in the device parcels
integer
outbound_parcel_id
required
Shipment out of the storage; listed in the device parcels
integer
started_at
required
string
ended_at
required
string
created_at
required
string
updated_at
required
string
Example
{ "data": { "status": "ACTIVE" }}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
UnauthorizedStorage stay not found
Media typeapplication/json
object
error
required
string
Example
{ "error": "STORAGE_STAY_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"}
