# apaleo

> Manage hotel reservations, bookings, units and companies in apaleo, and watch for new, changed and checked-in reservations.

App · 26 actions. Web page: https://docs.lodol.com/docs/integrations/apaleo

## Actions

### Assign a unit to a reservation

Assign a specific unit (room) to a reservation.

**Inputs**

- Reservation ID (`reservation_id`, text, required): The reservation ID, such as ABCDEF-1.
- Unit (`unit_id`, text, required): The unit (room) to assign.
- Lock unit (`lock_unit`, true/false): Lock the unit so it is not moved automatically.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "unit": {
      "description": "example",
      "id": "example",
      "name": "example",
      "unitGroupId": "example"
    }
  }
}
```

### Cancel a reservation

Cancel a confirmed reservation. Cancellation fees may apply.

**Inputs**

- Reservation ID (`reservation_id`, text, required): The reservation ID, such as ABCDEF-1.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Check in a reservation

Check the guest in. The reservation needs a unit assigned.

**Inputs**

- Reservation ID (`reservation_id`, text, required): The reservation ID, such as ABCDEF-1.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Check out a reservation

Check the guest out.

**Inputs**

- Reservation ID (`reservation_id`, text, required): The reservation ID, such as ABCDEF-1.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Create a booking

Book a stay for one guest on a rate plan, one reservation for the whole stay.

**Inputs**

- Rate plan (`rate_plan_id`, text, required): The rate plan to book for every night.
- Arrival (`arrival`, date, required): Arrival date.
- Departure (`departure`, date, required): Departure date, after the arrival date.
- Adults (`adults`, number, required): Number of adults. At least 1.
- Channel code (`channel_code`, text): The sales channel. Direct unless another applies. One of: `Direct`, `BookingCom`, `Ibe`, `ChannelManager`, `Expedia`, `Homelike`, `Hrs`, `AltoVita`, `DesVu`, `Gimsi`. Default: `Direct`.
- Guarantee type (`guarantee_type`, text): How the reservation is guaranteed. Leave blank for the rate plan's own. One of: `PM6Hold`, `CreditCard`, `Prepayment`, `Company`.
- Booker first name (`booker_first_name`, text): The booker's first name.
- Booker last name (`booker_last_name`, text, required): The booker's last name. The booker is also the guest.
- Booker email (`booker_email`, text): The booker's email address.
- Booker phone (`booker_phone`, text): The booker's phone number.
- Comment (`comment`, text): A note for the hotel staff.
- Guest comment (`guest_comment`, text): A comment from the guest.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": "example",
    "reservationIds": []
  }
}
```

### Create a company

Create a company for corporate rates and invoicing.

**Inputs**

- Property (`property_id`, text, required): The property (hotel).
- Code (`code`, text, required): A short code for the company, unique in the property.
- Name (`name`, text, required): The company's name.
- Address line 1 (`address_line_1`, text, required): First line of the company's address.
- Address line 2 (`address_line_2`, text): Second line of the company's address.
- Postal code (`postal_code`, text, required): The postal code.
- City (`city`, text, required): The city.
- Country code (`country_code`, text, required): Two-letter country code, such as DE.
- Can check out on ar (`can_check_out_on_ar`, true/false, required): Whether guests of this company can check out on account (invoice).
- Invoicing email (`invoicing_email`, text): The email address for invoices.
- Phone (`phone`, text): The company's phone number.
- Tax ID (`tax_id`, text): The company's tax ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": "example"
  }
}
```

### Delete a company

Delete a company. It is also removed from rate plans that have not used it.

**Inputs**

- Company (`company_id`, text, required): The company to delete.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Find available offers

Find the rate plans and prices available for a stay.

**Inputs**

- Property (`property_id`, text, required): The property (hotel).
- Arrival (`arrival`, date, required): Arrival date.
- Departure (`departure`, date, required): Departure date.
- Adults (`adults`, number, required): Number of adults. At least 1.
- Channel code (`channel_code`, text): Only offers for this sales channel. One of: `Direct`, `BookingCom`, `Ibe`, `ChannelManager`, `Expedia`, `Homelike`, `Hrs`, `AltoVita`, `DesVu`, `Gimsi`.
- Unit groups (`unit_group_ids`, list): Only offers for these unit groups.
- Include unavailable (`include_unavailable`, true/false): Also return offers that restrictions make unbookable.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "offers": [],
    "property": {
      "code": "example",
      "description": "example",
      "id": "example",
      "name": "example"
    }
  }
}
```

