# Beds24

> Read bookings, guest messages, properties, room availability and inventory in Beds24.

App · 16 actions. Web page: https://docs.lodol.com/docs/integrations/beds24

## Actions

### Get room availability

Get room availability.

**Inputs**

- Room (`room_id`, list): Room id.
- Property (`property_id`, list): Property id.
- Start date (`start_date`, date): Start date.
- End date (`end_date`, date): End date.
- Page (`page`, number): Page.

**Outputs**

- `data` (object): The response from Beds24.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "availability": {},
        "name": "example",
        "propertyId": 1,
        "roomId": 1
      }
    ],
    "pages": {
      "nextPageExists": true,
      "nextPageLink": "example"
    },
    "success": true,
    "type": "example"
  }
}
```

### Get room calendar

Get room calendar.

**Inputs**

- Start date (`start_date`, date, required): Start date.
- End date (`end_date`, date, required): End date.
- Room (`room_id`, list): Room id.
- Property (`property_id`, list): Property id.
- Include num avail (`include_num_avail`, true/false): Include num avail.
- Include min stay (`include_min_stay`, true/false): Include min stay.
- Include max stay (`include_max_stay`, true/false): Include max stay.
- Include multiplier (`include_multiplier`, true/false): Include multiplier.
- Include override (`include_override`, true/false): Include override.
- Include prices (`include_prices`, true/false): Include prices.
- Include linked prices (`include_linked_prices`, true/false): Include linked prices.
- Include channels (`include_channels`, true/false): Include channels.
- Page (`page`, number): Page.

**Outputs**

- `data` (object): The response from Beds24.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "calendar": [
          {}
        ],
        "propertyId": 1,
        "roomId": 1
      }
    ],
    "pages": {
      "nextPageExists": true,
      "nextPageLink": "example"
    },
    "success": true,
    "type": "example"
  }
}
```

### List accounts

List accounts.

**Inputs**

- Include sub accounts (`include_sub_accounts`, true/false): Include sub accounts.
- Include usage (`include_usage`, true/false): Include usage.
- Include languages (`include_languages`, list): Include languages. One or more of: `all`, `en`, `ar`, `bg`, `ca`, `cs`, `da`, `de`, `el`, `es`, and 29 more.

**Outputs**

- `data` (object): The response from Beds24.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "balance": 1,
        "channelCollectInvoice": "example",
        "charge": 1,
        "controlCss": "example",
        "controlLanguage": "example",
        "controlMenu": "example",
        "controlText": "example",
        "dateFormat": "example",
        "decimalPlaces": "example",
        "deduceLanguage": "example",
        "exportData": "example",
        "hidePages": "example",
        "hideSettings": "example",
        "id": 1,
        "oneTimeVouchers": "example",
        "readonlyPages": "example",
        "subAccounts": [
          {}
        ],
        "subControlCss": "example",
        "subControlText": "example",
        "subHidePages": "example",
        "subHideSettings": "example",
        "subReadonlyPages": "example",
        "template1": "example",
        "template2": "example",
        "template3": "example",
        "template4": "example",
        "template5": "example",
        "template6": "example",
        "template7": "example",
        "template8": "example",
        "timezone": "example",
        "unitStatusValues": [
          "example"
        ],
        "usage": {},
        "windowStyle": "example"
      }
    ],
    "pages": {
      "nextPageExists": true,
      "nextPageLink": "example"
    },
    "success": true,
    "type": "example"
  }
}
```

### List airbnb listings

List airbnb listings.

**Inputs**

- Airbnb user ID (`airbnb_user_id`, text, required): Airbnb user id.
- Airbnb listing ID (`airbnb_listing_id`, text): Airbnb listing id.
- Airbnb api version (`airbnb_api_version`, text): Airbnb api version.

**Outputs**

- `data` (object): The response from Beds24.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "airbnbListing": {},
        "enabled": true,
        "name": "example",
        "roomId": 1
      }
    ],
    "pages": {
      "nextPageExists": true,
      "nextPageLink": "example"
    },
    "success": true,
    "type": "example"
  }
}
```

