# BookingSync

> Run vacation rentals in BookingSync (Smily): create and update bookings, find free rentals, keep guests and booking notes, record payments, and start workflows when a booking comes in or is canceled.

App · 22 actions. Web page: https://docs.lodol.com/docs/integrations/bookingsync

## Actions

### Add booking comment

Add a staff comment to a booking.

**Inputs**

- Booking ID (`booking_id`, text, required): The booking's ID, from 'List bookings' or an earlier step.
- Comment (`content`, text, required): The comment, up to 6000 characters.
- Visible to all users (`visible_to_all_users`, true/false): Off to hide it from users with limited roles, such as cleaners.

**Outputs**

- `comment` (object): The new comment

**Example output**

```json
{
  "comment": {
    "content": "Guest asked for a cot.",
    "created_at": "2026-11-30T15:08:04Z",
    "editable": true,
    "id": 3,
    "links": {
      "account": 7,
      "booking": 203
    },
    "updated_at": "2026-11-30T15:08:04Z"
  }
}
```

### Cancel booking

Cancel a booking, freeing the rental's calendar.

**Inputs**

- Booking ID (`booking_id`, text, required): The booking's ID, from 'List bookings' or an earlier step.

**Outputs**

- `booking_id` (text): The booking canceled
- `canceled` (true/false): True once it is canceled

**Example output**

```json
{
  "booking_id": "203",
  "canceled": true
}
```

### Cancel payment

Cancel a recorded payment.

**Inputs**

- Payment ID (`payment_id`, text, required): The payment's ID, from 'List payments'.

**Outputs**

- `canceled` (true/false): True once it is canceled
- `payment_id` (text): The payment canceled

**Example output**

```json
{
  "canceled": true,
  "payment_id": "2"
}
```

### Create booking

Book a rental for a stay, or block it as unavailable, with a guest and prices if given.

**Inputs**

- Rental (`rental_id`, text, required): The rental. Pick one, or give its ID.
- Arrival date (`start_date`, date, required): The day the guest arrives.
- Departure date (`end_date`, date, required): The day the guest leaves.
- Arrival time (`arrival_time`, time): Check-in time, in the rental's local time. Defaults to the rental's check-in time.
- Departure time (`departure_time`, time): Check-out time, in the rental's local time. Defaults to the rental's check-out time.
- Kind (`status`, text): A booking, or a blocked (unavailable) period. Defaults to a booking. One of: `booked` (Booked (default)), `unavailable` (Unavailable (blocked)). Default: `booked`.
- Guest (`guest_id`, text): The guest staying.
- Adults (`adults`, number): How many adults. At least 0.
- Children (`children`, number): How many children. At least 0.
- Price (`initial_price`, number): The price before any discount. At least 0.
- Final price (`final_price`, number): The price after any discount. At least 0.
- Currency (`currency`, text): Three-letter currency code, such as `EUR`.
- Notes (`notes`, text): Notes on the booking.

**Outputs**

- `booking` (object): The new booking

**Example output**

```json
{
  "booking": {
    "adults": 4,
    "children": 2,
    "currency": "EUR",
    "end_at": "2026-12-19T10:00:00Z",
    "end_at_global": "2026-12-19T09:00:00Z",
    "final_price": "2700.0",
    "id": 203,
    "initial_price": "3000.0",
    "links": {
      "account": 7,
      "client": 37,
      "rental": 16,
      "source": 1
    },
    "notes": "Late arrival",
    "reference": "00203A",
    "start_at": "2026-12-12T16:00:00Z",
    "start_at_global": "2026-12-12T15:00:00Z",
    "status": "Booked",
    "updated_at": "2026-11-30T15:08:04Z"
  }
}
```

### Create guest

Add a guest, with an email, phone and address if given.

**Inputs**

