# Scoro

> Manage projects, tasks, contacts, time entries and comments in Scoro.

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

## Actions

### Add comment

Comment on a task, project or other record, or reply to a comment.

**Inputs**

- Record type (`module`, text, required): What kind of record. One of: `tasks` (Task), `projects` (Project), `contacts` (Contact), `calendar` (Calendar event), `quotes` (Quote), `invoices` (Invoice).
- Record ID (`object_id`, number, required): The record's ID.
- Comment (`comment`, text, required): The comment.
- Written by (`author_id`, number, required): Who writes it.
- Reply to comment ID (`parent_id`, number): The ID of the comment this replies to.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "comment": "example",
    "comment_id": 1,
    "modified_date": "example",
    "parent_id": 1,
    "user_id": 1
  }
}
```

### Complete task

Mark a task as done.

**Inputs**

- Task ID (`task_id`, number, required): The task's ID, from a list or a trigger.
- Done at (`completed_datetime`, date and time): When it was done. Leave empty for now.

**Outputs**

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

**Example output**

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

### Create contact

Add a company or a person.

**Inputs**

- Type (`contact_type`, text): Whether it is a company or a person. One of: `company`, `person`. Default: `company`.
- Name (`name`, text, required): The company's name, or the person's first name.
- Last name (`lastname`, text): A person's last name.
- Email (`email`, text): Their email address.
- Phone (`phone`, text): Their phone number.
- Position (`position`, text): A person's job title.
- Registration code (`id_code`, text): The company's registration code, or the person's ID code.
- VAT number (`vatno`, text): Their VAT number.
- Notes (`comments`, text): Notes about them.
- Manager (`manager_id`, number): The user who manages the contact.
- Client (`is_client`, true/false): They are a client.
- Supplier (`is_supplier`, true/false): They are a supplier.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "addresses": [
      {}
    ],
    "cat_id": 1,
    "cat_name": "example",
    "comments": "example",
    "contact_id": 1,
    "contact_type": "example",
    "created_date": "example",
    "id_code": "example",
    "is_client": true,
    "is_deleted": true,
    "is_supplier": true,
    "lastname": "example",
    "manager_id": 1,
    "means_of_contact": {
      "email": [
        "example"
      ],
      "mobile": [
        "example"
      ],
      "phone": [
        "example"
      ],
      "website": [
        "example"
      ]
    },
    "modified_date": "example",
    "name": "example",
    "position": "example",
    "related_companies": [
      {}
    ],
    "search_name": "example",
    "tags": [
      "example"
    ],
    "vatno": "example"
  }
}
```

### Create project

Create a project.

**Inputs**

- Name (`project_name`, text, required): The project's name.
- Description (`description`, text): What the project is.
- Company (`company_id`, number): The client company.
- Manager (`manager_id`, number): The project manager.
- Status (`status`, text): Its status. One of: `pending`, `inprogress` (In progress), `completed`, `cancelled`, `future`, `additional1` (Custom status 1), `additional2` (Custom status 2), `additional3` (Custom status 3), `additional4` (Custom status 4).
- Start date (`date`, date): When it starts.
- Deadline (`deadline`, date): When it is due.
- Private (`is_private`, true/false): Only its members can see it.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "budget_type": "example",
    "color": "example",
    "company_id": 1,
    "company_name": "example",
    "completed_date": "example",
    "date": "example",
    "deadline": "example",
    "description": "example",
    "duration": "example",
    "is_deleted": true,
    "is_personal": true,
    "is_private": true,
    "manager_id": 1,
    "modified_date": "example",
    "no": 1,
    "project_id": 1,
    "project_name": "example",
    "project_type": "example",
    "status": "example",
    "status_name": "example",
    "tags": [
      "example"
    ]
  }
}
```

### Create task

Create a task.

**Inputs**

- Title (`event_name`, text, required): The task's title.
- Description (`description`, text): What the task is.
- Project (`project_id`, number): The project it belongs to.
- Company (`company_id`, number): The client company it is for.
- Assignees (`related_users`, list): The people it is assigned to.
- Start (`start_datetime`, date and time): When work on it starts.
- Due (`datetime_due`, date and time): When it is due.
- Planned minutes (`duration_planned`, number): Planned time, in minutes. At least 0.
- Priority (`priority_id`, number): Its priority. One of: `1` (High), `2` (Normal), `3` (Low).
- Status (`status`, text): Its status.
- Activity type (`activity_id`, number): Its activity type.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "activity_id": 1,
    "company_id": 1,
    "company_name": "example",
    "created_date": "example",
    "datetime_completed": "example",
    "datetime_due": "example",
    "description": "example",
    "duration_actual": "example",
    "duration_planned": "example",
    "event_id": 1,
    "event_name": "example",
    "is_completed": true,
    "is_deleted": true,
    "modified_date": "example",
    "owner_id": 1,
    "person_id": 1,
    "priority_id": 1,
    "project_id": 1,
    "project_name": "example",
    "project_phase_id": 1,
    "related_users": [
      1
    ],
    "start_datetime": "example",
    "status": "example",
    "status_name": "example"
  }
}
```

