# Planyo

> Check availability, take and manage reservations, record payments and keep customers up to date in your Planyo booking site.

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

## Actions

### Block off time

Make a resource, or the whole site, unavailable for a period.

**Inputs**

- Site ID (`site_id`, number, required): The Planyo site's ID, shown by Get resource.
- Resource (`resource_id`, number): The resource to block. Leave empty to block the whole site.
- Start (`start_time`, text, required): When the blocked time starts, in the Planyo site's own time zone, as YYYY-MM-DD HH:MM, such as 2026-12-24 14:00. For a whole day, use the next day's date with no time.
- End (`end_time`, text, required): When the blocked time ends, in the Planyo site's own time zone, as YYYY-MM-DD HH:MM, such as 2026-12-24 14:00. For a whole day, use the next day's date with no time.
- Units (`quantity`, number): How many units to block. Leave empty for all. At least 1.
- Reason (`comment`, text): Why it is blocked.
- Flag clashing reservations (`check_conflicts`, true/false): Mark reservations in the period as conflicts.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "response_code": 0,
    "response_message": "Method add_vacation executed successfully."
  }
}
```

### Change reservation status

Confirm, cancel, check in, check out or otherwise change a reservation's status.

**Inputs**

- Reservation ID (`reservation_id`, number, required): The reservation's ID.
- Change (`change`, text, required): What to do to the reservation. One of: `Confirm`, `Unconfirm` (Remove confirmation), `Cancel` (Cancel (by staff)), `User_cancel` (Cancel (by the customer)), `Uncancel` (Remove cancellation), `Checkin` (Check in), `Clear_checkin` (Remove check-in), `Checkout` (Check out), `Noshow` (Mark as no-show), `Clear_noshow` (Remove no-show), and 8 more.
- Comment (`comment`, text): A comment to record with the change.
- Don't email (`is_quiet`, true/false): Don't send the emails this change would usually send.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "status": 5,
      "user_text": "Reservation confirmed"
    },
    "response_code": 0,
    "response_message": "Method do_reservation_action executed successfully."
  }
}
```

### Check availability

Check whether a resource is free for a period, and how many units are left.

**Inputs**

- Resource (`resource_id`, number, required): The resource. Pick one, or use a resource ID from List resources.
- Start (`start_time`, text, required): When the rental starts, in the Planyo site's own time zone, as YYYY-MM-DD HH:MM, such as 2026-12-24 14:00. For a whole day, use the next day's date with no time.
- End (`end_time`, text, required): When the rental ends, in the Planyo site's own time zone, as YYYY-MM-DD HH:MM, such as 2026-12-24 14:00. For a whole day, use the next day's date with no time.
- Quantity (`quantity`, number, required): How many units are needed. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "is_available": true,
      "problem_time": "2030-06-03 11:00",
      "quantity_available": 2,
      "reason": "Not available at this time"
    },
    "response_code": 0,
    "response_message": "Method is_resource_available executed successfully."
  }
}
```

### Create customer

Add a customer to the site. If the email address is already there, their details are updated instead.

**Inputs**

- Email (`email`, text, required): Their email address.
- First name (`first_name`, text, required): Their first name.
- Last name (`last_name`, text): Their last name.
- Phone country code (`phone_country_code`, text): The phone number's country code, such as 1 for the US.
- Phone (`phone`, text): Their phone number, without the country code.
- Mobile country code (`mobile_country_code`, text): The mobile number's country code.
- Mobile (`mobile`, text): Their mobile number, without the country code.
- Address (`address`, text): Their street address.
- City (`city`, text): Their city.
- ZIP code (`zip`, text): Their ZIP or postal code.
- State (`state`, text): Their state or province.
- Country (`country`, text): Their country, as a two-letter code such as US.
- Language (`user_language`, text): The language for emails to them, as a two-letter code such as EN.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "is_new": 1,
      "user_id": 902114
    },
    "response_code": 0,
    "response_message": "Method add_user executed successfully."
  }
}
```

### Create reservation

Book a resource for a period for a customer.

**Inputs**