- Full name (`fullname`, text, required): The guest's full name.
- Email (`email`, text): Email address.
- Phone (`phone`, text): Phone number.
- Address (`address1`, text): Street address.
- City (`city`, text): City.
- ZIP code (`zip_code`, text): ZIP or postal code.
- Country code (`country_code`, text): Two-letter country code, such as `FR`.
- Company (`company`, text): Company name.
- Notes (`notes`, text): Notes about the guest.

**Outputs**

- `guest` (object): The new guest

**Example output**

```json
{
  "guest": {
    "addresses": [
      {
        "address1": "1 Rue Haute",
        "city": "Lyon",
        "country_code": "FR",
        "zip": "69001"
      }
    ],
    "company": "",
    "created_at": "2026-11-30T15:08:04Z",
    "emails": [
      {
        "email": "clementina@example.com",
        "label": "default",
        "primary": true
      }
    ],
    "fullname": "Clementina Kling",
    "id": 37,
    "notes": "",
    "phones": [
      {
        "label": "phone",
        "number": "+33 6 12 34 56 78",
        "primary": true
      }
    ],
    "updated_at": "2026-11-30T15:08:04Z"
  }
}
```

### Create inquiry

Add an inquiry from a prospective guest about a rental, such as one from a website form.

**Inputs**

- Rental (`rental_id`, text, required): The rental. Pick one, or give its ID.
- First name (`firstname`, text, required): The guest's first name.
- Last name (`lastname`, text, required): The guest's last name.
- Email (`email`, text, required): The guest's email address.
- Arrival date (`start_date`, date): The day they want to arrive.
- Departure date (`end_date`, date): The day they want to leave.
- Adults (`adults`, number): How many adults. At least 1.
- Children (`children`, number): How many children. At least 0.
- Message (`message`, text): Their message, up to 500 characters.
- Phone (`phone`, text): Their phone number. Give the country code with it.
- Country code (`country_code`, text): Their two-letter country code, such as `GB`.

**Outputs**

- `inquiry` (object): The new inquiry

**Example output**

```json
{
  "inquiry": {
    "adults": 4,
    "children": 2,
    "country_code": "GB",
    "created_at": "2026-11-30T15:08:04Z",
    "email": "john@example.com",
    "end_at": "2026-12-19T10:00:00Z",
    "firstname": "John",
    "id": 1,
    "lastname": "Smith",
    "links": {
      "booking": 0,
      "rental": 16,
      "source": 0
    },
    "message": "Is there parking?",
    "start_at": "2026-12-12T16:00:00Z"
  }
}
```

### Delete booking comment

Delete a booking comment.

**Inputs**

- Comment ID (`comment_id`, text, required): The comment's ID, from 'List booking comments'.

**Outputs**

- `comment_id` (text): The comment deleted
- `deleted` (true/false): True once it is gone

**Example output**

```json
{
  "comment_id": "3",
  "deleted": true
}
```

### Find available rentals

Find the rentals free between two dates, optionally for a number of guests.

**Inputs**

- From (`start_date`, date, required): The first night.
- Until (`end_date`, date, required): The departure day.
- Adults (`adults`, number): How many adults, to price the stay. At least 1.
- Children (`children`, number): How many children, to price the stay. At least 0.
- Page (`page`, number): Which page of results, from 1. Defaults to the first. At least 1.
- Per page (`per_page`, number): How many to return, up to 100. From 1 to 100.

**Outputs**

- `count` (number): How many were returned on this page
- `page` (number): The page returned
- `rentals` (list): The available rentals
- `total_pages` (number): How many pages there are

**Example output**

```json
{
  "count": 1,
  "page": 1,
  "rentals": [
    {
      "bathrooms_count": 3,
      "bedrooms_count": 4,
      "checkin_time": 16,
      "checkout_time": 10,
      "city": "Nevache",
      "country_code": "FR",
      "currency": "EUR",
      "headline": {
        "en": "Villa in Nevache, France"
      },
      "id": 16,
      "max_price": "600.0",
      "min_price": "420.0",
      "name": "Cottage 1",
      "published_at": "2026-11-30T15:08:04Z",
      "rental_type": "villa",
      "sleeps": 8,
      "updated_at": "2026-11-30T15:08:04Z"
    }
  ],
  "total_pages": 1
}
```