### Delete comment

Delete a comment.

**Inputs**

- Comment ID (`comment_id`, number, required): The comment's ID, from a list or a trigger.

**Outputs**

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

**Example output**

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

### Delete contact

Delete a company or person. Scoro keeps deleted records for 30 days.

**Inputs**

- Contact ID (`contact_id`, number, required): The contact's ID, from a list or a trigger.

**Outputs**

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

**Example output**

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

### Delete project

Delete a project. Scoro keeps deleted records for 30 days.

**Inputs**

- Project (`project_id`, number, required): The project.

**Outputs**

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

**Example output**

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

### Delete task

Delete a task and its subtasks. Scoro keeps deleted records for 30 days.

**Inputs**

- Task ID (`task_id`, number, required): The task's ID, from a list or a trigger.

**Outputs**

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

**Example output**

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

### Delete time entry

Delete a time entry.

**Inputs**

- Time entry ID (`time_entry_id`, number, required): The time entry's ID, from a list or a trigger.

**Outputs**

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

**Example output**

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

### Get contact

Get a company or person with their tags and custom fields.

**Inputs**

- Contact ID (`contact_id`, number, required): The contact's ID, from a list or a trigger.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "addresses": [
      {}
    ],
    "cat_id": 1,
    "cat_name": "example",
    "comments": "example",
    "contact_id": 1,
    "contact_type": "example",
    "created_date": "example",
    "id_code": "example",
    "is_client": true,
    "is_deleted": true,
    "is_supplier": true,
    "lastname": "example",
    "manager_id": 1,
    "means_of_contact": {
      "email": [
        "example"
      ],
      "mobile": [
        "example"
      ],
      "phone": [
        "example"
      ],
      "website": [
        "example"
      ]
    },
    "modified_date": "example",
    "name": "example",
    "position": "example",
    "related_companies": [
      {}
    ],
    "search_name": "example",
    "tags": [
      "example"
    ],
    "vatno": "example"
  }
}
```

### Get project

Get a project with its phases and custom fields.

**Inputs**

- Project (`project_id`, number, required): The project.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "budget_type": "example",
    "color": "example",
    "company_id": 1,
    "company_name": "example",
    "completed_date": "example",
    "date": "example",
    "deadline": "example",
    "description": "example",
    "duration": "example",
    "is_deleted": true,
    "is_personal": true,
    "is_private": true,
    "manager_id": 1,
    "modified_date": "example",
    "no": 1,
    "project_id": 1,
    "project_name": "example",
    "project_type": "example",
    "status": "example",
    "status_name": "example",
    "tags": [
      "example"
    ]
  }
}
```

### Get task

Get a task with its time entries.

**Inputs**

