# Teachworks

> Run a tutoring or lesson business in Teachworks: add families and students, schedule and complete lessons with notes, record payments, and read invoices.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/teachworks

## Actions

### Add profile note

Add a note to a customer's or student's profile, for the office only or for teachers too.

**Inputs**

- Note (`content`, text, required): The note.
- Customer (`customer_id`, text): The customer it is about. Give this or a student.
- Student (`student_id`, text): The student it is about.
- Written by (`employee_id`, text): The employee it is from. Defaults to the company administrator.
- Teachers can see it (`teacher_visible`, true/false): On to show it to teachers as well as the office.

**Outputs**

- `note` (object): The new note

**Example output**

```json
{
  "note": {
    "content": "Moved Thursday lessons to 4:30 PM.",
    "created_at": "2026-11-30T15:13:39.000Z",
    "customer_id": 13655,
    "customer_name": "Kathy Peterson",
    "employee_id": 7099,
    "employee_name": "DeKorne, Angela",
    "id": 271,
    "student_id": 11390,
    "student_name": "Andrea Peterson",
    "teacher_visible": true
  }
}
```

### Add student to lesson

Add a student to a scheduled lesson.

**Inputs**

- Lesson ID (`lesson_id`, text, required): The lesson's ID, from 'List lessons' or an earlier step.
- Student (`student_id`, text, required): The student. Pick one, or give its ID.

**Outputs**

- `lesson` (object): The lesson, with the student added

**Example output**

```json
{
  "lesson": {
    "completed_at": "",
    "created_at": "2026-11-28T16:43:51Z",
    "description": "",
    "duration_minutes": 60,
    "employee_id": 7099,
    "employee_name": "DeKorne, Angela",
    "from_date": "2026-12-02",
    "from_datetime": "2026-12-02T21:00:00Z",
    "from_time": "16:00:00",
    "id": 6385,
    "location_id": 96,
    "location_name": "Waterloo Location",
    "name": "Math Tutoring",
    "participants": [
      {
        "amount": "25.0",
        "id": 12355,
        "lesson_id": 6385,
        "private_notes": "",
        "public_notes": "",
        "status": "Scheduled",
        "student_id": 11390,
        "student_name": "Peterson, Andrea"
      }
    ],
    "service_id": 89,
    "service_name": "Math Tutoring",
    "spaces": 1,
    "status": "Scheduled",
    "time_zone": "Eastern Time (US & Canada)",
    "to_date": "2026-12-02",
    "to_datetime": "2026-12-02T22:00:00Z",
    "to_time": "17:00:00",
    "updated_at": "2026-11-28T16:45:11Z"
  }
}
```

### Complete lesson

Mark a lesson attended, missed or cancelled for every student in it (or one), with lesson notes for the family and for staff.

**Inputs**

- Lesson ID (`lesson_id`, text, required): The lesson's ID, from 'List lessons' or an earlier step.
- Attendance (`status`, text): What happened. Defaults to Attended. One of: `Attended` (Attended (default)), `Missed`, `Cancelled`.
- Only student (`student_id`, text): Complete it for this student only. Leave empty for everyone.
- Lesson notes (`public_notes`, text): Notes shared with the family or student.
- Private notes (`private_notes`, text): Notes only teachers and admins see.

**Outputs**

- `lesson` (object): The completed lesson

**Example output**

```json
{
  "lesson": {
    "completed_at": "",
    "created_at": "2026-11-28T16:43:51Z",
    "description": "",
    "duration_minutes": 60,
    "employee_id": 7099,
    "employee_name": "DeKorne, Angela",
    "from_date": "2026-12-02",
    "from_datetime": "2026-12-02T21:00:00Z",
    "from_time": "16:00:00",
    "id": 6385,
    "location_id": 96,
    "location_name": "Waterloo Location",
    "name": "Math Tutoring",
    "participants": [
      {
        "amount": "25.0",
        "id": 12355,
        "lesson_id": 6385,
        "private_notes": "",
        "public_notes": "",
        "status": "Scheduled",
        "student_id": 11390,
        "student_name": "Peterson, Andrea"
      }
    ],
    "service_id": 89,
    "service_name": "Math Tutoring",
    "spaces": 1,
    "status": "Attended",
    "time_zone": "Eastern Time (US & Canada)",
    "to_date": "2026-12-02",
    "to_datetime": "2026-12-02T22:00:00Z",
    "to_time": "17:00:00",
    "updated_at": "2026-11-28T16:45:11Z"
  }
}
```

### Create family

Add a family: a customer billed for the lessons of its child students. Add the children with 'Create student'.

**Inputs**

