# DaySchedule

> Book, reschedule and cancel DaySchedule appointments, check free times and keep your contacts up to date.

App · 18 actions. Web page: https://docs.lodol.com/docs/integrations/dayschedule

## Actions

### Cancel booking

Cancel a booking, with a reason.

**Inputs**

- Booking ID (`id`, number, required): The booking's ID, from List bookings.
- Reason (`cancel_reason`, text, required): Why it is canceled.
- Notify everyone (`notify_all`, true/false): Email the host and invitees about the change.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "message": "Success"
  }
}
```

### Confirm booking

Mark a booking confirmed, completed or a no-show.

**Inputs**

- Booking ID (`id`, number, required): The booking's ID, from List bookings.
- Status (`status`, text): The booking's new status. Confirmed if left empty. One of: `confirmed`, `completed`, `noshow` (No-show).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "message": "Success"
  }
}
```

### Create booking

Book a meeting with an event type's host for one or more invitees.

**Inputs**

- Event type (`resource_id`, number, required): The event type to book.
- Host (`host_user_id`, number, required): The team member who hosts the meeting.
- Start (`start_at`, date and time, required): When the meeting starts.
- End (`end_at`, date and time): When the meeting ends.
- Time zone (`time_zone`, text): The booking's time zone, such as America/New_York.
- Subject (`subject`, text): The meeting's subject.
- Description (`description`, text): A description to add to the calendar invite.
- Location (`location_type`, text, required): Where the meeting happens. One of: `google_meet` (Google Meet), `zoom`, `zoho` (Zoho Meeting), `microsoft_teams` (Microsoft Teams), `goto_meeting` (GoTo Meeting), `webex`, `joinme` (join.me), `physical` (In person), `virtual` (Other online meeting), `phone` (Phone call), `ask_invitee` (Ask the invitee), `inbound_call` (Invitee calls you).
- Address (`location_address`, text): The address, for an in-person meeting.
- Invitees (`invitees`, list, required): The people the meeting is booked for. Each needs a name and an email or phone.
- Internal note (`internal_note`, text): A note only your team sees.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "booking_id": 101,
    "booking_url": "https://acme.dayschedule.com/booking/101",
    "cancel_reason": "Conflict",
    "canceled_at": "2025-02-04T10:00:00.000Z",
    "created_at": "2025-02-01T09:00:00.000Z",
    "description": "Walk through the new plan",
    "duration": 15,
    "end_at": "2025-02-05T03:45:00.000Z",
    "host": {
      "email": "priya@example.com",
      "name": "Priya Shah",
      "user_id": 123
    },
    "internal_note": "VIP customer",
    "invitees": [
      {
        "email": "example@gmail.com",
        "invitee_id": 9001,
        "name": "Vikash Rathee",
        "phone": "+91 9997778888",
        "status": "confirmed"
      }
    ],
    "location": {
      "address": "12 Main St",
      "join_url": "https://meet.google.com/abc-defg-hij",
      "name": "Google Meet",
      "type": "google_meet"
    },
    "resource": {
      "event_type": "one_on_one",
      "name": "Product demo",
      "resource_id": 55,
      "slug": "product-demo",
      "type": "event"
    },
    "resource_id": 55,
    "source": "api",
    "start_at": "2025-02-05T03:30:00.000Z",
    "status": "confirmed",
    "subject": "Product demo",
    "time_zone": "Asia/Calcutta",
    "updated_at": "2025-02-01T09:00:00.000Z",
    "user_id": 123
  }
}
```

### Create contact

Add a contact to DaySchedule.

**Inputs**

- Name (`name`, text, required): Their name.
- Email (`email`, text): Their email. An email or a phone is needed.
- Phone (`phone`, text): Their phone, with the country code. An email or a phone is needed.
- Company (`company`, text): Their company.
- City (`city`, text): Their city.
- Country (`country`, text): Their two-letter country code, such as US.
- Tags (`tags`, list): Tags to give them.
- Rating (`rating`, number): A rating for them, as a number.
- Follow up on (`followup`, date and time): When to follow up with them.
- Owner (`user`, number): The team member who owns the contact.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "city": "Delhi",
    "company": "Acme Inc",
    "contact_id": 1234,
    "country": "IN",
    "created_at": "2025-01-01T09:00:00.000Z",
    "custom_fields": [
      {
        "name": "plan",
        "value": "Pro"
      }
    ],
    "email": "name@example.com",
    "followup": "2025-03-01T09:00:00.000Z",
    "name": "Vikash Rathee",
    "phone": "+91 1234567890",
    "rating": 3,
    "source": "api",
    "tags": [
      "Follow up"
    ],
    "updated_at": "2025-01-02T09:00:00.000Z",
    "user_id": 1234
  }
}
```