- Task ID (`task_id`, number, required): The task's ID, from a list or a trigger.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "activity_id": 1,
    "company_id": 1,
    "company_name": "example",
    "created_date": "example",
    "datetime_completed": "example",
    "datetime_due": "example",
    "description": "example",
    "duration_actual": "example",
    "duration_planned": "example",
    "event_id": 1,
    "event_name": "example",
    "is_completed": true,
    "is_deleted": true,
    "modified_date": "example",
    "owner_id": 1,
    "person_id": 1,
    "priority_id": 1,
    "project_id": 1,
    "project_name": "example",
    "project_phase_id": 1,
    "related_users": [
      1
    ],
    "start_datetime": "example",
    "status": "example",
    "status_name": "example",
    "time_entries": [
      {
        "activity_id": 1,
        "billable_duration": "example",
        "billable_time_type": "example",
        "completed_datetime": "example",
        "description": "example",
        "duration": "example",
        "end_datetime": "example",
        "event_id": 1,
        "event_type": "example",
        "is_billed": true,
        "is_completed": true,
        "is_confirmed": true,
        "is_deleted": true,
        "modified_date": "example",
        "start_datetime": "example",
        "time_entry_date": "example",
        "time_entry_id": 1,
        "title": "example",
        "user_id": 1
      }
    ]
  }
}
```

### List activity types

List the site's activity types, used on tasks and time.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Scoro.

**Example output**

```json
{
  "data": [
    {
      "activity_id": 1,
      "is_active": true,
      "is_group": true,
      "name": "example",
      "parent_id": 1,
      "parent_name": "example"
    }
  ]
}
```

### List comments

List the comments on a task, project or other record.

**Inputs**

- Record type (`module`, text, required): What kind of record. One of: `tasks` (Task), `projects` (Project), `contacts` (Contact), `calendar` (Calendar event), `quotes` (Quote), `invoices` (Invoice).
- Record ID (`object_id`, number, required): The record's ID.

**Outputs**

- `data` (list): The response from Scoro.

**Example output**

```json
{
  "data": [
    {
      "comment": "example",
      "comment_id": 1,
      "modified_date": "example",
      "parent_id": 1,
      "user_id": 1
    }
  ]
}
```

### List contacts

List companies and people, optionally by type, name or when they changed.

**Inputs**

- Type (`contact_type`, text): Only companies or only people. One of: `company`, `person`.
- Name (`name`, text): The name to look for. Use `%` as a wildcard, such as `Acme%`.
- Changed since (`modified_since`, date): Only records changed on or after this day.
- Page (`page`, number): The page of results, from 1. At least 1. Default: `1`.
- Page size (`per_page`, number): How many to return, at most 100. From 1 to 100. Default: `25`.

**Outputs**

- `data` (list): The response from Scoro.

**Example output**

```json
{
  "data": [
    {
      "addresses": [
        {}
      ],
      "cat_id": 1,
      "cat_name": "example",
      "comments": "example",
      "contact_id": 1,
      "contact_type": "example",
      "created_date": "example",
      "id_code": "example",
      "is_client": true,
      "is_deleted": true,
      "is_supplier": true,
      "lastname": "example",
      "manager_id": 1,
      "means_of_contact": {
        "email": [
          "example"
        ],
        "mobile": [
          "example"
        ],
        "phone": [
          "example"
        ],
        "website": [
          "example"
        ]
      },
      "modified_date": "example",
      "name": "example",
      "position": "example",
      "related_companies": [
        {}
      ],
      "search_name": "example",
      "tags": [
        "example"
      ],
      "vatno": "example"
    }
  ]
}
```

### List projects

List projects, optionally by status, client, manager or name.

**Inputs**

- Name (`project_name`, text): Part of the project's name.
- Status (`status`, text): Only projects with this status. One of: `pending`, `inprogress` (In progress), `completed`, `cancelled`, `future`, `additional1` (Custom status 1), `additional2` (Custom status 2), `additional3` (Custom status 3), `additional4` (Custom status 4).
- Company (`company_id`, number): Only projects for this client.
- Manager (`manager_id`, number): Only projects this person manages.
- Changed since (`modified_since`, date): Only records changed on or after this day.
- Page (`page`, number): The page of results, from 1. At least 1. Default: `1`.
- Page size (`per_page`, number): How many to return, at most 100. From 1 to 100. Default: `25`.

**Outputs**

- `data` (list): The response from Scoro.

**Example output**

```json
{
  "data": [
    {
      "budget_type": "example",
      "color": "example",
      "company_id": 1,
      "company_name": "example",
      "completed_date": "example",
      "date": "example",
      "deadline": "example",
      "description": "example",
      "duration": "example",
      "is_deleted": true,
      "is_personal": true,
      "is_private": true,
      "manager_id": 1,
      "modified_date": "example",
      "no": 1,
      "project_id": 1,
      "project_name": "example",
      "project_type": "example",
      "status": "example",
      "status_name": "example",
      "tags": [
        "example"
      ]
    }
  ]
}
```

### List statuses

List the statuses a kind of record can have.

**Inputs**

- Record type (`module`, text): The kind of record. One of: `tasks` (Task), `projects` (Project), `quotes` (Quote), `invoices` (Invoice), `calendar` (Calendar event).

**Outputs**

- `data` (list): The response from Scoro.

**Example output**

```json
{
  "data": [
    {
      "color": "example",
      "is_default": true,
      "module": "example",
      "status_id": "example",
      "status_name": "example"
    }
  ]
}
```

### List tasks

List tasks, optionally by project, status, whether they are done, or when they changed.

**Inputs**

- Project (`project_id`, number): Only tasks in this project.
- Status (`status`, text): Only tasks with this status.
- Done (`is_completed`, true/false): Only done tasks (on) or open ones (off).
- Changed since (`modified_since`, date): Only records changed on or after this day.
- Page (`page`, number): The page of results, from 1. At least 1. Default: `1`.
- Page size (`per_page`, number): How many to return, at most 100. From 1 to 100. Default: `25`.

**Outputs**

- `data` (list): The response from Scoro.

**Example output**

```json
{
  "data": [
    {
      "activity_id": 1,
      "company_id": 1,
      "company_name": "example",
      "created_date": "example",
      "datetime_completed": "example",
      "datetime_due": "example",
      "description": "example",
      "duration_actual": "example",
      "duration_planned": "example",
      "event_id": 1,
      "event_name": "example",
      "is_completed": true,
      "is_deleted": true,
      "modified_date": "example",
      "owner_id": 1,
      "person_id": 1,
      "priority_id": 1,
      "project_id": 1,
      "project_name": "example",
      "project_phase_id": 1,
      "related_users": [
        1
      ],
      "start_datetime": "example",
      "status": "example",
      "status_name": "example"
    }
  ]
}
```

### List time entries

List time entries, optionally for one task or person, or changed since a day.

**Inputs**

- Task ID (`task_id`, number): Only time on this task.
- Person (`user`, number): Only this person's time.
- Changed since (`modified_since`, date): Only records changed on or after this day.
- Page (`page`, number): The page of results, from 1. At least 1. Default: `1`.
- Page size (`per_page`, number): How many to return, at most 100. From 1 to 100. Default: `25`.

**Outputs**

- `data` (list): The response from Scoro.

**Example output**

```json
{
  "data": [
    {
      "activity_id": 1,
      "billable_duration": "example",
      "billable_time_type": "example",
      "completed_datetime": "example",
      "description": "example",
      "duration": "example",
      "end_datetime": "example",
      "event_id": 1,
      "event_type": "example",
      "is_billed": true,
      "is_completed": true,
      "is_confirmed": true,
      "is_deleted": true,
      "modified_date": "example",
      "start_datetime": "example",
      "time_entry_date": "example",
      "time_entry_id": 1,
      "title": "example",
      "user_id": 1
    }
  ]
}
```

### List users

List the site's users.

**Inputs**

- Status (`status`, text): Only users with this status. One of: `active`, `inactive`, `pending`.
- Page (`page`, number): The page of results, from 1. At least 1. Default: `1`.
- Page size (`per_page`, number): How many to return, at most 100. From 1 to 100. Default: `25`.

**Outputs**

- `data` (list): The response from Scoro.

**Example output**

```json
{
  "data": [
    {
      "category": "example",
      "email": "example",
      "firstname": "example",
      "full_name": "example",
      "id": 1,
      "initials": "example",
      "lastname": "example",
      "modified_date": "example",
      "position": "example",
      "status": "example",
      "timezone": "example",
      "username": "example"
    }
  ]
}
```

### Log time

Record time a person spent on a task.

**Inputs**

- Task ID (`task_id`, number, required): The task's ID.
- Person (`user`, number, required): Whose time it is.
- Minutes (`duration`, number, required): Minutes spent. At least 1.
- Started at (`start_datetime`, date and time): When the work started.
- Description (`description`, text): What was done.
- Billable (`billable_time_type`, text): Whether the time is billable. One of: `billable`, `non_billable` (Not billable).
- Done (`is_completed`, true/false): The time is done, not just planned.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "activity_id": 1,
    "billable_duration": "example",
    "billable_time_type": "example",
    "completed_datetime": "example",
    "description": "example",
    "duration": "example",
    "end_datetime": "example",
    "event_id": 1,
    "event_type": "example",
    "is_billed": true,
    "is_completed": true,
    "is_confirmed": true,
    "is_deleted": true,
    "modified_date": "example",
    "start_datetime": "example",
    "time_entry_date": "example",
    "time_entry_id": 1,
    "title": "example",
    "user_id": 1
  }
}
```