### Get a booking

Get one booking with its booker and reservations.

**Inputs**

- Booking ID (`booking_id`, text, required): The booking ID.

**Outputs**

- `data` (object): A booking holds all shared metadata for a set of reservations

**Example output**

```json
{
  "data": {
    "booker": {
      "address": {},
      "birthDate": "example",
      "birthPlace": "example",
      "company": {},
      "email": "example",
      "firstName": "example",
      "gender": "Female",
      "identificationExpiryDate": "example",
      "identificationIssueDate": "example",
      "identificationNumber": "example",
      "identificationType": "SocialInsuranceNumber",
      "lastName": "example",
      "middleInitial": "example",
      "nationalityCountryCode": "example",
      "phone": "example",
      "preferredLanguage": "example",
      "title": "Mr"
    },
    "bookerComment": "example",
    "comment": "example",
    "created": "example",
    "groupId": "example",
    "hasActivePaymentAccount": false,
    "id": "example",
    "modified": "example",
    "paymentAccount": {
      "accountHolder": "example",
      "accountNumber": "example",
      "expiryMonth": "example",
      "expiryYear": "example",
      "inactiveReason": "example",
      "isActive": false,
      "isVirtual": false,
      "payerEmail": "example",
      "payerReference": "example",
      "paymentMethod": "example"
    },
    "propertyValues": [],
    "registeredCard": {
      "cardHolder": "example",
      "cardNumber": "example",
      "expiryMonth": "example",
      "expiryYear": "example",
      "isVirtual": false,
      "note": "example",
      "payerEmail": "example",
      "paymentMethod": "example"
    },
    "reservations": []
  }
}
```

### Get a company

Get one company's details.

**Inputs**

- Company (`company_id`, text, required): The company.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "additionalTaxId": "example",
    "additionalTaxId2": "example",
    "address": {
      "addressLine1": "example",
      "addressLine2": "example",
      "city": "example",
      "countryCode": "example",
      "postalCode": "example",
      "regionCode": "example"
    },
    "canCheckOutOnAr": false,
    "code": "example",
    "id": "example",
    "invoiceNetworkIdentity": {
      "id": "example",
      "network": "Peppol"
    },
    "invoicingEmail": "example",
    "name": "example",
    "phone": "example",
    "propertyId": "example",
    "ratePlans": [],
    "taxId": "example"
  }
}
```

### Get a property

Get one property's details.

**Inputs**

- Property (`property_id`, text, required): The property (hotel).

**Outputs**

- `data` (object): With this request you can create a new property

**Example output**

```json
{
  "data": {
    "actions": [],
    "bankAccount": {
      "bank": "example",
      "bic": "example",
      "iban": "example"
    },
    "code": "example",
    "commercialRegisterEntry": "example",
    "companyName": "example",
    "created": "example",
    "currencyCode": "example",
    "description": {},
    "id": "example",
    "isArchived": false,
    "isTemplate": false,
    "location": {
      "addressLine1": "example",
      "addressLine2": "example",
      "city": "example",
      "countryCode": "example",
      "postalCode": "example",
      "regionCode": "example"
    },
    "managingDirectors": "example",
    "name": {},
    "paymentTerms": {},
    "propertyTemplateId": "example",
    "status": "Test",
    "taxId": "example",
    "timeZone": "example"
  }
}
```

### Get a rate plan

Get one rate plan's details.

**Inputs**

- Rate plan (`rate_plan_id`, text, required): The rate plan.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "accountingConfigs": [],
    "ageCategories": [],
    "bookingPeriods": [],
    "cancellationPolicy": {
      "code": "example",
      "description": "example",
      "id": "example",
      "name": "example",
      "periodPriorToArrival": {}
    },
    "channelCodes": [],
    "code": "example",
    "companies": [],
    "derivationLevel": 1,
    "description": {},
    "id": "example",
    "includedServices": [],
    "isArchived": false,
    "isBookable": false,
    "isDerived": false,
    "isSubjectToCityTax": false,
    "marketSegment": {
      "code": "example",
      "id": "example",
      "name": "example"
    },
    "minGuaranteeType": "PM6Hold",
    "name": {},
    "noShowPolicy": {
      "code": "example",
      "description": "example",
      "id": "example",
      "name": "example"
    },
    "priceCalculationMode": "Truncate",
    "pricingRule": {
      "baseRatePlan": {},
      "type": "Absolute",
      "value": 1.0
    },
    "promoCodes": [],
    "property": {
      "code": "example",
      "description": "example",
      "id": "example",
      "name": "example"
    },
    "ratesRange": {
      "from": "example",
      "to": "example"
    },
    "restrictions": {
      "lateBookingUntil": "example",
      "maxAdvance": {},
      "minAdvance": {}
    },
    "surcharges": [],
    "timeSliceDefinition": {
      "checkInTime": "example",
      "checkOutTime": "example",
      "id": "example",
      "name": "example",
      "template": "DayUse"
    },
    "unitGroup": {
      "code": "example",
      "description": "example",
      "id": "example",
      "name": "example",
      "type": "BedRoom"
    }
  }
}
```