### Delete booking

Delete a booking.

**Inputs**

- Booking ID (`id`, number, required): The booking's ID, from List bookings.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "message": "Success"
  }
}
```

### Delete contact

Delete a contact.

**Inputs**

- Contact ID (`id`, number, required): The contact's ID, from List contacts.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "message": "Success"
  }
}
```

### Get available times

List the free time slots of an event type between two days.

**Inputs**

- Event type (`id`, number, required): The event type to check.
- From (`start`, date, required): The first day to check.
- To (`end`, date, required): The last day to check.
- Time zone (`time_zone`, text): The time zone for the slots, such as America/New_York. The event type's own if left empty.
- Duration (`duration`, number): The meeting length in minutes, for event types that offer several. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "slots": [
      {
        "capacity": 8,
        "date": "2025-02-05",
        "hours": [
          {
            "available": 1,
            "time": "2025-02-05T03:30:00.000Z",
            "users": [
              123
            ]
          }
        ]
      }
    ],
    "time_zone": "Asia/Calcutta",
    "users": [
      {
        "name": "Priya Shah",
        "time_zone": "Asia/Calcutta",
        "user_id": 123
      }
    ]
  }
}
```

### Get booking

Get one booking with its host, event type, invitees and location.

**Inputs**

- Booking ID (`id`, number, required): The booking's ID, from List bookings.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "booking_id": 101,
    "booking_url": "https://acme.dayschedule.com/booking/101",
    "cancel_reason": "Conflict",
    "canceled_at": "2025-02-04T10:00:00.000Z",
    "created_at": "2025-02-01T09:00:00.000Z",
    "description": "Walk through the new plan",
    "duration": 15,
    "end_at": "2025-02-05T03:45:00.000Z",
    "host": {
      "email": "priya@example.com",
      "name": "Priya Shah",
      "user_id": 123
    },
    "internal_note": "VIP customer",
    "invitees": [
      {
        "email": "example@gmail.com",
        "invitee_id": 9001,
        "name": "Vikash Rathee",
        "phone": "+91 9997778888",
        "status": "confirmed"
      }
    ],
    "location": {
      "address": "12 Main St",
      "join_url": "https://meet.google.com/abc-defg-hij",
      "name": "Google Meet",
      "type": "google_meet"
    },
    "resource": {
      "event_type": "one_on_one",
      "name": "Product demo",
      "resource_id": 55,
      "slug": "product-demo",
      "type": "event"
    },
    "resource_id": 55,
    "source": "api",
    "start_at": "2025-02-05T03:30:00.000Z",
    "status": "confirmed",
    "subject": "Product demo",
    "time_zone": "Asia/Calcutta",
    "updated_at": "2025-02-01T09:00:00.000Z",
    "user_id": 123
  }
}
```

### Get contact

Get one contact by their ID.

**Inputs**

