API & Webhooks

GUIDE: Bookings API, create bookings from your software

By: Diego Betancor, CTO · Computer engineer and business economist

With the bookings API you create a booking in one of your properties and instantly get the guest’s check-in link. To know when they complete registration, set up webhooks.

1. Generate your API key

Go to Integrations → API and create your key. Send it in every request in the Authorization header as a Bearer token.

2. Create the booking

curl -X POST https://app.registroparteviajeros.com/reservas \
  -H "Authorization: Bearer $RPV_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "property_id": "prop_xxxxxxxx",
    "reference": "HMABC123",
    "reservation_date": "2026-10-01",
    "check_in": "2026-11-10",
    "check_out": "2026-11-12"
  }'
Field Required Description
property_id Yes Property identifier (prop_…), shown in the dashboard.
reference No Reference from your system. Unique per property.
reservation_date Yes Booking date (YYYY-MM-DD).
check_in Yes Arrival date (YYYY-MM-DD).
check_out Yes Departure date, at least one night later.
guest No Guest details: name, surname, email, phone, number_of_guests.
send_to_guest No With true, we email the check-in link to the guest (requires guest.email).
payment_method No Defaults to PLATF (platform booking). With other payment methods, guest details are required.
{
  "id": "0192f3a4-…",
  "status": "created",
  "property_id": "prop_xxxxxxxx",
  "reference": "HMABC123",
  "checkin_code": "AbCd1234",
  "checkin_url": "https://app.registroparteviajeros.com/checkin/AbCd1234",
  "send_to_guest": false
}

checkin_url works from that moment: send it to the guest through your preferred channel or enable send_to_guest.

Common errors

Code Meaning
400 Invalid data. The response tells you which field to fix.
401 Missing or invalid API key.
403 The property does not exist or does not belong to your account.
409 A booking with that reference already exists in the property.
429 Too many requests in a row: wait a few seconds and retry.

Next step

Set up webhooks so your system is notified when the guest finishes registration.