- First name (`first_name`, text, required): First name.
- Last name (`last_name`, text, required): Last name.
- Email (`email`, text): Email address, used for lesson reminders and notes.
- Mobile phone (`mobile_phone`, text): Mobile phone number, used for text reminders.
- Home phone (`home_phone`, text): Home phone number.
- Work phone (`work_phone`, text): Work phone number.
- Salutation (`salutation`, text): How to address them. One of: `Mr.`, `Mrs.`, `Ms.`, `Miss`, `Mr. & Mrs.`, `Dr.`.
- Address (`address`, text): Street address.
- Address line 2 (`address_2`, text): Second address line.
- City (`city`, text): City.
- State (`state`, text): State or province.
- ZIP code (`zip_code`, text): ZIP or postal code.
- Country (`country`, text): Country.
- Notes (`additional_notes`, text): Notes about them.
- Status (`status`, text): Active, Inactive or Prospective. One of: `Active`, `Inactive`, `Prospective`.
- Email lesson reminders (`email_lesson_reminders`, true/false): Email reminders before lessons. Needs an email address.
- Email lesson notes (`email_lesson_notes`, true/false): Email the lesson notes after each lesson. Needs an email address.
- Text lesson reminders (`sms_lesson_reminders`, true/false): Text reminders before lessons. Needs a mobile phone.

**Outputs**

- `customer` (object): The new family

**Example output**

```json
{
  "customer": {
    "additional_notes": "",
    "address": "5 River Street",
    "city": "Kitchener",
    "country": "Canada",
    "created_at": "2026-11-28T18:28:42Z",
    "custom_fields": [],
    "customer_type": "family",
    "email": "kpeterson@example.com",
    "email_lesson_notes": 0,
    "email_lesson_reminders": 1,
    "first_name": "Kathy",
    "home_phone": "",
    "id": 13655,
    "last_name": "Peterson",
    "mobile_phone": "123-1234",
    "salutation": "",
    "sms_lesson_reminders": 1,
    "state": "ON",
    "status": "Active",
    "students_attributes": {},
    "updated_at": "2026-11-28T18:28:42Z",
    "work_phone": "",
    "zip": "N3B 4S7"
  }
}
```

### Create independent student

Add an independent student: a student who is billed directly, made as a customer and a student together.

**Inputs**

- First name (`first_name`, text, required): First name.
- Last name (`last_name`, text, required): Last name.
- Email (`email`, text): Email address, used for lesson reminders and notes.
- Mobile phone (`mobile_phone`, text): Mobile phone number, used for text reminders.
- Home phone (`home_phone`, text): Home phone number.
- Address (`address`, text): Street address.
- City (`city`, text): City.
- State (`state`, text): State or province.
- ZIP code (`zip_code`, text): ZIP or postal code.
- Country (`country`, text): Country.
- Notes (`additional_notes`, text): Notes about them.
- Status (`status`, text): Active, Inactive or Prospective. One of: `Active`, `Inactive`, `Prospective`.
- School (`school`, text): The student's school.
- Grade (`grade`, text): The student's grade level.
- Birth date (`birth_date`, date): The student's birth date.
- Start date (`start_date`, date): When the student started.
- Billing method (`billing_method`, text): How the student's lessons are charged. One of: `Service List Cost`, `Student Cost`, `Package`, `Flat Fee`.
- Default teachers (`default_teacher_ids`, list): The teachers the student usually has.
- Default location (`default_location_id`, text): Where the student usually has lessons.

**Outputs**

- `customer` (object): The new customer, with its student

**Example output**

```json
{
  "customer": {
    "additional_notes": "",
    "address": "5 River Street",
    "city": "Kitchener",
    "country": "Canada",
    "created_at": "2026-11-28T18:28:42Z",
    "custom_fields": [],
    "customer_type": "individual",
    "email": "kpeterson@example.com",
    "email_lesson_notes": 0,
    "email_lesson_reminders": 1,
    "first_name": "Kathy",
    "home_phone": "",
    "id": 13655,
    "last_name": "Peterson",
    "mobile_phone": "123-1234",
    "salutation": "",
    "sms_lesson_reminders": 1,
    "state": "ON",
    "status": "Active",
    "students_attributes": {
      "customer_id": 13655,
      "id": 11389
    },
    "updated_at": "2026-11-28T18:28:42Z",
    "work_phone": "",
    "zip": "N3B 4S7"
  }
}
```

### Create lesson

Schedule a lesson on a day, from a start to an end time, with a teacher, a service and students.

**Inputs**