- Contact ID (`id`, number, required): The contact's ID, from List contacts.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "city": "Delhi",
    "company": "Acme Inc",
    "contact_id": 1234,
    "country": "IN",
    "created_at": "2025-01-01T09:00:00.000Z",
    "custom_fields": [
      {
        "name": "plan",
        "value": "Pro"
      }
    ],
    "email": "name@example.com",
    "followup": "2025-03-01T09:00:00.000Z",
    "name": "Vikash Rathee",
    "phone": "+91 1234567890",
    "rating": 3,
    "source": "api",
    "tags": [
      "Follow up"
    ],
    "updated_at": "2025-01-02T09:00:00.000Z",
    "user_id": 1234
  }
}
```

### Get event type

Get one event, webinar, service or venue by its ID.

**Inputs**

- Event type (`id`, number, required): The event type to get.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "booking_url": "https://acme.dayschedule.com/product-demo",
    "color": "#0B3179",
    "created_at": "2025-01-01T09:00:00.000Z",
    "description": "A 15 minute walk-through",
    "event_type": "one_on_one",
    "is_enabled": true,
    "name": "Product demo",
    "resource_id": 55,
    "slug": "product-demo",
    "type": "event",
    "updated_at": "2025-01-02T09:00:00.000Z",
    "user_id": 123
  }
}
```

### List bookings

List bookings, filtered by day, invitee email, team member or search words.

**Inputs**

- From (`start_at`, date): Only bookings on or after this day.
- To (`end_at`, date): Only bookings on or before this day.
- Invitee email (`email`, text): Only bookings with this invitee's email.
- Search (`search`, text): Words to find in the bookings (up to 50 characters).
- User (`user`, number): Only those of this team member.
- Time zone (`time_zone`, text): The time zone the From and To days are in, such as America/New_York.
- Skip (`offset`, number): How many records to skip, up to 10,000. From 0 to 10000.
- Limit (`limit`, number): How many to return, from 1 to 1,000. 100 if left empty. From 1 to 1000.

**Outputs**

- `data` (list): The bookings.

**Example output**

```json
{
  "data": [
    {
      "booking_id": 101,
      "booking_url": "https://acme.dayschedule.com/booking/101",
      "cancel_reason": "Conflict",
      "canceled_at": "2025-02-04T10:00:00.000Z",
      "created_at": "2025-02-01T09:00:00.000Z",
      "description": "Walk through the new plan",
      "duration": 15,
      "end_at": "2025-02-05T03:45:00.000Z",
      "host": {
        "email": "priya@example.com",
        "name": "Priya Shah",
        "user_id": 123
      },
      "internal_note": "VIP customer",
      "invitees": [
        {
          "email": "example@gmail.com",
          "invitee_id": 9001,
          "name": "Vikash Rathee",
          "phone": "+91 9997778888",
          "status": "confirmed"
        }
      ],
      "location": {
        "address": "12 Main St",
        "join_url": "https://meet.google.com/abc-defg-hij",
        "name": "Google Meet",
        "type": "google_meet"
      },
      "resource": {
        "event_type": "one_on_one",
        "name": "Product demo",
        "resource_id": 55,
        "slug": "product-demo",
        "type": "event"
      },
      "resource_id": 55,
      "source": "api",
      "start_at": "2025-02-05T03:30:00.000Z",
      "status": "confirmed",
      "subject": "Product demo",
      "time_zone": "Asia/Calcutta",
      "updated_at": "2025-02-01T09:00:00.000Z",
      "user_id": 123
    }
  ]
}
```

### List contacts

List your contacts, optionally matching search words or of one team member.

**Inputs**

- Search (`search`, text): Words to find in the contacts (up to 50 characters).
- User (`user`, number): Only those of this team member.
- Skip (`offset`, number): How many records to skip, up to 10,000. From 0 to 10000.
- Limit (`limit`, number): How many to return, from 1 to 1,000. 100 if left empty. From 1 to 1000.

**Outputs**

- `data` (list): The contacts.

**Example output**

```json
{
  "data": [
    {
      "city": "Delhi",
      "company": "Acme Inc",
      "contact_id": 1234,
      "country": "IN",
      "created_at": "2025-01-01T09:00:00.000Z",
      "custom_fields": [
        {
          "name": "plan",
          "value": "Pro"
        }
      ],
      "email": "name@example.com",
      "followup": "2025-03-01T09:00:00.000Z",
      "name": "Vikash Rathee",
      "phone": "+91 1234567890",
      "rating": 3,
      "source": "api",
      "tags": [
        "Follow up"
      ],
      "updated_at": "2025-01-02T09:00:00.000Z",
      "user_id": 1234
    }
  ]
}
```

### List event types

List your events, webinars, services and venues that people can book.

