Listar reservas de cajas del equipo
GET
/teams/{teamId}/box-reservations
const url = 'https://api.dev.lade.com.mx/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/box-reservations?status=RESERVADA&reservationType=TRIP_HOLD';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.dev.lade.com.mx/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/box-reservations?status=RESERVADA&reservationType=TRIP_HOLD' \ --header 'Authorization: Bearer <token>'Lista las reservas/rentas de cajas del equipo con filtros opcionales por estado, tipo, cliente y caja.
Authorizations
Sección titulada «Authorizations»Parameters
Sección titulada «Parameters»Path Parameters
Sección titulada «Path Parameters»teamId
required
string format: uuid
ID del equipo (UUID)
Query Parameters
Sección titulada «Query Parameters»status
string
reservationType
TRIP_HOLD: apartado breve ligado a un viaje (Fase 3, no implementado aún). STORAGE_RENTAL: renta de almacenaje independiente.
string
clientId
string format: uuid
boxId
string format: uuid
Responses
Sección titulada «Responses»Lista de reservas
Media typeapplication/json
object
data
Array<object>
Registro de que una caja quedó en manos de un cliente (renta de almacenaje o apartado ligado a un viaje)
object
id
string format: uuid
reservationId
string format: uuid
teamId
string format: uuid
boxId
string format: uuid
boxCode
string
clientId
string format: uuid
clientName
string
reservationType
TRIP_HOLD: apartado breve ligado a un viaje (Fase 3, no implementado aún). STORAGE_RENTAL: renta de almacenaje independiente.
string
tripId
string
status
string
startAt
string format: date-time
expectedEndAt
string format: date-time
actualEndAt
string format: date-time
dailyRate
number
billable
boolean
billedDays
integer
totalAmount
number
invoiceId
string
location
object
notes
string
createdAt
string format: date-time
updatedAt
string format: date-time
count
integer
Example
{ "data": [ { "id": "dd0e8400-e29b-41d4-a716-446655440008", "status": "ACTIVA" } ], "count": 1}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"}