### Get a reservation

Get one reservation with its guest, stay and balance.

**Inputs**

- Reservation ID (`reservation_id`, text, required): The reservation ID, such as ABCDEF-1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "actions": [],
    "additionalGuests": [],
    "adults": 1,
    "allFoliosHaveInvoice": false,
    "arrival": "example",
    "assignedUnits": [],
    "balance": {
      "amount": 1.0,
      "currency": "example"
    },
    "blockId": "example",
    "booker": {
      "address": {},
      "birthDate": "example",
      "birthPlace": "example",
      "company": {},
      "email": "example",
      "firstName": "example",
      "gender": "Female",
      "identificationExpiryDate": "example",
      "identificationIssueDate": "example",
      "identificationNumber": "example",
      "identificationType": "SocialInsuranceNumber",
      "lastName": "example",
      "middleInitial": "example",
      "nationalityCountryCode": "example",
      "phone": "example",
      "preferredLanguage": "example",
      "title": "Mr"
    },
    "bookingId": "example",
    "cancellationFee": {
      "code": "example",
      "description": "example",
      "dueDateTime": "example",
      "fee": {},
      "id": "example",
      "name": "example"
    },
    "cancellationTime": "example",
    "channelCode": "Direct",
    "checkInTime": "example",
    "checkOutTime": "example",
    "childrenAges": [],
    "comment": "example",
    "commission": {
      "beforeCommissionAmount": {},
      "commissionAmount": {}
    },
    "company": {
      "canCheckOutOnAr": false,
      "code": "example",
      "id": "example",
      "name": "example"
    },
    "corporateCode": "example",
    "created": "example",
    "departure": "example",
    "externalCode": "example",
    "externalReferences": {
      "centralReservationSystemId": "example",
      "channelManagerId": "example",
      "globalDistributionSystemId": "example",
      "legacyId": "example",
      "onlineBookingToolId": "example",
      "onlineTravelAgencyId": "example"
    },
    "groupName": "example",
    "guaranteeType": "PM6Hold",
    "guestComment": "example",
    "hasActivePaymentAccount": false,
    "hasCityTax": false,
    "id": "example",
    "isOpenForCharges": false,
    "isPreCheckedIn": false,
    "isUnitAssignmentLocked": false,
    "marketSegment": {
      "code": "example",
      "id": "example",
      "name": "example"
    },
    "modified": "example",
    "noShowFee": {
      "code": "example",
      "description": "example",
      "fee": {},
      "id": "example",
      "name": "example"
    },
    "noShowTime": "example",
    "payableAmount": {
      "guest": {}
    },
    "paymentAccount": {
      "accountHolder": "example",
      "accountNumber": "example",
      "expiryMonth": "example",
      "expiryYear": "example",
      "inactiveReason": "example",
      "isActive": false,
      "isVirtual": false,
      "payerEmail": "example",
      "payerReference": "example",
      "paymentMethod": "example"
    },
    "primaryGuest": {
      "address": {},
      "birthDate": "example",
      "birthFirstName": "example",
      "birthLastName": "example",
      "birthPlace": "example",
      "borderCrossingDate": "example",
      "borderCrossingPlace": "example",
      "company": {},
      "email": "example",
      "firstName": "example",
      "gender": "Female",
      "identificationAdditionalNumber": "example",
      "identificationExpiryDate": "example",
      "identificationIssueDate": "example",
      "identificationIssuePlace": "example",
      "identificationNumber": "example",
      "identificationType": "SocialInsuranceNumber",
      "lastName": "example",
      "middleInitial": "example",
      "motherFirstName": "example",
      "motherLastName": "example",
      "nationalityCountryCode": "example",
      "nextDestination": "example",
      "personalTaxId": "example",
      "phone": "example",
      "preferredLanguage": "example",
      "relationshipToPrimaryGuest": "Grandparent",
      "secondLastName": "example",
      "title": "Mr",
      "vehicleRegistration": {}
    },
    "promoCode": "example",
    "property": {
      "code": "example",
      "description": "example",
      "id": "example",
      "name": "example"
    },
    "ratePlan": {
      "code": "example",
      "description": "example",
      "id": "example",
      "isSubjectToCityTax": false,
      "name": "example"
    },
    "registeredCard": {
      "cardHolder": "example",
      "cardNumber": "example",
      "expiryMonth": "example",
      "expiryYear": "example",
      "isVirtual": false,
      "note": "example",
      "payerEmail": "example",
      "paymentMethod": "example"
    },
    "services": [],
    "source": "example",
    "status": "Confirmed",
    "taxDetails": [],
    "timeSlices": [],
    "totalGrossAmount": {
      "amount": 1.0,
      "currency": "example"
    },
    "travelPurpose": "Business",
    "unit": {
      "description": "example",
      "id": "example",
      "name": "example",
      "unitGroupId": "example"
    },
    "unitGroup": {
      "code": "example",
      "description": "example",
      "id": "example",
      "name": "example",
      "type": "BedRoom"
    },
    "validationMessages": []
  }
}
```

### Get a unit

Get one unit's details and status.

**Inputs**

- Unit (`unit_id`, text, required): The unit (room).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "actions": [],
    "archived": "example",
    "attributes": [],
    "connectedUnits": [],
    "connectingUnit": {
      "description": "example",
      "id": "example",
      "name": "example",
      "unitGroupId": "example"
    },
    "created": "example",
    "description": {},
    "id": "example",
    "isArchived": false,
    "maxPersons": 1,
    "name": "example",
    "property": {
      "code": "example",
      "description": "example",
      "id": "example",
      "name": "example"
    },
    "status": {
      "condition": "Clean",
      "isOccupied": false,
      "maintenance": {}
    },
    "unitGroup": {
      "code": "example",
      "description": "example",
      "id": "example",
      "name": "example",
      "type": "BedRoom"
    }
  }
}
```