### Get account

Get the BookingSync account the connection reaches: its business name, email and status.

**Inputs**: None.

**Outputs**

- `account` (object): The account

**Example output**

```json
{
  "account": {
    "business_name": "Alpine Stays",
    "city": "Nevache",
    "country_code": "FR",
    "created_at": "2026-11-30T15:08:04Z",
    "default_locale": "en",
    "email": "hello@example.com",
    "id": 7,
    "status": "active"
  }
}
```

### Get booking

Get one booking with its dates, guests, prices and rental.

**Inputs**

- Booking ID (`booking_id`, text, required): The booking's ID, from 'List bookings' or an earlier step.

**Outputs**

- `booking` (object): The booking

**Example output**

```json
{
  "booking": {
    "adults": 4,
    "children": 2,
    "currency": "EUR",
    "end_at": "2026-12-19T10:00:00Z",
    "end_at_global": "2026-12-19T09:00:00Z",
    "final_price": "2700.0",
    "id": 203,
    "initial_price": "3000.0",
    "links": {
      "account": 7,
      "client": 37,
      "rental": 16,
      "source": 1
    },
    "notes": "Late arrival",
    "reference": "00203A",
    "start_at": "2026-12-12T16:00:00Z",
    "start_at_global": "2026-12-12T15:00:00Z",
    "status": "Booked",
    "updated_at": "2026-11-30T15:08:04Z"
  }
}
```

### Get guest

Get one guest with their emails, phones and addresses.

**Inputs**

- Guest (`guest_id`, text, required): The guest. Pick one, or give its ID.

**Outputs**

- `guest` (object): The guest

**Example output**

```json
{
  "guest": {
    "addresses": [
      {
        "address1": "1 Rue Haute",
        "city": "Lyon",
        "country_code": "FR",
        "zip": "69001"
      }
    ],
    "company": "",
    "created_at": "2026-11-30T15:08:04Z",
    "emails": [
      {
        "email": "clementina@example.com",
        "label": "default",
        "primary": true
      }
    ],
    "fullname": "Clementina Kling",
    "id": 37,
    "notes": "",
    "phones": [
      {
        "label": "phone",
        "number": "+33 6 12 34 56 78",
        "primary": true
      }
    ],
    "updated_at": "2026-11-30T15:08:04Z"
  }
}
```

### Get rental

Get one rental with its size, prices and check-in and check-out times.

**Inputs**

- Rental (`rental_id`, text, required): The rental. Pick one, or give its ID.

**Outputs**

- `rental` (object): The rental

**Example output**

```json
{
  "rental": {
    "bathrooms_count": 3,
    "bedrooms_count": 4,
    "checkin_time": 16,
    "checkout_time": 10,
    "city": "Nevache",
    "country_code": "FR",
    "currency": "EUR",
    "headline": {
      "en": "Villa in Nevache, France"
    },
    "id": 16,
    "max_price": "600.0",
    "min_price": "420.0",
    "name": "Cottage 1",
    "published_at": "2026-11-30T15:08:04Z",
    "rental_type": "villa",
    "sleeps": 8,
    "updated_at": "2026-11-30T15:08:04Z"
  }
}
```

### List booking comments

List the comments staff left on the account's bookings.

**Inputs**

- Page (`page`, number): Which page of results, from 1. Defaults to the first. At least 1.
- Per page (`per_page`, number): How many to return, up to 100. From 1 to 100.

**Outputs**

- `booking_comments` (list): The comments
- `count` (number): How many were returned on this page
- `page` (number): The page returned
- `total_pages` (number): How many pages there are

**Example output**