- Resource (`resource_id`, number, required): The resource. Pick one, or use a resource ID from List resources.
- Start (`start_time`, text, required): When the rental starts, in the Planyo site's own time zone, as YYYY-MM-DD HH:MM, such as 2026-12-24 14:00. For a whole day, use the next day's date with no time.
- End (`end_time`, text, required): When the rental ends, in the Planyo site's own time zone, as YYYY-MM-DD HH:MM, such as 2026-12-24 14:00. For a whole day, use the next day's date with no time.
- Quantity (`quantity`, number, required): How many units to reserve. At least 1.
- Customer (`customer`, number): An existing customer. Leave empty to give an email address and first name instead.
- Email (`email`, text): The customer's email address, when no customer is picked.
- First name (`first_name`, text): The customer's first name, when no customer is picked.
- Last name (`last_name`, text): The customer's last name.
- Phone country code (`phone_prefix`, text): The phone number's country code, such as 1 for the US.
- Phone (`phone_number`, text): The customer's phone number, without the country code.
- Customer notes (`user_notes`, text): Notes from the customer.
- Staff notes (`admin_notes`, text): Private notes for your staff.
- Book as staff (`admin_mode`, true/false): Book as an administrator: skips the booking form's required fields, rental rules and email verification.
- Email the customer (`send_notifications`, true/false): Send the customer the usual emails. Turn off to book quietly.
- Price (`custom_price`, text): A price to charge instead of the one Planyo works out.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "currency": "CHF",
      "discount": 0,
      "original_price": 90.0,
      "reservation_id": 31884410,
      "status": 5,
      "total_price": 90.0,
      "user_text": "Reservation confirmed"
    },
    "response_code": 0,
    "response_message": "Method make_reservation executed successfully."
  }
}
```

### Delete customer

Delete a customer who has no reservations left, other than cancelled ones.

**Inputs**

- Customer (`customer`, number, required): The customer to delete. Pick one, or use a user ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "response_code": 0,
    "response_message": "Method remove_user executed successfully."
  }
}
```

### Delete reservation

Delete a reservation for good. To keep a record, cancel it with Change reservation status instead.

**Inputs**

- Reservation ID (`reservation_id`, number, required): The reservation to delete.
- Also delete the customer (`delete_user_without_reservations`, true/false): Also delete the customer, if they have no other reservations, no login and weren't added by staff.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "response_code": 0,
    "response_message": "Method delete_reservation executed successfully."
  }
}
```

### Get customer

Get a customer's details by user ID or email address.

**Inputs**

- Customer (`customer`, number): The customer. Pick one, or use a user ID. Give this or an email address.
- Email (`email`, text): The customer's email address. Give this or a customer.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "address": "Bahnhofstrasse 5",
      "city": "Zurich",
      "country": "CH",
      "email": "anna@example.com",
      "first_name": "Anna",
      "id": 902114,
      "is_email_verified": true,
      "last_name": "Keller",
      "login": "",
      "mobile_number": "+41 791234567",
      "phone_number": "+41 445551234",
      "registration_time": "2026-11-02 09:14",
      "state": "ZH",
      "zip": "8001"
    },
    "response_code": 0,
    "response_message": "Method get_user_data executed successfully."
  }
}
```

### Get rental price

Work out what renting a resource for a period would cost.

**Inputs**

- Resource (`resource_id`, number, required): The resource. Pick one, or use a resource ID from List resources.
- Start (`start_time`, text, required): When the rental starts, in the Planyo site's own time zone, as YYYY-MM-DD HH:MM, such as 2026-12-24 14:00. For a whole day, use the next day's date with no time.
- End (`end_time`, text, required): When the rental ends, in the Planyo site's own time zone, as YYYY-MM-DD HH:MM, such as 2026-12-24 14:00. For a whole day, use the next day's date with no time.
- Quantity (`quantity`, number, required): How many units. At least 1.
- Customer (`customer`, number): A customer, when the price depends on who rents.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "currency": "CHF",
      "total": 90.0
    },
    "response_code": 0,
    "response_message": "Method get_rental_price executed successfully."
  }
}
```

### Get reservation

Get a reservation's times, status, price, payments and customer.

**Inputs**

- Reservation ID (`reservation_id`, number, required): The reservation's ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "admin_notes": "Paid deposit",
      "amount_paid": 30.0,
      "creation_time": "2026-12-01 15:20:00",
      "currency": "CHF",
      "email": "anna@example.com",
      "end_time": "2030-06-03 12:00:00",
      "first_name": "Anna",
      "last_name": "Keller",
      "name": "Motor boat",
      "phone_number": "+41 445551234",
      "properties": {
        "number_of_children": "0"
      },
      "quantity": 1,
      "resource_id": 110224,
      "site_id": 37091,
      "start_time": "2030-06-03 10:00:00",
      "status": 5,
      "total_price": 90.0,
      "user_id": 902114,
      "user_notes": "Two adults",
      "user_text": "Reservation confirmed"
    },
    "response_code": 0,
    "response_message": "Method get_reservation_data executed successfully."
  }
}
```