### List airbnb reviews

List airbnb reviews.

**Inputs**

- Room (`room_id`, number, required): Room id.

**Outputs**

- `data` (object): The response from Beds24.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "category_ratings": [
          {}
        ],
        "expires_at": 1,
        "first_completed_at": "example",
        "hidden": true,
        "id": "example",
        "overall_rating": 1,
        "private_feedback": "example",
        "public_review": "example",
        "responded_at": "example",
        "reviewee_id": "example",
        "reviewee_response": "example",
        "reviewee_role": "example",
        "reviewer_id": "example",
        "reviewer_role": "example",
        "submitted": true,
        "submitted_at": "example"
      }
    ],
    "pages": {
      "nextPageExists": true,
      "nextPageLink": "example"
    },
    "success": true,
    "type": "example"
  }
}
```

### List airbnb users

List airbnb users.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Beds24.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "airbnbUser": {}
      }
    ],
    "pages": {
      "nextPageExists": true,
      "nextPageLink": "example"
    },
    "success": true,
    "type": "example"
  }
}
```

### List booking com reviews

List booking com reviews.

**Inputs**

- Property (`property_id`, number, required): Property id.
- From (`from`, date, required): From.

**Outputs**

- `data` (object): The response from Beds24.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "content": {},
        "created_timestamp": "example",
        "last_change_timestamp": "example",
        "reply": {},
        "reservation_id": 1,
        "review_id": "example",
        "reviewer": {},
        "scoring": {}
      }
    ],
    "pages": {
      "nextPageExists": true,
      "nextPageLink": "example"
    },
    "success": true,
    "type": "example"
  }
}
```

### List booking invoices

List booking invoices.

**Inputs**

- Booking (`booking_id`, list): Booking id.
- Page (`page`, number): Page.

**Outputs**

- `data` (object): The response from Beds24.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "invoiceDate": "example",
        "invoiceId": 1,
        "invoiceItems": [
          {}
        ]
      }
    ],
    "pages": {
      "nextPageExists": true,
      "nextPageLink": "example"
    },
    "success": true,
    "type": "example"
  }
}
```

### List booking messages

List booking messages.

**Inputs**

- Id (`id`, list): Id.
- Property (`property_id`, list): Property id.
- Room (`room_id`, list): Room id.
- Booking (`booking_id`, list): Booking id.
- Master ID (`master_id`, list): Master id.
- Filter (`filter`, text): Filter. One of: `read`, `unread`.
- Max age (`max_age`, number): Max age. From 1 to 999.
- Source (`source`, text): Source. One of: `host`, `guest`, `internalNote`, `system`.
- Page (`page`, number): Page.

**Outputs**

