Reservations temporarily hold a plant unit before checkout to prevent double-booking. When an active reservation exists for a plant, that unit is marked as unavailable in the public catalogue until the reservation expires or is cancelled. For the manual payment gateway, theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/scooller/Leben-site/llms.txt
Use this file to discover all available pages before exploring further.
session_token returned here is a mandatory input to the checkout request.
Authentication
All reservation endpoints require bothauth:sanctum and token.origin middleware:
- Header:
Authorization: Bearer <token> - Header:
Origin: <your-authorized-origin>(orReferer/X-Authorized-Url)
authorized_url configured on the token. A mismatch returns 403 La URL de origen no esta autorizada para este token.
POST /api/v1/reservations
Create a new reservation for a plant. The response includes asession_token that must be supplied when using the manual payment gateway at checkout.
Request body
The ID of the plant unit to reserve.
Response — 201 Created
Example
GET /api/v1/reservations/planta/
Check whether an active reservation currently exists for a specific plant.The correct route path is
/reservations/planta/{plantId} — note the Spanish segment planta. Requests to any other path variant will return 404.Path parameters
The ID of the plant whose reservation status you want to check.
Response
true if an active reservation exists for the plant, false otherwise.ISO 8601 datetime of reservation expiry. Only present when
reserved is true.Seconds remaining until expiry. Only present when
reserved is true.DELETE /api/v1/reservations/
Cancel an active reservation before it naturally expires. Once cancelled, the plant becomes available again immediately.Path parameters
The
session_token value returned when the reservation was created.Reservation lifecycle
Create reservation
POST /api/v1/reservations with plant_id. The plant is immediately marked as unavailable in the public catalogue.Proceed to checkout
Use the returned
session_token in the checkout request body when gateway is "manual". Redirect-based gateways (Transbank, Mercado Pago) do not require this token.Availability impact
A plant is considered unavailable when any of the following conditions are true:- An active
plant_reservationexists for that plant. - A completed
plant_reservationexists for that plant. - A
paymentlinked byplant_idhas statuscompletedorauthorized.
pending, processing, or pending_approval state without a completed reservation do not block availability on their own.