### Get resource

Get a resource's settings, price, rental limits and photos.

**Inputs**

- Resource (`resource_id`, number, required): The resource. Pick one, or use a resource ID from List resources.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "category": 1,
      "confirmation_type": 0,
      "currency": "CHF",
      "is_listed": true,
      "is_overnight_stay": false,
      "is_published": true,
      "max_quantity_per_rental": 2,
      "max_rental_time": 8,
      "min_rental_time": 1,
      "name": "Motor boat",
      "photos": [
        {
          "id": 551,
          "path": "https://www.planyo.com/photos/551.jpg",
          "title": "Motor boat"
        }
      ],
      "properties": {
        "capacity": "6"
      },
      "quantity": 2,
      "site_id": 37091,
      "unit_names": "Boat A,Boat B",
      "unit_price": "45"
    },
    "response_code": 0,
    "response_message": "Method get_resource_info executed successfully."
  }
}
```

### Get site

Get the Planyo site's name, contact email, time zone and custom properties.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "admin_id": 4417,
      "category": 3,
      "default_language": "EN",
      "email": "owner@example.com",
      "name": "Lakeside Boat Rental",
      "online_payment_surcharge": 0,
      "photos": [
        {
          "id": 551,
          "path": "https://www.planyo.com/photos/551.jpg",
          "title": "Harbour"
        }
      ],
      "properties": {
        "address": "Seestrasse 1, Zurich"
      },
      "timezone": "Europe/Zurich"
    },
    "response_code": 0,
    "response_message": "Method get_site_info executed successfully."
  }
}
```

### List blocked time

List the periods when resources, or the whole site, are blocked off.

**Inputs**

- From (`start_time`, date, required): The first day to cover.
- To (`end_time`, date, required): The last day to cover.
- Resource (`resource_id`, text): Only this resource's blocked time. Pick one, or use a resource ID; all lists every resource's. Leave empty for the site's own.
- Include whole-site blocks (`include_site_vacations`, true/false): Also list time blocked for the whole site.
- Kind (`type`, text): Only this kind of blocked time. Leave empty for ordinary blocks. One of: `all` (All kinds), `1` (Set on the availability page), `2` (From Google Calendar), `3` (From an iCal feed), `4` (Waiting list placeholders), `5` (From Outlook).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "results": [
        {
          "comment": "Lodol QA",
          "end_time": "2030-07-01 23:59:00",
          "quantity": 1,
          "resource_id": 110224,
          "start_time": "2030-07-01 00:00:00",
          "vacation_id": 5520193
        }
      ]
    },
    "response_code": 0,
    "response_message": "Method list_vacations executed successfully."
  }
}
```

### List customers

List the site's customers, filtered as you choose, one page at a time.

**Inputs**

- First name (`first_name`, text): Only customers with this first name. You can use * to match any text, such as Jo*.
- Last name (`last_name`, text): Only customers with this last name. You can use * to match any text, such as Jo*.
- Email (`email`, text): Only customers with this email address. You can use * to match any text, such as Jo*.
- City (`city`, text): Only customers in this city. You can use * to match any text, such as Jo*.
- Country (`country`, text): Only customers in this country, as a two-letter code such as US.
- Include unconfirmed (`list_unconfirmed`, true/false): Also list customers who have no confirmed reservation.
- Added by staff (`list_created_by_admin`, true/false): List the customers your staff or the API added, including those with no reservations.
- Changed since (`modified_since`, date and time): Only customers added or changed since this time.
- Page (`page`, number): Which page to read, starting at 0. At least 0.
- Page size (`page_size`, number): How many customers a page holds, up to 1000. Planyo's default is 100. From 1 to 1000.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "users": [
        {
          "address": "Bahnhofstrasse 5",
          "city": "Zurich",
          "country": "CH",
          "email": "anna@example.com",
          "first_name": "Anna",
          "id": 902114,
          "language": "EN",
          "last_name": "Keller",
          "login": "",
          "mobile_country_code": "41",
          "mobile_number": "791234567",
          "phone_country_code": "41",
          "phone_number": "445551234",
          "registration_time": "2026-11-02 09:14",
          "reservation_count": 3,
          "state": "ZH",
          "zip": "8001"
        }
      ]
    },
    "response_code": 0,
    "response_message": "Method list_users executed successfully."
  }
}
```

