Ir al contenido

Listar reservas de una caja

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

Historial de reservas/rentas de una caja específica.

teamId
required
string format: uuid

ID del equipo (UUID)

boxId
required
string format: uuid

ID de la caja (UUID)

Reservas de la caja

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
nullable
clientId
string format: uuid
clientName
string
nullable
reservationType

TRIP_HOLD: apartado breve ligado a un viaje (Fase 3, no implementado aún). STORAGE_RENTAL: renta de almacenaje independiente.

string
Allowed values: TRIP_HOLD STORAGE_RENTAL
tripId
string
nullable
status
string
Allowed values: RESERVADA ACTIVA FINALIZADA CANCELADA
startAt
string format: date-time
expectedEndAt
string format: date-time
nullable
actualEndAt
string format: date-time
nullable
dailyRate
number
billable
boolean
billedDays
integer
nullable
totalAmount
number
nullable
invoiceId
string
nullable
location
object
notes
string
nullable
createdAt
string format: date-time
updatedAt
string format: date-time
count
integer
Example
{
"data": [
{
"id": "dd0e8400-e29b-41d4-a716-446655440008",
"status": "FINALIZADA"
}
],
"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"
}