**Inputs**

- Search (`search`, text): Words to find in the event types (up to 50 characters).
- User (`user`, number): Only those of this team member.
- Skip (`offset`, number): How many records to skip, up to 10,000. From 0 to 10000.
- Limit (`limit`, number): How many to return, from 1 to 1,000. 100 if left empty. From 1 to 1000.

**Outputs**

- `data` (list): The event types.

**Example output**

```json
{
  "data": [
    {
      "booking_url": "https://acme.dayschedule.com/product-demo",
      "color": "#0B3179",
      "created_at": "2025-01-01T09:00:00.000Z",
      "description": "A 15 minute walk-through",
      "event_type": "one_on_one",
      "is_enabled": true,
      "name": "Product demo",
      "resource_id": 55,
      "slug": "product-demo",
      "type": "event",
      "updated_at": "2025-01-02T09:00:00.000Z",
      "user_id": 123
    }
  ]
}
```

### List invitees

List the invitees of a booking with their answers, payment and check-in.

**Inputs**

- Booking ID (`booking_id`, number, required): The booking's ID, from List bookings.
- Skip (`offset`, number): How many records to skip, up to 10,000. From 0 to 10000.
- Limit (`limit`, number): How many to return, from 1 to 1,000. 100 if left empty. From 1 to 1000.

**Outputs**

- `data` (list): The invitees.

**Example output**

```json
{
  "data": [
    {
      "booking_id": 101,
      "check_in": false,
      "created_at": "2025-02-01T09:00:00.000Z",
      "email": "example@gmail.com",
      "guests": [
        "guest@example.com"
      ],
      "invitee_id": 9001,
      "name": "Vikash Rathee",
      "phone": "+91 9997778888",
      "questions": [
        {
          "label": "Company size",
          "name": "company_size",
          "value": "11-50"
        }
      ],
      "status": "confirmed",
      "time_zone": "Asia/Calcutta"
    }
  ]
}
```

### List users

List the team members in your DaySchedule account.

**Inputs**

- Search (`search`, text): Words to find in the users (up to 50 characters).
- Skip (`offset`, number): How many records to skip, up to 10,000. From 0 to 10000.
- Limit (`limit`, number): How many to return, from 1 to 1,000. 100 if left empty. From 1 to 1000.

**Outputs**

- `data` (list): The users.

**Example output**

```json
{
  "data": [
    {
      "created_at": "2025-01-01T09:00:00.000Z",
      "email": "priya@example.com",
      "name": "Priya Shah",
      "role": "Owner",
      "status": "active",
      "time_zone": "Asia/Calcutta",
      "updated_at": "2025-01-02T09:00:00.000Z",
      "user_id": 123
    }
  ]
}
```

### Reschedule booking

Move a booking to a new time.

**Inputs**

- Booking ID (`id`, number, required): The booking's ID, from List bookings.
- New start (`start_at`, date and time, required): When the meeting now starts.
- New end (`end_at`, date and time): When it now ends. Worked out from its length if left empty.
- Reason (`reschedule_reason`, text, required): Why it is moving.
- Notify everyone (`notify_all`, true/false): Email the host and invitees about the change.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "message": "Success"
  }
}
```

### Update booking note

Change the internal note on a booking.

**Inputs**

- Booking ID (`id`, number, required): The booking's ID, from List bookings.
- Internal note (`internal_note`, text, required): The note only your team sees.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "message": "Success"
  }
}
```

### Update contact

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

**Inputs**

- Contact ID (`id`, number, required): The contact's ID, from List contacts.
- Name (`name`, text): Their name.
- Email (`email`, text): Their email. An email or a phone is needed.
- Phone (`phone`, text): Their phone, with the country code. An email or a phone is needed.
- Company (`company`, text): Their company.
- City (`city`, text): Their city.
- Country (`country`, text): Their two-letter country code, such as US.
- Tags (`tags`, list): Tags to give them.
- Rating (`rating`, number): A rating for them, as a number.
- Follow up on (`followup`, date and time): When to follow up with them.
- Owner (`user`, number): The team member who owns the contact.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "message": "Success"
  }
}
```