- `data` (object): The response from Beds24.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "attachment": "example",
        "attachmentMimeType": "image/jpeg",
        "attachmentName": "example",
        "authorOwnerId": 1,
        "bookingId": 1,
        "id": 1,
        "message": "example",
        "propertyId": 1,
        "read": true,
        "roomId": 1,
        "source": "host",
        "time": "example"
      }
    ],
    "pages": {
      "nextPageExists": true,
      "nextPageLink": "example"
    },
    "success": true,
    "type": "example"
  }
}
```

### List bookings

List bookings.

**Inputs**

- Filter (`filter`, text): Filter. One of: `arrivals`, `departures`, `new`, `current`.
- Property (`property_id`, list): Property id.
- Room (`room_id`, list): Room id.
- Id (`id`, list): Id.
- Master ID (`master_id`, list): Master id.
- Api reference (`api_reference`, list): Api reference.
- Channel (`channel`, text): Channel. One of: `agoda`, `airbnb`, `asiatravel`, `atraveode`, `booking`, `bookingpage`, `despegar`, `direct`, `edreamsodigeo`, `expedia`, and 45 more.
- Arrival (`arrival`, date): Arrival.
- Arrival from (`arrival_from`, date): Arrival from.
- Arrival to (`arrival_to`, date): Arrival to.
- Departure (`departure`, date): Departure.
- Departure from (`departure_from`, date): Departure from.
- Departure to (`departure_to`, date): Departure to.
- Booking time from (`booking_time_from`, date and time): Booking time from.
- Booking time to (`booking_time_to`, date and time): Booking time to.
- Modified from (`modified_from`, date and time): Modified from.
- Modified to (`modified_to`, date and time): Modified to.
- Search string (`search_string`, text): Search string.
- Include invoice items (`include_invoice_items`, true/false): Include invoice items.
- Include info items (`include_info_items`, true/false): Include info items.
- Include guests (`include_guests`, true/false): Include guests.
- Include booking group (`include_booking_group`, true/false): Include booking group.
- Status (`status`, list): Status. One or more of: `confirmed`, `request`, `new`, `cancelled`, `black`, `inquiry`.
- Page (`page`, number): Page.

**Outputs**

- `data` (object): The response from Beds24.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "actions": {},
        "address": "example",
        "allowAutoAction": "disable",
        "allowCancellation": {},
        "allowChannelUpdate": "none",
        "allowReview": "default",
        "apiMessage": "example",
        "apiReference": "example",
        "apiSource": "example",
        "apiSourceId": 1,
        "arrival": "example",
        "arrivalTime": "example",
        "bookingGroup": {},
        "bookingTime": "example",
        "cancelTime": "example",
        "channel": "agoda",
        "city": "example",
        "comments": "example",
        "commission": 1,
        "company": "example",
        "country": "example",
        "country2": "example",
        "custom1": "example",
        "custom10": "example",
        "custom2": "example",
        "custom3": "example",
        "custom4": "example",
        "custom5": "example",
        "custom6": "example",
        "custom7": "example",
        "custom8": "example",
        "custom9": "example",
        "departure": "example",
        "deposit": 1,
        "email": "example",
        "fax": "example",
        "firstName": "example",
        "flagColor": "example",
        "flagText": "example",
        "groupNote": "example",
        "guests": [
          {}
        ],
        "id": 1,
        "infoItems": [
          {}
        ],
        "invoiceItems": [
          {}
        ],
        "invoiceeId": 1,
        "lang": "example",
        "lastName": "example",
        "masterId": 1,
        "message": "example",
        "mobile": "example",
        "modifiedTime": "example",
        "notes": "example",
        "numAdult": 1,
        "numChild": 1,
        "offerId": 1,
        "pcibookingToken": "example",
        "phone": "example",
        "postcode": "example",
        "price": 1,
        "propertyId": 1,
        "rateDescription": "example",
        "reference": "example",
        "referer": "example",
        "refererEditable": "example",
        "roomId": 1,
        "roomQty": 1,
        "state": "example",
        "status": "confirmed",
        "statusCode": 1,
        "stripeToken": "example",
        "subStatus": "actionRequired",
        "tax": 1,
        "title": "example",
        "unitId": 1,
        "voucher": "example"
      }
    ],
    "pages": {
      "nextPageExists": true,
      "nextPageLink": "example"
    },
    "success": true,
    "type": "example"
  }
}
```

### List channel settings

List channel settings.

**Inputs**

- Property (`property_id`, text, required): Property id.
- Room (`room_id`, list): Room id.
- Channel (`channel`, list): Channel. One or more of: `iCalExport`, `iCalImport`, `airbnb`, `vrbo`.

**Outputs**