### Get a unit group

Get one unit group's details.

**Inputs**

- Unit group (`unit_group_id`, text, required): The unit group (room type).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "code": "example",
    "connectedUnitGroups": [],
    "description": {},
    "id": "example",
    "maxPersons": 1,
    "memberCount": 1,
    "name": {},
    "property": {
      "code": "example",
      "description": "example",
      "id": "example",
      "name": "example"
    },
    "rank": 1,
    "type": "BedRoom"
  }
}
```

### List bookings

List bookings, the groups of reservations made together.

**Inputs**

- Reservation ID (`reservation_id`, text): Only the booking holding this reservation.
- Text search (`text_search`, text): Search booker name, email and company.
- Channel code (`channel_code`, list): Only bookings from these channels. One or more of: `Direct`, `BookingCom`, `Ibe`, `ChannelManager`, `Expedia`, `Homelike`, `Hrs`, `AltoVita`, `DesVu`, `Gimsi`.
- Page number (`page_number`, number): Page to return, starting at 1. At least 1.
- Page size (`page_size`, number): Records per page, up to 500. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "bookings": [],
    "count": 1
  }
}
```

### List companies

List the companies set up for corporate rates and invoicing.

**Inputs**

- Property (`property_id`, text): The property (hotel).
- Text search (`text_search`, text): Only companies whose name contains this text.
- Page number (`page_number`, number): Page to return, starting at 1. At least 1.
- Page size (`page_size`, number): Records per page, up to 500. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "companies": [],
    "count": 1
  }
}
```

### List properties

List the properties (hotels) in the apaleo account.

**Inputs**

- Status (`status`, list): Only properties with these statuses. One or more of: `Test`, `Live`.
- Include archived (`include_archived`, true/false): Include archived properties.
- Page number (`page_number`, number): Page to return, starting at 1. At least 1.
- Page size (`page_size`, number): Records per page, up to 500. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "properties": []
  }
}
```

### List rate plans

List rate plans, optionally for one property.

**Inputs**

