Obtener una reserva de caja por ID
GET
/teams/{teamId}/box-reservations/{reservationId}
const url = 'https://api.dev.lade.com.mx/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/box-reservations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';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/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>'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)
reservationId
required
string format: uuid
ID de la reserva/renta de caja (UUID)
Responses
Sección titulada «Responses»Reserva encontrada
Media typeapplication/json
object
reservation
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
Example
{ "reservation": { "id": "dd0e8400-e29b-41d4-a716-446655440008", "status": "ACTIVA" }}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"}