- `data` (object): The response from Beds24.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "channel": "example",
        "properties": [
          {}
        ]
      }
    ],
    "pages": {
      "nextPageExists": true,
      "nextPageLink": "example"
    },
    "success": true,
    "type": "example"
  }
}
```

### List fixed prices

List fixed prices.

**Inputs**

- Id (`id`, list): Id.
- Room (`room_id`, list): Room id.
- Property (`property_id`, list): Property id.
- Include rate codes (`include_rate_codes`, true/false): Include rate codes.
- Page (`page`, number): Page.

**Outputs**

- `data` (object): The response from Beds24.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "1PersonPrice": 1,
        "1PersonPriceEnable": true,
        "2PersonPrice": 1,
        "2PersonPriceEnable": true,
        "agentCodes": [
          "example"
        ],
        "allowAloneChildren": true,
        "allowEnquiry": true,
        "allowMultiplier": true,
        "allowedDays": {},
        "bookingPage": {},
        "bookingType": "default",
        "channelManagement": "notUsed",
        "channels": {},
        "checkInDays": {},
        "checkOutDays": {},
        "color": "example",
        "discounts": [
          {}
        ],
        "exportPrice": 1,
        "extraChildPrice": 1,
        "extraChildPriceEnable": true,
        "extraPersonPrice": 1,
        "extraPersonPriceEnable": true,
        "firstNight": "example",
        "id": 1,
        "lastNight": "example",
        "maxAdvance": 1,
        "maxNights": 1,
        "minAdvance": 1,
        "minNights": 1,
        "name": "example",
        "offerId": 1,
        "pricesPerNights": 1,
        "propertyId": 1,
        "refererDiscounts": [
          {}
        ],
        "restrictionStrategy": "stayThrough",
        "roomId": 1,
        "roomPrice": 1,
        "roomPriceEnable": true,
        "roomPriceGuests": 1,
        "strategy": "default",
        "upsellItems": [
          {}
        ],
        "voucherCodes": [
          {}
        ]
      }
    ],
    "pages": {
      "nextPageExists": true,
      "nextPageLink": "example"
    },
    "success": true,
    "type": "example"
  }
}
```

### List properties

List properties.

**Inputs**

- Id (`id`, list): Id.
- Include languages (`include_languages`, list): Include languages. One or more of: `all`, `en`, `ar`, `bg`, `ca`, `cs`, `da`, `de`, `el`, `es`, and 29 more.
- Include texts (`include_texts`, list): Include texts. One or more of: `all`, `property`, `roomType`.
- Include pictures (`include_pictures`, true/false): Include pictures.
- Include offers (`include_offers`, true/false): Include offers.
- Include price rules (`include_price_rules`, true/false): Include price rules.
- Include upsell items (`include_upsell_items`, true/false): Include upsell items.
- Include all rooms (`include_all_rooms`, true/false): Include all rooms.
- Include unit details (`include_unit_details`, true/false): Include unit details.
- Room (`room_id`, list): Room id.
- Page (`page`, number): Page.

**Outputs**