### List payments

List the payments made for the site's reservations between two days.

**Inputs**

- From (`start_date`, date, required): The first day to cover.
- To (`end_date`, date, required): The last day to cover.
- Resource (`resource_id`, number): Only payments for this resource's reservations.
- Payment status (`status`, number): Only payments with this status. One of: `1` (Paid), `2` (Pending), `3` (Failed), `4` (Refund).
- Paid by (`payment_mode_id_filter`, number): Only payments made this way, as Planyo's payment method number, such as 2 for cash.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "results": [
        {
          "email": "anna@example.com",
          "first_name": "Anna",
          "last_name": "Keller",
          "payment_amount": 30.0,
          "payment_comment": "Deposit",
          "payment_currency": "CHF",
          "payment_date": "2026-12-01 15:30:00",
          "payment_id": 7781203,
          "payment_mode": "Cash",
          "payment_mode_id": 2,
          "reservation_id": 31884410,
          "resource_id": 110224,
          "status": "Payment successful",
          "status_code": 1,
          "user_id": 902114
        }
      ]
    },
    "response_code": 0,
    "response_message": "Method list_payments executed successfully."
  }
}
```

### List reservation history

List what has happened to reservations (confirmations, changes, cancellations, payments), filtered as you choose.

**Inputs**

- Reservation ID (`reservation_id`, number): Only this reservation's history.
- Customer (`customer`, number): Only the history of this customer's reservations.
- From (`start_time`, date): Only events on or after this day.
- To (`end_time`, date): Only events before this day.
- Event (`event_type`, number): Only this kind of event. One of: `1` (Confirmed), `2` (Cancelled by staff), `3` (Confirmed by pre-approval), `4` (Cancelled as fraud), `5` (Cancelled by the customer), `6` (Conflict cleared), `8` (Checked in), `9` (Entered by staff), `12` (Email verified), `13` (Changed by staff), and 13 more.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "results": [
        {
          "comments": "Confirmed by phone",
          "event_type": 1,
          "moderator": "Max Muster",
          "moderator_id": 4417,
          "reservation_id": 31884410,
          "resource_id": 110224,
          "resource_name": "Motor boat",
          "time": "2026-12-01 15:25:00"
        }
      ]
    },
    "response_code": 0,
    "response_message": "Method get_reservation_actions executed successfully."
  }
}
```

### List reservation payments

List the payments and coupons used for a reservation.

**Inputs**

- Reservation ID (`reservation_id`, number, required): The reservation's ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "coupons_used": [
        {
          "amount": 20.0,
          "coupon_id": 3301,
          "type": 1
        }
      ],
      "results": [
        {
          "amount": 30.0,
          "currency": "CHF",
          "extra_info": "Deposit",
          "payment_id": 7781203,
          "payment_mode": 2,
          "payment_status": 1,
          "payment_time": "2026-12-01 15:30:00",
          "transaction_id": "R-1042"
        }
      ]
    },
    "response_code": 0,
    "response_message": "Method list_reservation_payments executed successfully."
  }
}
```

### List reservations

List the reservations that start, or were made, in a period, up to 500 a page.

**Inputs**

- From (`start_time`, date, required): The first day to cover.
- To (`end_time`, date, required): The last day to cover.
- By booking date (`list_by_creation_date`, true/false): Cover reservations made in the period, instead of those starting in it.
- Resource (`resource_id`, number): Only reservations of this resource.
- Customer (`customer`, number): Only this customer's reservations.
- Customer email (`user_email`, text): Only reservations of the customer with this email address.
- With status (`required_status`, number): Only reservations with this status. One of: `1` (Reserved), `2` (Email verified), `4` (Confirmed), `8` (Cancelled by an administrator), `16` (Cancelled by the customer), `32` (Checked in), `64` (Fraud), `128` (Conflict), `512` (Cancelled automatically), `1024` (Checked out), and 4 more.
- Without status (`excluded_status`, number): Leave out reservations with this status. One of: `1` (Reserved), `2` (Email verified), `4` (Confirmed), `8` (Cancelled by an administrator), `16` (Cancelled by the customer), `32` (Checked in), `64` (Fraud), `128` (Conflict), `512` (Cancelled automatically), `1024` (Checked out), and 4 more.
- Changed since (`modified_since`, date and time): Only reservations changed in any way since this time.
- Sort by (`sort`, text): What to sort by. One of: `reservation_id` (Reservation ID), `start_time` (Start), `end_time` (End), `resource`, `user` (Customer), `email`.
- Reverse order (`sort_reverse`, true/false): Reverse the order.
- Page (`page`, number): Which page of 500 to read, starting at 0. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "results": [
        {
          "admin_notes": "Paid deposit",
          "amount_paid": 30.0,
          "creation_time": "2026-12-01 15:20:00",
          "email": "anna@example.com",
          "end_time": "2030-06-03 12:00:00",
          "first_name": "Anna",
          "last_name": "Keller",
          "name": "Motor boat",
          "phone": "445551234",
          "quantity": 1,
          "reservation_id": 31884410,
          "resource_id": 110224,
          "start_time": "2030-06-03 10:00:00",
          "status": 5,
          "total_price": 90.0,
          "unit_assignment": "Boat A",
          "user_id": 902114,
          "user_notes": "Two adults"
        }
      ]
    },
    "response_code": 0,
    "response_message": "Method list_reservations executed successfully."
  }
}
```