- Property (`property_id`, text): The property (hotel).
- Channel codes (`channel_codes`, list): Only rate plans sold through these channels. One or more of: `Direct`, `BookingCom`, `Ibe`, `ChannelManager`, `Expedia`, `Homelike`, `Hrs`, `AltoVita`, `DesVu`, `Gimsi`.
- Include archived (`include_archived`, true/false): Include archived rate plans.
- Page number (`page_number`, number): Page to return, starting at 1. At least 1.
- Page size (`page_size`, number): Records per page, up to 500. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "ratePlans": []
  }
}
```

### List reservations

List reservations, filtered by property, status and dates.

**Inputs**

- Properties (`property_ids`, list): Only reservations at these properties.
- Status (`status`, list): Only reservations with these statuses. One or more of: `Confirmed`, `InHouse`, `CheckedOut`, `Canceled`, `NoShow`.
- Date filter (`date_filter`, text): Which date From and To filter on. One of: `Arrival`, `Departure`, `Stay`, `Creation`, `Modification`, `Cancellation`.
- From (`start_time`, date and time): Start of the date range for the date filter.
- To (`end_time`, date and time): End of the date range for the date filter.
- Booking ID (`booking_id`, text): Only reservations in this booking.
- Text search (`text_search`, text): Search guest and booker names, emails and reservation IDs.
- Sort (`sort`, list): Sort order. One or more of: `arrival:asc`, `arrival:desc`, `departure:asc`, `departure:desc`, `created:asc`, `created:desc`, `updated:asc`, `updated:desc`.
- Page number (`page_number`, number): Page to return, starting at 1. At least 1.
- Page size (`page_size`, number): Records per page, up to 500. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "reservations": []
  }
}
```

### List unit groups

List unit groups (room types), optionally for one property.

**Inputs**

- Property (`property_id`, text): The property (hotel).
- Unit group types (`unit_group_types`, list): Only these kinds of unit group. One or more of: `BedRoom`, `MeetingRoom`, `EventSpace`, `ParkingLot`, `Other`.
- Page number (`page_number`, number): Page to return, starting at 1. At least 1.
- Page size (`page_size`, number): Records per page, up to 500. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "unitGroups": []
  }
}
```

### List units

List units (rooms), with their occupancy and housekeeping condition.

**Inputs**

- Property (`property_id`, text): The property (hotel).
- Unit groups (`unit_group_ids`, list): Only units in these unit groups.
- Is occupied (`is_occupied`, true/false): Only occupied units (true) or vacant units (false).
- Condition (`condition`, text): Only units in this housekeeping condition. One of: `Clean`, `CleanToBeInspected`, `Dirty`.
- Maintenance type (`maintenance_type`, text): Only units with this kind of maintenance. One of: `OutOfService`, `OutOfOrder`, `OutOfInventory`.
- Text search (`text_search`, text): Only units whose name contains this text.
- Page number (`page_number`, number): Page to return, starting at 1. At least 1.
- Page size (`page_size`, number): Records per page, up to 500. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "units": []
  }
}
```

### Mark a reservation as no-show

Mark a reservation whose guest did not arrive as no-show. No-show fees may apply.

**Inputs**

- Reservation ID (`reservation_id`, text, required): The reservation ID, such as ABCDEF-1.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Update a company

Change a company's name, invoicing email, phone, tax ID or account checkout.

**Inputs**

- Company (`company_id`, text, required): The company to change.
- Name (`name`, text): The company's new name.
- Invoicing email (`invoicing_email`, text): The new email address for invoices.
- Phone (`phone`, text): The new phone number.
- Tax ID (`tax_id`, text): The new tax ID.
- Can check out on ar (`can_check_out_on_ar`, true/false): Whether guests of this company can check out on account.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Update a reservation

Change a reservation's comments, travel purpose or pre-check-in flag.

**Inputs**

- Reservation ID (`reservation_id`, text, required): The reservation ID, such as ABCDEF-1.
- Comment (`comment`, text): A new note for the hotel staff.
- Guest comment (`guest_comment`, text): A new comment from the guest.
- Travel purpose (`travel_purpose`, text): Whether the trip is for business or leisure. One of: `Business`, `Leisure`.
- Is pre checked in (`is_pre_checked_in`, true/false): Mark the reservation as pre-checked-in.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Update a unit

Change a unit's housekeeping condition, name or capacity.

**Inputs**

- Unit (`unit_id`, text, required): The unit (room) to change.
- Condition (`condition`, text): The unit's new housekeeping condition. One of: `Clean`, `CleanToBeInspected`, `Dirty`.
- Name (`name`, text): The unit's new name.
- Max persons (`max_persons`, number): The most people the unit can hold. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```