### Update contact

Change a company's or person's details.

**Inputs**

- Contact ID (`contact_id`, number, required): The contact's ID, from a list or a trigger.
- Name (`name`, text): The company's name, or the person's first name.
- Last name (`lastname`, text): A person's last name.
- Email (`email`, text): Their email address.
- Phone (`phone`, text): Their phone number.
- Position (`position`, text): A person's job title.
- Registration code (`id_code`, text): The company's registration code, or the person's ID code.
- VAT number (`vatno`, text): Their VAT number.
- Notes (`comments`, text): Notes about them.
- Manager (`manager_id`, number): The user who manages the contact.
- Client (`is_client`, true/false): They are a client.
- Supplier (`is_supplier`, true/false): They are a supplier.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "addresses": [
      {}
    ],
    "cat_id": 1,
    "cat_name": "example",
    "comments": "example",
    "contact_id": 1,
    "contact_type": "example",
    "created_date": "example",
    "id_code": "example",
    "is_client": true,
    "is_deleted": true,
    "is_supplier": true,
    "lastname": "example",
    "manager_id": 1,
    "means_of_contact": {
      "email": [
        "example"
      ],
      "mobile": [
        "example"
      ],
      "phone": [
        "example"
      ],
      "website": [
        "example"
      ]
    },
    "modified_date": "example",
    "name": "example",
    "position": "example",
    "related_companies": [
      {}
    ],
    "search_name": "example",
    "tags": [
      "example"
    ],
    "vatno": "example"
  }
}
```

### Update project

Change a project's name, description, client, manager, status or dates.

**Inputs**

- Project (`project_id`, number, required): The project.
- Name (`project_name`, text): The project's name.
- Description (`description`, text): What the project is.
- Company (`company_id`, number): The client company.
- Manager (`manager_id`, number): The project manager.
- Status (`status`, text): Its status. One of: `pending`, `inprogress` (In progress), `completed`, `cancelled`, `future`, `additional1` (Custom status 1), `additional2` (Custom status 2), `additional3` (Custom status 3), `additional4` (Custom status 4).
- Start date (`date`, date): When it starts.
- Deadline (`deadline`, date): When it is due.
- Private (`is_private`, true/false): Only its members can see it.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "budget_type": "example",
    "color": "example",
    "company_id": 1,
    "company_name": "example",
    "completed_date": "example",
    "date": "example",
    "deadline": "example",
    "description": "example",
    "duration": "example",
    "is_deleted": true,
    "is_personal": true,
    "is_private": true,
    "manager_id": 1,
    "modified_date": "example",
    "no": 1,
    "project_id": 1,
    "project_name": "example",
    "project_type": "example",
    "status": "example",
    "status_name": "example",
    "tags": [
      "example"
    ]
  }
}
```