### List resources

List the site's resources (the rooms, boats, courts or other things people reserve), one page at a time.

**Inputs**

- Published only (`list_published_only`, true/false): Only list published resources.
- Reservable on their own only (`list_reservable_only`, true/false): Leave out resources that can only be reserved as part of a package.
- Resource types (`list_resource_types`, list): Only these kinds of resource. Leave empty for all. One or more of: `resource`, `bundle`, `package`.
- Sort by (`sort`, text): What to sort by. Leave empty to sort by name. One of: `resname` (Name), `site`, `location`.
- Page (`page`, number): Which page to read, starting at 0. At least 0.
- Page size (`page_size`, number): How many resources a page holds, up to 300. Planyo's default is 100. From 1 to 300.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "max_page": 0,
      "resource_count": 1,
      "resources": [
        {
          "category": 1,
          "confirmation_type": 0,
          "id": 110224,
          "name": "Motor boat",
          "quantity": 2,
          "site_id": 37091,
          "unit_names": "Boat A,Boat B"
        }
      ]
    },
    "response_code": 0,
    "response_message": "Method list_resources executed successfully."
  }
}
```

### List reviews

List up to the 500 latest reviews customers have left.

**Inputs**

- Resource (`resource_id`, number): Only reviews of this resource.
- Limit (`limit`, number): The most reviews to return, up to 500. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "results": [
        {
          "date": "2026-11-20 18:07:00",
          "first_name": "Anna",
          "rating": 5,
          "reply": "Thank you!",
          "resource_id": 110224,
          "text": "Lovely boat, easy pickup.",
          "user_id": 902114
        }
      ]
    },
    "response_code": 0,
    "response_message": "Method list_reviews executed successfully."
  }
}
```

### Record payment

Record a payment or refund against a reservation. Never enter card numbers.

**Inputs**

- Reservation ID (`reservation_id`, number, required): The reservation the payment is for.
- Amount (`amount`, number, required): How much was paid, such as 15.25.
- Currency (`currency`, text, required): The currency, as a three-letter code such as USD.
- Paid by (`payment_mode`, number, required): How it was paid. One of: `2` (Cash), `3` (Cheque), `4` (Bank transfer), `5` (Other), `6` (Gift certificate), `9` (Discount), `10` (Card on file), `40` (Custom payment method 1), `41` (Custom payment method 2), `42` (Custom payment method 3), and 3 more.
- Payment status (`payment_status`, number, required): Whether it went through, or is a refund. One of: `1` (Paid), `2` (Pending), `3` (Failed), `4` (Refund).
- Transaction ID (`transaction_id`, text, required): A unique reference for this payment, such as a receipt number.
- Note (`extra_info`, text): Any note to keep with the payment.
- Don't follow up (`is_quiet`, true/false): Don't send the emails or change the status that the payment would usually bring.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "payment_id": 7781203,
      "status": 5
    },
    "response_code": 0,
    "response_message": "Method add_reservation_payment executed successfully."
  }
}
```

### Remove blocked time

Make a blocked-off period available again.

**Inputs**

- Blocked time ID (`vacation_id`, number, required): The blocked period's ID, from List blocked time.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "response_code": 0,
    "response_message": "Method remove_vacation executed successfully."
  }
}
```

