Skip to main content
POST
Reserva Creada

Body

application/json

Payload del webhook de reserva

Estructura completa del payload enviado en webhooks de reservas

type
enum<string>
required

Tipo de evento de webhook

Available options:
reservations.reservation.created
Allowed value: "reservations.reservation.created"
Example:

"reservations.reservation.created"

data
object
required

Datos del evento

entityId
string
required

ID de la entidad afectada (reserva)

Pattern: ^res-[a-zA-Z0-9]{17}$
Example:

"res-xxxxxxxxxxxxxxxxx"

entityType
enum<string>
required

Tipo de entidad

Available options:
reservation
Allowed value: "reservation"
Example:

"reservation"

date
string<date-time>
required

Fecha y hora del evento

Example:

"2024-07-30T09:00:00Z"

eventId
string
required

ID único del evento de webhook

Pattern: ^swev-[a-zA-Z0-9]{17}$
Example:

"swev-xxxxxxxxxxxxxxxxx"

Response

200

OK