### Update task

Change a task's title, description, project, assignees, dates, planned time, priority or status.

**Inputs**

- Task ID (`task_id`, number, required): The task's ID, from a list or a trigger.
- Title (`event_name`, text): The task's title.
- Description (`description`, text): What the task is.
- Project (`project_id`, number): The project it belongs to.
- Company (`company_id`, number): The client company it is for.
- Assignees (`related_users`, list): The people it is assigned to.
- Start (`start_datetime`, date and time): When work on it starts.
- Due (`datetime_due`, date and time): When it is due.
- Planned minutes (`duration_planned`, number): Planned time, in minutes. At least 0.
- Priority (`priority_id`, number): Its priority. One of: `1` (High), `2` (Normal), `3` (Low).
- Status (`status`, text): Its status.
- Activity type (`activity_id`, number): Its activity type.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "activity_id": 1,
    "company_id": 1,
    "company_name": "example",
    "created_date": "example",
    "datetime_completed": "example",
    "datetime_due": "example",
    "description": "example",
    "duration_actual": "example",
    "duration_planned": "example",
    "event_id": 1,
    "event_name": "example",
    "is_completed": true,
    "is_deleted": true,
    "modified_date": "example",
    "owner_id": 1,
    "person_id": 1,
    "priority_id": 1,
    "project_id": 1,
    "project_name": "example",
    "project_phase_id": 1,
    "related_users": [
      1
    ],
    "start_datetime": "example",
    "status": "example",
    "status_name": "example"
  }
}
```