```json
{
  "booking_comments": [
    {
      "content": "Guest asked for a cot.",
      "created_at": "2026-11-30T15:08:04Z",
      "editable": true,
      "id": 3,
      "links": {
        "account": 7,
        "booking": 203
      },
      "updated_at": "2026-11-30T15:08:04Z"
    }
  ],
  "count": 1,
  "page": 1,
  "total_pages": 1
}
```

### List booking sources

List the sources bookings come from, such as Airbnb or your website.

**Inputs**

- Page (`page`, number): Which page of results, from 1. Defaults to the first. At least 1.
- Per page (`per_page`, number): How many to return, up to 100. From 1 to 100.

**Outputs**

- `count` (number): How many were returned on this page
- `page` (number): The page returned
- `sources` (list): The sources
- `total_pages` (number): How many pages there are

**Example output**

```json
{
  "count": 1,
  "page": 1,
  "sources": [
    {
      "created_at": "2026-11-30T15:08:04Z",
      "id": 1,
      "internal": false,
      "name": "Airbnb",
      "position": 1
    }
  ],
  "total_pages": 1
}
```

### List bookings

List bookings, by default future ones that aren't canceled, with filters for dates, status, rental, guest and changes.

**Inputs**

- Ending after (`from_time`, date and time): Only bookings ending after this time. Defaults to now.
- Starting before (`until`, date and time): Only bookings starting before this time.
- Statuses (`status`, list): Only bookings with these statuses. One or more of: `booked`, `tentative` (Tentative (on hold)), `unavailable` (Unavailable (blocked)).
- Rental (`rental_id`, text): Only this rental's bookings.
- Guest (`guest_id`, text): Only this guest's bookings.
- Include canceled (`include_canceled`, true/false): Also list canceled bookings.
- Changed since (`updated_since`, date and time): Only those changed after this time.
- Page (`page`, number): Which page of results, from 1. Defaults to the first. At least 1.
- Per page (`per_page`, number): How many to return, up to 100. From 1 to 100.

**Outputs**

- `bookings` (list): The bookings
- `count` (number): How many were returned on this page
- `page` (number): The page returned
- `total_pages` (number): How many pages there are

**Example output**

```json
{
  "bookings": [
    {
      "adults": 4,
      "children": 2,
      "currency": "EUR",
      "end_at": "2026-12-19T10:00:00Z",
      "end_at_global": "2026-12-19T09:00:00Z",
      "final_price": "2700.0",
      "id": 203,
      "initial_price": "3000.0",
      "links": {
        "account": 7,
        "client": 37,
        "rental": 16,
        "source": 1
      },
      "notes": "Late arrival",
      "reference": "00203A",
      "start_at": "2026-12-12T16:00:00Z",
      "start_at_global": "2026-12-12T15:00:00Z",
      "status": "Booked",
      "updated_at": "2026-11-30T15:08:04Z"
    }
  ],
  "count": 1,
  "page": 1,
  "total_pages": 1
}
```

### List guests

List the account's guests, optionally only those changed since a time.

**Inputs**

- Changed since (`updated_since`, date and time): Only those changed after this time.
- Page (`page`, number): Which page of results, from 1. Defaults to the first. At least 1.
- Per page (`per_page`, number): How many to return, up to 100. From 1 to 100.

**Outputs**

- `clients` (list): The guests
- `count` (number): How many were returned on this page
- `page` (number): The page returned
- `total_pages` (number): How many pages there are

**Example output**

```json
{
  "clients": [
    {
      "addresses": [
        {
          "address1": "1 Rue Haute",
          "city": "Lyon",
          "country_code": "FR",
          "zip": "69001"
        }
      ],
      "company": "",
      "created_at": "2026-11-30T15:08:04Z",
      "emails": [
        {
          "email": "clementina@example.com",
          "label": "default",
          "primary": true
        }
      ],
      "fullname": "Clementina Kling",
      "id": 37,
      "notes": "",
      "phones": [
        {
          "label": "phone",
          "number": "+33 6 12 34 56 78",
          "primary": true
        }
      ],
      "updated_at": "2026-11-30T15:08:04Z"
    }
  ],
  "count": 1,
  "page": 1,
  "total_pages": 1
}
```