- `data` (object): The response from Beds24.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "account": {},
        "address": "example",
        "bookingPageMultiplier": "example",
        "bookingQuestions": {},
        "bookingRules": {},
        "cardSettings": {},
        "checkInEnd": "00:00",
        "checkInStart": "00:00",
        "checkOutEnd": "00:00",
        "city": "example",
        "contactFirstName": "example",
        "contactLastName": "example",
        "controlPriority": 1,
        "country": "example",
        "currency": "example",
        "discountVouchers": [
          {}
        ],
        "email": "example",
        "fax": "example",
        "featureCodes": [
          [
            {}
          ]
        ],
        "groupKeywords": [
          "example"
        ],
        "id": 1,
        "latitude": 1,
        "longitude": 1,
        "mobile": "example",
        "name": "example",
        "offerType": "perRoom",
        "offers": [
          {}
        ],
        "oneTimeVouchers": [
          {}
        ],
        "paymentCollection": {},
        "paymentGateways": {},
        "permit": "example",
        "phone": "example",
        "postcode": "example",
        "propertyType": "apartment",
        "roomChargeDisplay": "onePerBooking",
        "roomTypes": [
          {}
        ],
        "sellPriority": 1,
        "state": "example",
        "templates": {},
        "texts": [
          {}
        ],
        "upsellItems": [
          {}
        ],
        "web": "example",
        "webhooks": {}
      }
    ],
    "pages": {
      "nextPageExists": true,
      "nextPageLink": "example"
    },
    "success": true,
    "type": "example"
  }
}
```

### List room offers

List room offers.

**Inputs**

- Property (`property_id`, list): Property id.
- Room (`room_id`, list): Room id.
- Offer ID (`offer_id`, list): Offer id.
- Arrival (`arrival`, date, required): Arrival.
- Departure (`departure`, date, required): Departure.
- Num adults (`num_adults`, number, required): Num adults.
- Num children (`num_children`, number): Num children.
- Include texts (`include_texts`, list): Include texts.
- Agent code (`agent_code`, text): Agent code.
- Page (`page`, number): Page.

**Outputs**

- `data` (object): The response from Beds24.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "offers": [
          {}
        ],
        "propertyId": 1,
        "roomId": 1
      }
    ],
    "pages": {
      "nextPageExists": true,
      "nextPageLink": "example"
    },
    "success": true,
    "type": "example"
  }
}
```

### List room unit bookings

List room unit bookings.

**Inputs**

- Room (`room_id`, list): Room id.
- Property (`property_id`, list): Property id.
- Start date (`start_date`, date): Start date.
- End date (`end_date`, date): End date.
- Page (`page`, number): Page.

**Outputs**

- `data` (object): The response from Beds24.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "name": "example",
        "propertyId": 1,
        "qty": 1,
        "roomId": 1,
        "unitBookings": {}
      }
    ],
    "pages": {
      "nextPageExists": true,
      "nextPageLink": "example"
    },
    "success": true,
    "type": "example"
  }
}
```

### List rooms

List rooms.

**Inputs**

- Id (`id`, list): Id.
- Property (`property_id`, list): Property id.
- Include languages (`include_languages`, list): Include languages. One or more of: `all`, `en`, `ar`, `bg`, `ca`, `cs`, `da`, `de`, `el`, `es`, and 29 more.
- Include texts (`include_texts`, list): Include texts. One or more of: `all`, `property`, `roomType`.
- Include pictures (`include_pictures`, true/false): Include pictures.
- Include offers (`include_offers`, true/false): Include offers.
- Include price rules (`include_price_rules`, true/false): Include price rules.
- Include upsell items (`include_upsell_items`, true/false): Include upsell items.
- Include unit details (`include_unit_details`, true/false): Include unit details.
- Page (`page`, number): Page.

**Outputs**

- `data` (object): The response from Beds24.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "blockAfterCheckOutDays": 1,
        "cleaningFee": 1,
        "controlPriority": 1,
        "dependencies": {},
        "featureCodes": [
          [
            {}
          ]
        ],
        "highlightColor": "example",
        "id": 1,
        "includeReports": true,
        "maxAdult": 1,
        "maxChildren": 1,
        "maxPeople": 1,
        "maxStay": 1,
        "minPrice": 1,
        "minStay": 1,
        "name": "example",
        "offers": [
          {}
        ],
        "overbookingProtection": "room",
        "priceRules": [
          {}
        ],
        "propertyId": 1,
        "qty": 1,
        "rackRate": 1,
        "restrictionStrategy": "firstNight",
        "roomSize": 1,
        "roomType": "single",
        "securityDeposit": 1,
        "sellPriority": 1,
        "taxPercentage": 1,
        "taxPerson": 1,
        "templates": {},
        "texts": [
          {}
        ],
        "unallocatedUnit": {},
        "unitAllocation": "perBooking",
        "units": [
          {}
        ]
      }
    ],
    "pages": {
      "nextPageExists": true,
      "nextPageLink": "example"
    },
    "success": true,
    "type": "example"
  }
}
```