- Date (`date`, date, required): The day of the lesson.
- Start time (`start_time`, time, required): When it starts, in your Teachworks time zone.
- End time (`end_time`, time, required): When it ends, the same day.
- Students (`student_ids`, list): The students in the lesson.
- Teacher (`employee_id`, text): The teacher giving the lesson.
- Service (`service_id`, text): The service taught, such as Math Tutoring.
- Location (`location_id`, text): Where the lesson is.
- Name (`name`, text): The lesson's name. Teachworks names it from the students if empty.
- Description (`description`, text): A description of the lesson.
- Spaces (`spaces`, number): How many students the lesson has room for. At least 1.
- Joinable (`joinable`, true/false): Let students sign themselves up for open spaces.

**Outputs**

- `lesson` (object): The new lesson

**Example output**

```json
{
  "lesson": {
    "completed_at": "",
    "created_at": "2026-11-28T16:43:51Z",
    "description": "",
    "duration_minutes": 60,
    "employee_id": 7099,
    "employee_name": "DeKorne, Angela",
    "from_date": "2026-12-02",
    "from_datetime": "2026-12-02T21:00:00Z",
    "from_time": "16:00:00",
    "id": 6385,
    "location_id": 96,
    "location_name": "Waterloo Location",
    "name": "Math Tutoring",
    "participants": [
      {
        "amount": "25.0",
        "id": 12355,
        "lesson_id": 6385,
        "private_notes": "",
        "public_notes": "",
        "status": "Scheduled",
        "student_id": 11390,
        "student_name": "Peterson, Andrea"
      }
    ],
    "service_id": 89,
    "service_name": "Math Tutoring",
    "spaces": 1,
    "status": "Scheduled",
    "time_zone": "Eastern Time (US & Canada)",
    "to_date": "2026-12-02",
    "to_datetime": "2026-12-02T22:00:00Z",
    "to_time": "17:00:00",
    "updated_at": "2026-11-28T16:45:11Z"
  }
}
```

### Create student

Add a child student to a family, whose lessons are billed to the family.

**Inputs**

- Family (`customer_id`, text, required): The family the student belongs to.
- First name (`first_name`, text, required): First name.
- Last name (`last_name`, text, required): Last name.
- Email (`email`, text): Email address, used for lesson reminders and notes.
- Mobile phone (`mobile_phone`, text): Mobile phone number, used for text reminders.
- Status (`status`, text): Active, Inactive or Prospective. One of: `Active`, `Inactive`, `Prospective`.
- Notes (`additional_notes`, text): Notes about them.
- School (`school`, text): The student's school.
- Grade (`grade`, text): The student's grade level.
- Birth date (`birth_date`, date): The student's birth date.
- Start date (`start_date`, date): When the student started.
- Billing method (`billing_method`, text): How the student's lessons are charged. One of: `Service List Cost`, `Student Cost`, `Package`, `Flat Fee`.
- Default teachers (`default_teacher_ids`, list): The teachers the student usually has.
- Default location (`default_location_id`, text): Where the student usually has lessons.

**Outputs**

- `student` (object): The new student

**Example output**

```json
{
  "student": {
    "additional_notes": "",
    "billing_method": "Service List Cost",
    "birth_date": "2014-12-14",
    "created_at": "2026-11-28T18:30:00Z",
    "custom_fields": [],
    "customer_id": 13655,
    "default_location_id": 96,
    "default_services": [
      {
        "id": 89,
        "name": "Math Tutoring"
      }
    ],
    "default_teachers": [
      {
        "first_name": "Angela",
        "id": 7099,
        "last_name": "DeKorne"
      }
    ],
    "email": "",
    "first_name": "Andrea",
    "grade": "6",
    "id": 11390,
    "last_name": "Peterson",
    "mobile_phone": "",
    "school": "Mapleview Elementary",
    "start_date": "2026-11-28",
    "status": "Active",
    "student_type": "child",
    "subjects": "Math",
    "updated_at": "2026-11-28T18:30:00Z"
  }
}
```

### Delete profile note

Delete a profile note.

**Inputs**

- Note ID (`note_id`, text, required): The note's ID, from 'List profile notes'.

**Outputs**

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

**Example output**

```json
{
  "deleted": true,
  "note_id": "271"
}
```

### Get customer

Get one customer (a family or an independent student) with their contact details and custom fields.

**Inputs**

- Customer (`customer_id`, text, required): The family or independent student. Pick one, or give its ID.

**Outputs**

- `customer` (object): The customer

**Example output**

```json
{
  "customer": {
    "additional_notes": "",
    "address": "5 River Street",
    "city": "Kitchener",
    "country": "Canada",
    "created_at": "2026-11-28T18:28:42Z",
    "custom_fields": [],
    "customer_type": "family",
    "email": "kpeterson@example.com",
    "email_lesson_notes": 0,
    "email_lesson_reminders": 1,
    "first_name": "Kathy",
    "home_phone": "",
    "id": 13655,
    "last_name": "Peterson",
    "mobile_phone": "123-1234",
    "salutation": "",
    "sms_lesson_reminders": 1,
    "state": "ON",
    "status": "Active",
    "students_attributes": {},
    "updated_at": "2026-11-28T18:28:42Z",
    "work_phone": "",
    "zip": "N3B 4S7"
  }
}
```