### Search reservations

Find reservations by customer name, email, phone, reservation ID or resource name, as the admin panel's search does.

**Inputs**

- Search for (`query`, text, required): What to look for. More words narrow the search.
- Sort by (`sort`, text): What to sort by. One of: `reservation_id` (Reservation ID), `resource`, `user` (Customer), `email`, `duration` (Length).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "results": [
        {
          "admin_notes": "Paid deposit",
          "email": "anna@example.com",
          "end_time": "2030-06-03 12:00:00",
          "first_name": "Anna",
          "last_name": "Keller",
          "name": "Motor boat",
          "phone": "445551234",
          "rental_id": 31884410,
          "resource_id": 110224,
          "start_time": "2030-06-03 10:00:00",
          "user_id": 902114,
          "user_notes": "Two adults"
        }
      ]
    },
    "response_code": 0,
    "response_message": "Method reservation_search executed successfully."
  }
}
```

### Set reservation notes

Replace a reservation's customer notes or staff notes.

**Inputs**

- Reservation ID (`reservation_id`, number, required): The reservation's ID.
- Customer notes (`user_notes`, text): The new customer notes. Leave empty to keep them.
- Staff notes (`admin_notes`, text): The new private staff notes. Leave empty to keep them.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "response_code": 0,
    "response_message": "Method set_reservation_notes executed successfully."
  }
}
```

### Update customer

Change a customer's details. Only the fields you fill in change.

**Inputs**

- Customer (`customer`, number, required): The customer to change. Pick one, or use a user ID.
- First name (`first_name`, text): Their new first name.
- New email (`new_email`, text): Their new email address.
- Last name (`last_name`, text): Their last name.
- Phone country code (`phone_country_code`, text): The phone number's country code, such as 1 for the US.
- Phone (`phone`, text): Their phone number, without the country code.
- Mobile country code (`mobile_country_code`, text): The mobile number's country code.
- Mobile (`mobile`, text): Their mobile number, without the country code.
- Address (`address`, text): Their street address.
- City (`city`, text): Their city.
- ZIP code (`zip`, text): Their ZIP or postal code.
- State (`state`, text): Their state or province.
- Country (`country`, text): Their country, as a two-letter code such as US.
- Language (`user_language`, text): The language for emails to them, as a two-letter code such as EN.
- Email verified (`email_verified`, true/false): Mark their email address as verified.
- Pre-approved (`is_preapproved`, true/false): Confirm this customer's reservations automatically. Turn off to stop.
- Banned (`is_banned`, true/false): Ban this customer. Turn off to lift the ban.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "user_id": 902114
    },
    "response_code": 0,
    "response_message": "Method modify_user executed successfully."
  }
}
```

### Update reservation

Change a reservation's resource, times, quantity or customer. Only the fields you fill in change.

**Inputs**

- Reservation ID (`reservation_id`, number, required): The reservation to change.
- Resource (`resource_id`, number): Move it to this resource.
- Start (`start_time`, text): The new start, in the Planyo site's own time zone, as YYYY-MM-DD HH:MM, such as 2026-12-24 14:00. For a whole day, use the next day's date with no time.
- End (`end_time`, text): The new end, in the Planyo site's own time zone, as YYYY-MM-DD HH:MM, such as 2026-12-24 14:00. For a whole day, use the next day's date with no time.
- Quantity (`quantity`, number): The new number of units. At least 1.
- Customer (`customer`, number): Give the reservation to this customer.
- Change as staff (`admin_mode`, true/false): Change it as an administrator, skipping the rental rules a customer would meet.
- Email the customer (`send_notifications`, true/false): Send the customer the usual emails. Turn off to change it quietly.
- Work out the price again (`recalculate_price`, true/false): Work out the price again after the change. Turn off to keep the price.
- Comment (`comments`, text): A comment about the change.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "status": 5,
      "warning_text": "The resource is not available at this time"
    },
    "response_code": 0,
    "response_message": "Method modify_reservation executed successfully."
  }
}
```