### List inquiries

List the inquiries guests sent about the account's rentals.

**Inputs**

- Page (`page`, number): Which page of results, from 1. Defaults to the first. At least 1.
- Per page (`per_page`, number): How many to return, up to 100. From 1 to 100.

**Outputs**

- `count` (number): How many were returned on this page
- `inquiries` (list): The inquiries
- `page` (number): The page returned
- `total_pages` (number): How many pages there are

**Example output**

```json
{
  "count": 1,
  "inquiries": [
    {
      "adults": 4,
      "children": 2,
      "country_code": "GB",
      "created_at": "2026-11-30T15:08:04Z",
      "email": "john@example.com",
      "end_at": "2026-12-19T10:00:00Z",
      "firstname": "John",
      "id": 1,
      "lastname": "Smith",
      "links": {
        "booking": 0,
        "rental": 16,
        "source": 0
      },
      "message": "Is there parking?",
      "start_at": "2026-12-12T16:00:00Z"
    }
  ],
  "page": 1,
  "total_pages": 1
}
```

### List payments

List the payments recorded on the account's bookings.

**Inputs**

- Page (`page`, number): Which page of results, from 1. Defaults to the first. At least 1.
- Per page (`per_page`, number): How many to return, up to 100. From 1 to 100.

**Outputs**

- `count` (number): How many were returned on this page
- `page` (number): The page returned
- `payments` (list): The payments
- `total_pages` (number): How many pages there are

**Example output**

```json
{
  "count": 1,
  "page": 1,
  "payments": [
    {
      "amount_in_cents": 100000,
      "created_at": "2026-11-30T15:08:04Z",
      "currency": "EUR",
      "email": "clementina@example.com",
      "fullname": "Clementina Kling",
      "id": 2,
      "kind": "wiretransfer",
      "links": {
        "account": 7,
        "bookings": [
          203
        ]
      },
      "notes": "",
      "paid_at": "2026-11-30T15:08:04Z"
    }
  ],
  "total_pages": 1
}
```

### List rentals

List the account's rentals (properties), optionally only those changed since a time.

**Inputs**

- Changed since (`updated_since`, date and time): Only those changed after this time.
- Page (`page`, number): Which page of results, from 1. Defaults to the first. At least 1.
- Per page (`per_page`, number): How many to return, up to 100. From 1 to 100.

**Outputs**

- `count` (number): How many were returned on this page
- `page` (number): The page returned
- `rentals` (list): The rentals
- `total_pages` (number): How many pages there are

**Example output**

```json
{
  "count": 1,
  "page": 1,
  "rentals": [
    {
      "bathrooms_count": 3,
      "bedrooms_count": 4,
      "checkin_time": 16,
      "checkout_time": 10,
      "city": "Nevache",
      "country_code": "FR",
      "currency": "EUR",
      "headline": {
        "en": "Villa in Nevache, France"
      },
      "id": 16,
      "max_price": "600.0",
      "min_price": "420.0",
      "name": "Cottage 1",
      "published_at": "2026-11-30T15:08:04Z",
      "rental_type": "villa",
      "sleeps": 8,
      "updated_at": "2026-11-30T15:08:04Z"
    }
  ],
  "total_pages": 1
}
```

### Record payment

Record a payment a guest made for a booking outside BookingSync, such as cash or a wire transfer. It takes no money.

**Inputs**