### Get invoice

Get one invoice with its totals and the lessons it bills.

**Inputs**

- Invoice ID (`invoice_id`, text, required): The invoice's ID, from 'List invoices'.

**Outputs**

- `invoice` (object): The invoice

**Example output**

```json
{
  "invoice": {
    "created_at": "2026-11-28T16:56:01Z",
    "customer_first_name": "Kathy",
    "customer_id": 13655,
    "customer_last_name": "Peterson",
    "date": "2026-11-28",
    "due_date": "2026-12-05",
    "end_date": "2026-11-28",
    "id": 548,
    "lessons": [],
    "number": 2,
    "sales_tax_total": "0.0",
    "start_date": "2026-11-22",
    "status": "Approved",
    "subtotal": "50.0",
    "total": "50.0"
  }
}
```

### Get lesson

Get one lesson with its teacher, times, status and students.

**Inputs**

- Lesson ID (`lesson_id`, text, required): The lesson's ID, from 'List lessons' or an earlier step.

**Outputs**

- `lesson` (object): The lesson

**Example output**

```json
{
  "lesson": {
    "completed_at": "",
    "created_at": "2026-11-28T16:43:51Z",
    "description": "",
    "duration_minutes": 60,
    "employee_id": 7099,
    "employee_name": "DeKorne, Angela",
    "from_date": "2026-12-02",
    "from_datetime": "2026-12-02T21:00:00Z",
    "from_time": "16:00:00",
    "id": 6385,
    "location_id": 96,
    "location_name": "Waterloo Location",
    "name": "Math Tutoring",
    "participants": [
      {
        "amount": "25.0",
        "id": 12355,
        "lesson_id": 6385,
        "private_notes": "",
        "public_notes": "",
        "status": "Scheduled",
        "student_id": 11390,
        "student_name": "Peterson, Andrea"
      }
    ],
    "service_id": 89,
    "service_name": "Math Tutoring",
    "spaces": 1,
    "status": "Scheduled",
    "time_zone": "Eastern Time (US & Canada)",
    "to_date": "2026-12-02",
    "to_datetime": "2026-12-02T22:00:00Z",
    "to_time": "17:00:00",
    "updated_at": "2026-11-28T16:45:11Z"
  }
}
```

### Get student

Get one student with their school, billing, default teachers and custom fields.

**Inputs**

- Student (`student_id`, text, required): The student. Pick one, or give its ID.

**Outputs**

- `student` (object): The student

**Example output**

```json
{
  "student": {
    "additional_notes": "",
    "billing_method": "Service List Cost",
    "birth_date": "2014-12-14",
    "created_at": "2026-11-28T18:30:00Z",
    "custom_fields": [],
    "customer_id": 13655,
    "default_location_id": 96,
    "default_services": [
      {
        "id": 89,
        "name": "Math Tutoring"
      }
    ],
    "default_teachers": [
      {
        "first_name": "Angela",
        "id": 7099,
        "last_name": "DeKorne"
      }
    ],
    "email": "",
    "first_name": "Andrea",
    "grade": "6",
    "id": 11390,
    "last_name": "Peterson",
    "mobile_phone": "",
    "school": "Mapleview Elementary",
    "start_date": "2026-11-28",
    "status": "Active",
    "student_type": "child",
    "subjects": "Math",
    "updated_at": "2026-11-28T18:30:00Z"
  }
}
```

### List customers

List customers (families and independent students), with filters for name, email, type, status and when they were added or changed.

**Inputs**

- First name (`first_name`, text): Only customers with this first name.
- Last name (`last_name`, text): Only customers with this last name.
- Email (`email`, text): Only the customer with this email address.
- Type (`customer_type`, text): Only families or only independent students. One of: `family` (Families), `independent` (Independent students).
- Status (`status`, text): Active, Inactive or Prospective. One of: `Active`, `Inactive`, `Prospective`.
- Added since (`created_since`, date): Only customers added on or after this day.
- Changed since (`updated_since`, date): Only customers changed on or after this day.
- Page (`page`, number): Which page of results, from 1. Defaults to the first. At least 1.
- Per page (`per_page`, number): How many to return, up to 50. Defaults to 50. From 1 to 50.
- Newest first (`newest_first`, true/false): List the newest first instead of the oldest.

**Outputs**

- `count` (number): How many were returned on this page
- `customers` (list): The customers
- `page` (number): The page returned

