Ir al contenido

Obtener una caja por ID

GET
/teams/{teamId}/boxes/{boxId}
curl --request GET \
--url https://api.dev.lade.com.mx/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/boxes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'

Devuelve el detalle de una caja del equipo.

teamId
required
string format: uuid

ID del equipo (UUID)

boxId
required
string format: uuid

ID de la caja (UUID)

Caja encontrada

Media typeapplication/json
object
box

Caja de traslado/almacenaje — contenedor de carga seca intercambiable, activo propio del equipo (no un atributo del vehículo)

object
id
string format: uuid
teamId
string format: uuid
code

Identificador visible de la caja, se normaliza a mayúsculas

string
boxType
string
Allowed values: SECA REFRIGERADA PLATAFORMA OTRO
capacityM3
number
nullable
capacityKg
number
nullable
dailyRate

Tarifa diaria por defecto para rentas de esta caja

number
status
string
Allowed values: DISPONIBLE EN_VIAJE APARTADA RENTADA MANTENIMIENTO DESACTIVADA
currentVehicleId
string
nullable
currentReservationId
string
nullable
currentClientId
string
nullable
currentClientName
string
nullable
currentLocation
object
notes
string
nullable
createdAt
string format: date-time
updatedAt
string format: date-time
Example
{
"box": {
"id": "bb0e8400-e29b-41d4-a716-446655440006",
"code": "CAJA-001",
"status": "DISPONIBLE"
}
}

Solicitud inválida

Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{
"error": "Validation failed",
"field": "email",
"message": "Invalid email format"
}

Sin permisos

Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{
"error": "Forbidden",
"message": "You don't have permission to access this resource"
}

Recurso no encontrado

Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{
"error": "Not found",
"message": "Resource not found"
}