- Booking ID (`booking_id`, text, required): The booking's ID, from 'List bookings' or an earlier step.
- Amount (`amount`, number, required): How much was paid, such as 250.50. At least 0.01.
- Currency (`currency`, text, required): Three-letter currency code, such as `EUR`.
- Method (`payment_method`, text, required): How it was paid. One of: `cash`, `cheque`, `credit-card` (Credit card), `wiretransfer` (Wire transfer), `paypal` (PayPal (outside BookingSync)), `online` (Online (outside BookingSync)), `travel-cheque` (Travel cheque), `credits`.
- Paid at (`paid_at`, date and time, required): When it was paid; must be in the past.
- Payer (`fullname`, text): The payer's name.
- Payer email (`email`, text): The payer's email address.
- Notes (`notes`, text): Notes on the payment.

**Outputs**

- `payment` (object): The payment recorded

**Example output**

```json
{
  "payment": {
    "amount_in_cents": 100000,
    "created_at": "2026-11-30T15:08:04Z",
    "currency": "EUR",
    "email": "clementina@example.com",
    "fullname": "Clementina Kling",
    "id": 2,
    "kind": "wiretransfer",
    "links": {
      "account": 7,
      "bookings": [
        203
      ]
    },
    "notes": "",
    "paid_at": "2026-11-30T15:08:04Z"
  }
}
```

### Update booking

Change a booking's dates, guest, numbers, prices, notes or door code. Only the fields given change.

**Inputs**

- Booking ID (`booking_id`, text, required): The booking's ID, from 'List bookings' or an earlier step.
- Arrival date (`start_date`, date): A new arrival day.
- Departure date (`end_date`, date): A new departure day.
- Arrival time (`arrival_time`, time): Check-in time, in the rental's local time. Defaults to the rental's check-in time.
- Departure time (`departure_time`, time): Check-out time, in the rental's local time. Defaults to the rental's check-out time.
- Guest (`guest_id`, text): A new guest for the booking.
- Adults (`adults`, number): How many adults. At least 0.
- Children (`children`, number): How many children. At least 0.
- Price (`initial_price`, number): The price before any discount. At least 0.
- Final price (`final_price`, number): The price after any discount. At least 0.
- Currency (`currency`, text): Three-letter currency code, such as `EUR`.
- Notes (`notes`, text): Notes on the booking.
- Door code (`door_key_code`, text): The door key code for the stay.

**Outputs**

- `booking` (object): The booking

**Example output**

```json
{
  "booking": {
    "adults": 5,
    "children": 2,
    "currency": "EUR",
    "end_at": "2026-12-19T10:00:00Z",
    "end_at_global": "2026-12-19T09:00:00Z",
    "final_price": "2700.0",
    "id": 203,
    "initial_price": "3000.0",
    "links": {
      "account": 7,
      "client": 37,
      "rental": 16,
      "source": 1
    },
    "notes": "Late arrival",
    "reference": "00203A",
    "start_at": "2026-12-12T16:00:00Z",
    "start_at_global": "2026-12-12T15:00:00Z",
    "status": "Booked",
    "updated_at": "2026-11-30T15:08:04Z"
  }
}
```

### Update guest

Change a guest's name, company or notes. Only the fields given change.

**Inputs**

- Guest (`guest_id`, text, required): The guest. Pick one, or give its ID.
- Full name (`fullname`, text): A new full name.
- Company (`company`, text): A new company name.
- Notes (`notes`, text): New notes, replacing the old ones.

**Outputs**

- `guest` (object): The guest

**Example output**

```json
{
  "guest": {
    "addresses": [
      {
        "address1": "1 Rue Haute",
        "city": "Lyon",
        "country_code": "FR",
        "zip": "69001"
      }
    ],
    "company": "",
    "created_at": "2026-11-30T15:08:04Z",
    "emails": [
      {
        "email": "clementina@example.com",
        "label": "default",
        "primary": true
      }
    ],
    "fullname": "Clementina Kling",
    "id": 37,
    "notes": "Prefers ground floor",
    "phones": [
      {
        "label": "phone",
        "number": "+33 6 12 34 56 78",
        "primary": true
      }
    ],
    "updated_at": "2026-11-30T15:08:04Z"
  }
}
```