**Example output**

```json
{
  "count": 1,
  "customers": [
    {
      "additional_notes": "",
      "address": "5 River Street",
      "city": "Kitchener",
      "country": "Canada",
      "created_at": "2026-11-28T18:28:42Z",
      "custom_fields": [],
      "customer_type": "family",
      "email": "kpeterson@example.com",
      "email_lesson_notes": 0,
      "email_lesson_reminders": 1,
      "first_name": "Kathy",
      "home_phone": "",
      "id": 13655,
      "last_name": "Peterson",
      "mobile_phone": "123-1234",
      "salutation": "",
      "sms_lesson_reminders": 1,
      "state": "ON",
      "status": "Active",
      "students_attributes": {},
      "updated_at": "2026-11-28T18:28:42Z",
      "work_phone": "",
      "zip": "N3B 4S7"
    }
  ],
  "page": 1
}
```

### List employees

List employees (teachers and staff), optionally by name, email or status.

**Inputs**

- First name (`first_name`, text): Only employees with this first name.
- Last name (`last_name`, text): Only employees with this last name.
- Email (`email`, text): Only the employee with this email address.
- Status (`status`, text): Active, Inactive or Prospective. One of: `Active`, `Inactive`, `Prospective`.
- Page (`page`, number): Which page of results, from 1. Defaults to the first. At least 1.
- Per page (`per_page`, number): How many to return, up to 50. Defaults to 50. From 1 to 50.

**Outputs**

- `count` (number): How many were returned on this page
- `employees` (list): The employees
- `page` (number): The page returned

**Example output**

```json
{
  "count": 1,
  "employees": [
    {
      "created_at": "2026-01-08T16:24:54Z",
      "email": "adk@example.com",
      "employee_type": "Teacher",
      "first_name": "Angela",
      "id": 7099,
      "last_name": "DeKorne",
      "mobile_phone": "123-123-1234",
      "position": "Teacher",
      "status": "Active",
      "subjects": "English,Biology",
      "updated_at": "2026-01-08T16:24:54Z"
    }
  ],
  "page": 1
}
```

### List invoices

List invoices, optionally for one customer, with one status, or dated in a range of days.

**Inputs**

- Customer (`customer_id`, text): Only this customer's invoices.
- Status (`status`, text): Only invoices with this status. One of: `Saved` (Saved (draft)), `Approved`, `Paid`, `Void`.
- From (`date_from`, date): Only those dated on or after this day.
- Until (`date_to`, date): Only those dated on or before this day.
- Page (`page`, number): Which page of results, from 1. Defaults to the first. At least 1.
- Per page (`per_page`, number): How many to return, up to 50. Defaults to 50. From 1 to 50.
- Newest first (`newest_first`, true/false): List the newest first instead of the oldest.

**Outputs**

- `count` (number): How many were returned on this page
- `invoices` (list): The invoices
- `page` (number): The page returned

**Example output**

```json
{
  "count": 1,
  "invoices": [
    {
      "created_at": "2026-11-28T16:56:01Z",
      "customer_first_name": "Kathy",
      "customer_id": 13655,
      "customer_last_name": "Peterson",
      "date": "2026-11-28",
      "due_date": "2026-12-05",
      "end_date": "2026-11-28",
      "id": 548,
      "lessons": [],
      "number": 2,
      "sales_tax_total": "0.0",
      "start_date": "2026-11-22",
      "status": "Approved",
      "subtotal": "50.0",
      "total": "50.0"
    }
  ],
  "page": 1
}
```

### List lessons

List lessons in a range of days, optionally for one teacher, student, service or location, or with one status.

**Inputs**

- From (`from_date`, date): Only lessons on or after this day.
- Until (`to_date`, date): Only lessons on or before this day.
- Teacher (`employee_id`, text): Only this teacher's lessons.
- Student (`student_id`, text): Only this student's lessons.
- Service (`service_id`, text): Only lessons of this service.
- Location (`location_id`, text): Only lessons at this location.
- Status (`status`, text): Only lessons with this status. One of: `Scheduled`, `Attended`, `Missed`, `Cancelled`.
- Page (`page`, number): Which page of results, from 1. Defaults to the first. At least 1.
- Per page (`per_page`, number): How many to return, up to 50. Defaults to 50. From 1 to 50.
- Newest first (`newest_first`, true/false): List the newest first instead of the oldest.

**Outputs**

- `count` (number): How many were returned on this page
- `lessons` (list): The lessons
- `page` (number): The page returned

**Example output**

```json
{
  "count": 1,
  "lessons": [
    {
      "completed_at": "",
      "created_at": "2026-11-28T16:43:51Z",
      "description": "",
      "duration_minutes": 60,
      "employee_id": 7099,
      "employee_name": "DeKorne, Angela",
      "from_date": "2026-12-02",
      "from_datetime": "2026-12-02T21:00:00Z",
      "from_time": "16:00:00",
      "id": 6385,
      "location_id": 96,
      "location_name": "Waterloo Location",
      "name": "Math Tutoring",
      "participants": [
        {
          "amount": "25.0",
          "id": 12355,
          "lesson_id": 6385,
          "private_notes": "",
          "public_notes": "",
          "status": "Scheduled",
          "student_id": 11390,
          "student_name": "Peterson, Andrea"
        }
      ],
      "service_id": 89,
      "service_name": "Math Tutoring",
      "spaces": 1,
      "status": "Scheduled",
      "time_zone": "Eastern Time (US & Canada)",
      "to_date": "2026-12-02",
      "to_datetime": "2026-12-02T22:00:00Z",
      "to_time": "17:00:00",
      "updated_at": "2026-11-28T16:45:11Z"
    }
  ],
  "page": 1
}
```

### List locations

List your locations and rooms.

**Inputs**

- Name (`name`, text): Only locations with this name.
- Page (`page`, number): Which page of results, from 1. Defaults to the first. At least 1.
- Per page (`per_page`, number): How many to return, up to 50. Defaults to 50. From 1 to 50.

**Outputs**

- `count` (number): How many were returned on this page
- `locations` (list): The locations
- `page` (number): The page returned

**Example output**

```json
{
  "count": 1,
  "locations": [
    {
      "address": "152 King Street",
      "city": "Waterloo",
      "created_at": "2026-01-20T17:53:05Z",
      "id": 96,
      "is_sublocation": false,
      "name": "Waterloo Location",
      "parent_location_id": 0,
      "state": "ON",
      "zip": "N2J 1A1"
    }
  ],
  "page": 1
}
```

### List payments

List payments received, optionally from one customer or in a range of days.

**Inputs**

- Customer (`customer_id`, text): Only this customer's payments.
- From (`date_from`, date): Only those dated on or after this day.
- Until (`date_to`, date): Only those dated on or before this day.
- Page (`page`, number): Which page of results, from 1. Defaults to the first. At least 1.
- Per page (`per_page`, number): How many to return, up to 50. Defaults to 50. From 1 to 50.
- Newest first (`newest_first`, true/false): List the newest first instead of the oldest.

**Outputs**

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

**Example output**

```json
{
  "count": 1,
  "page": 1,
  "payments": [
    {
      "amount": "50.0",
      "created_at": "2026-11-30T19:56:18Z",
      "customer_first_name": "Kathy",
      "customer_id": 13655,
      "customer_last_name": "Peterson",
      "date": "2026-11-30",
      "description": "Payment for invoice 2",
      "id": 457,
      "payment_allocations": [],
      "payment_method": "Credit Card"
    }
  ]
}
```

### List profile notes

List the notes kept on customers' and students' profiles.

**Inputs**

- Customer (`customer_id`, text): Only notes on this customer.
- Student (`student_id`, text): Only notes on this student.
- Added since (`created_since`, date): Only notes added on or after this day.
- Page (`page`, number): Which page of results, from 1. Defaults to the first. At least 1.
- Per page (`per_page`, number): How many to return, up to 50. Defaults to 50. From 1 to 50.
- Newest first (`newest_first`, true/false): List the newest first instead of the oldest.

**Outputs**

- `count` (number): How many were returned on this page
- `notes` (list): The notes
- `page` (number): The page returned

**Example output**

```json
{
  "count": 1,
  "notes": [
    {
      "content": "Moved Thursday lessons to 4:30 PM.",
      "created_at": "2026-11-30T15:13:39.000Z",
      "customer_id": 13655,
      "customer_name": "Kathy Peterson",
      "employee_id": 7099,
      "employee_name": "DeKorne, Angela",
      "id": 271,
      "student_id": 11390,
      "student_name": "Andrea Peterson",
      "teacher_visible": true
    }
  ],
  "page": 1
}
```

### List services

List the services you teach, such as Math Tutoring, with their default cost and wage.

**Inputs**

- Name (`name`, text): Only services with this name.
- Page (`page`, number): Which page of results, from 1. Defaults to the first. At least 1.
- Per page (`per_page`, number): How many to return, up to 50. Defaults to 50. From 1 to 50.

**Outputs**

- `count` (number): How many were returned on this page
- `page` (number): The page returned
- `services` (list): The services

**Example output**

```json
{
  "count": 1,
  "page": 1,
  "services": [
    {
      "archived": false,
      "created_at": "2026-01-28T15:49:35Z",
      "default_cost": "25.0",
      "default_wage": "15.0",
      "id": 89,
      "name": "Math Tutoring"
    }
  ]
}
```

### List students

List students, optionally only one family's, or with a name, email or status.

**Inputs**

- Customer (`customer_id`, text): Only this family's students.
- First name (`first_name`, text): Only students with this first name.
- Last name (`last_name`, text): Only students with this last name.
- Email (`email`, text): Only the student with this email address.
- Status (`status`, text): Active, Inactive or Prospective. One of: `Active`, `Inactive`, `Prospective`.
- Page (`page`, number): Which page of results, from 1. Defaults to the first. At least 1.
- Per page (`per_page`, number): How many to return, up to 50. Defaults to 50. From 1 to 50.
- Newest first (`newest_first`, true/false): List the newest first instead of the oldest.

**Outputs**

- `count` (number): How many were returned on this page
- `page` (number): The page returned
- `students` (list): The students

**Example output**

```json
{
  "count": 1,
  "page": 1,
  "students": [
    {
      "additional_notes": "",
      "billing_method": "Service List Cost",
      "birth_date": "2014-12-14",
      "created_at": "2026-11-28T18:30:00Z",
      "custom_fields": [],
      "customer_id": 13655,
      "default_location_id": 96,
      "default_services": [
        {
          "id": 89,
          "name": "Math Tutoring"
        }
      ],
      "default_teachers": [
        {
          "first_name": "Angela",
          "id": 7099,
          "last_name": "DeKorne"
        }
      ],
      "email": "",
      "first_name": "Andrea",
      "grade": "6",
      "id": 11390,
      "last_name": "Peterson",
      "mobile_phone": "",
      "school": "Mapleview Elementary",
      "start_date": "2026-11-28",
      "status": "Active",
      "student_type": "child",
      "subjects": "Math",
      "updated_at": "2026-11-28T18:30:00Z"
    }
  ]
}
```

### Record payment

Record a payment a customer made, such as a check or a bank transfer. It takes no money: it notes money already received.

**Inputs**

- Customer (`customer_id`, text, required): The family or independent student. Pick one, or give its ID.
- Amount (`amount`, number, required): How much was paid, in your Teachworks currency. At least 0.01.
- Date (`date`, date): When it was paid.
- Method (`payment_method`, text): How it was paid. One of: `Cash`, `Check`, `Credit Card`, `Debit Card`, `Bank Transfer`, `PayPal`, `Other`.
- Description (`description`, text): What the payment is for.

**Outputs**

- `payment` (object): The payment recorded

**Example output**

```json
{
  "payment": {
    "amount": "50.0",
    "created_at": "2026-11-30T19:56:18Z",
    "customer_first_name": "Kathy",
    "customer_id": 13655,
    "customer_last_name": "Peterson",
    "date": "2026-11-30",
    "description": "Payment for invoice 2",
    "id": 457,
    "payment_allocations": [],
    "payment_method": "Credit Card"
  }
}
```

### Update customer

Change a family's or independent student's contact details, status or reminder settings. Only the fields given change.

**Inputs**

- Customer (`customer_id`, text, required): The family or independent student. Pick one, or give its ID.
- First name (`first_name`, text): A new first name.
- Last name (`last_name`, text): A new last name.
- Email (`email`, text): Email address, used for lesson reminders and notes.
- Mobile phone (`mobile_phone`, text): Mobile phone number, used for text reminders.
- Home phone (`home_phone`, text): Home phone number.
- Work phone (`work_phone`, text): Work phone number.
- Address (`address`, text): Street address.
- City (`city`, text): City.
- State (`state`, text): State or province.
- ZIP code (`zip_code`, text): ZIP or postal code.
- Country (`country`, text): Country.
- Notes (`additional_notes`, text): Notes about them.
- Status (`status`, text): Active, Inactive or Prospective. One of: `Active`, `Inactive`, `Prospective`.
- Email lesson reminders (`email_lesson_reminders`, true/false): Email reminders before lessons. Needs an email address.
- Email lesson notes (`email_lesson_notes`, true/false): Email the lesson notes after each lesson. Needs an email address.
- Text lesson reminders (`sms_lesson_reminders`, true/false): Text reminders before lessons. Needs a mobile phone.

**Outputs**

- `customer` (object): The customer

**Example output**

```json
{
  "customer": {
    "additional_notes": "",
    "address": "5 River Street",
    "city": "Kitchener",
    "country": "Canada",
    "created_at": "2026-11-28T18:28:42Z",
    "custom_fields": [],
    "customer_type": "family",
    "email": "kpeterson@example.com",
    "email_lesson_notes": 0,
    "email_lesson_reminders": 1,
    "first_name": "Kathy",
    "home_phone": "",
    "id": 13655,
    "last_name": "Peterson",
    "mobile_phone": "123-1234",
    "salutation": "",
    "sms_lesson_reminders": 1,
    "state": "ON",
    "status": "Inactive",
    "students_attributes": {},
    "updated_at": "2026-11-28T18:28:42Z",
    "work_phone": "",
    "zip": "N3B 4S7"
  }
}
```

### Update lesson

Reschedule a lesson or change its teacher, service, location or name, and add or remove students. Only the fields given change.

**Inputs**

- Lesson ID (`lesson_id`, text, required): The lesson's ID, from 'List lessons' or an earlier step.
- Date (`date`, date): A new day for the lesson.
- Start time (`start_time`, time): A new start time, in your Teachworks time zone.
- End time (`end_time`, time): A new end time.
- Teacher (`employee_id`, text): The teacher giving the lesson.
- Service (`service_id`, text): The service taught, such as Math Tutoring.
- Location (`location_id`, text): Where the lesson is.
- Name (`name`, text): The lesson's name. Teachworks names it from the students if empty.
- Description (`description`, text): A description of the lesson.
- Spaces (`spaces`, number): How many students the lesson has room for. At least 1.
- Joinable (`joinable`, true/false): Let students sign themselves up for open spaces.
- Add students (`add_student_ids`, list): Students to add to the lesson.
- Remove participants (`remove_participant_ids`, list): Participant IDs (not student IDs) to take out, from the lesson's participants.

**Outputs**

- `lesson` (object): The lesson

**Example output**

```json
{
  "lesson": {
    "completed_at": "",
    "created_at": "2026-11-28T16:43:51Z",
    "description": "",
    "duration_minutes": 60,
    "employee_id": 7099,
    "employee_name": "DeKorne, Angela",
    "from_date": "2026-12-02",
    "from_datetime": "2026-12-02T21:00:00Z",
    "from_time": "16:30:00",
    "id": 6385,
    "location_id": 96,
    "location_name": "Waterloo Location",
    "name": "Math Tutoring",
    "participants": [
      {
        "amount": "25.0",
        "id": 12355,
        "lesson_id": 6385,
        "private_notes": "",
        "public_notes": "",
        "status": "Scheduled",
        "student_id": 11390,
        "student_name": "Peterson, Andrea"
      }
    ],
    "service_id": 89,
    "service_name": "Math Tutoring",
    "spaces": 1,
    "status": "Scheduled",
    "time_zone": "Eastern Time (US & Canada)",
    "to_date": "2026-12-02",
    "to_datetime": "2026-12-02T22:00:00Z",
    "to_time": "17:30:00",
    "updated_at": "2026-11-28T16:45:11Z"
  }
}
```

### Update student

Change a student's details, status, billing method or default teachers. Only the fields given change.

**Inputs**

- Student (`student_id`, text, required): The student. Pick one, or give its ID.
- First name (`first_name`, text): A new first name.
- Last name (`last_name`, text): A new last name.
- Email (`email`, text): Email address, used for lesson reminders and notes.
- Mobile phone (`mobile_phone`, text): Mobile phone number, used for text reminders.
- Status (`status`, text): Active, Inactive or Prospective. One of: `Active`, `Inactive`, `Prospective`.
- Notes (`additional_notes`, text): Notes about them.
- School (`school`, text): The student's school.
- Grade (`grade`, text): The student's grade level.
- Birth date (`birth_date`, date): The student's birth date.
- Start date (`start_date`, date): When the student started.
- Billing method (`billing_method`, text): How the student's lessons are charged. One of: `Service List Cost`, `Student Cost`, `Package`, `Flat Fee`.
- Default teachers (`default_teacher_ids`, list): The teachers the student usually has.
- Default location (`default_location_id`, text): Where the student usually has lessons.

**Outputs**

- `student` (object): The student

**Example output**

```json
{
  "student": {
    "additional_notes": "",
    "billing_method": "Service List Cost",
    "birth_date": "2014-12-14",
    "created_at": "2026-11-28T18:30:00Z",
    "custom_fields": [],
    "customer_id": 13655,
    "default_location_id": 96,
    "default_services": [
      {
        "id": 89,
        "name": "Math Tutoring"
      }
    ],
    "default_teachers": [
      {
        "first_name": "Angela",
        "id": 7099,
        "last_name": "DeKorne"
      }
    ],
    "email": "",
    "first_name": "Andrea",
    "grade": "7",
    "id": 11390,
    "last_name": "Peterson",
    "mobile_phone": "",
    "school": "Mapleview Elementary",
    "start_date": "2026-11-28",
    "status": "Active",
    "student_type": "child",
    "subjects": "Math",
    "updated_at": "2026-11-28T18:30:00Z"
  }
}
```
