# AroFlo

> Manage AroFlo tasks, clients and notes, and read quotes, invoices, schedules, timesheets and more.

App · 24 actions. Web page: https://docs.lodol.com/docs/integrations/aroflo

## Actions

### Add a client note

Add a note to a client.

**Inputs**

- Client (`client_id`, text, required): The client the note is about.
- Content (`content`, text, required): The note, up to 1,000 characters.
- Visibility (`visibility`, text, required): Who can see the note. One of: `Internal Only`, `Internal Admin Only`, `Show Client`, `Show Contractor`, `Show All`.
- Sticky (`sticky`, true/false): Pin the note to the top of the client's notes.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "postresults": {
      "inserts": {
        "clientnotes": []
      },
      "inserttotal": 1.0,
      "updates": {
        "clientnotes": []
      },
      "updatetotal": 1.0
    }
  }
}
```

### Add a task note

Add a note to a task.

**Inputs**

- Task (`task_id`, text, required): The task to add the note to.
- Content (`content`, text, required): The note. Plain text or HTML.
- Visibility (`visibility`, text, required): Who can see the note. One of: `Internal Only`, `Internal Admin Only`, `Show Client`, `Show Contractor`, `Show All`.
- Sticky (`sticky`, true/false): Pin the note to the top of the task's notes.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "postresults": {
      "inserts": {
        "tasks": []
      },
      "inserttotal": 1.0,
      "updates": {
        "tasks": []
      },
      "updatetotal": 1.0
    }
  }
}
```

### Create a client

Create a client in a business unit.

**Inputs**

- Client name (`client_name`, text, required): The client's name, up to 50 characters.
- First name (`first_name`, text, required): The main contact's first name.
- Surname (`surname`, text, required): The main contact's surname.
- Business unit (`business_unit_id`, text, required): The business unit the client belongs to.
- Phone (`phone`, text): The client's phone number.
- Mobile (`mobile`, text): The client's mobile number.
- Email (`email`, text): The client's email address.
- Website (`website`, text): The client's website.
- Short name (`short_name`, text): A short name of up to 6 characters.
- ABN (`abn`, text): The client's ABN or business number.
- Address line 1 (`address_line_1`, text): The first line of the client's street address.
- Address line 2 (`address_line_2`, text): The second line of the street address.
- Suburb (`suburb`, text): The suburb or city.
- State (`state`, text): The state, such as VIC.
- Postcode (`postcode`, text): The postcode.
- Country (`country`, text): The country.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "postresults": {
      "inserts": {
        "clients": []
      },
      "inserttotal": 1.0,
      "updates": {
        "clients": []
      },
      "updatetotal": 1.0
    }
  }
}
```

### Create a task

Create a task (job) for a client.

**Inputs**

- Business unit (`business_unit_id`, text, required): The business unit doing the work.
- Client (`client_id`, text, required): The client the task is for.
- Task type (`task_type_id`, text, required): The type of task.
- Task name (`task_name`, text, required): A short name for the task, up to 50 characters.
- Due date (`due_date`, date, required): When the task is due.
- Description (`description`, text): What needs doing. Plain text or HTML.
- Location (`location_id`, text): The location the work is at. Leave blank for the client's address.
- Contact name (`contact_name`, text): The name of the person to contact about the task.
- Contact phone (`contact_phone`, text): Their phone number.
- Customer order number (`customer_order_number`, text): The client's order number.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "postresults": {
      "inserts": {
        "tasks": []
      },
      "inserttotal": 1.0,
      "updates": {
        "tasks": []
      },
      "updatetotal": 1.0
    }
  }
}
```

### Get a task

Get one task's details.

**Inputs**

- Task (`task_id`, text, required): The task to get.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "task": {
      "assetid": "example",
      "assets": [],
      "assigneds": [],
      "client": {
        "clientid": "example",
        "clientname": "example"
      },
      "completeddate": "example",
      "completeddatetime": "example",
      "contact": {
        "givennames": "example",
        "surname": "example",
        "userid": "example"
      },
      "contactname": "example",
      "contactphone": "example",
      "createddatetimeutc": "example",
      "createdutc": "example",
      "customfields": [],
      "custon": "example",
      "description": "example",
      "documentsandphotos": [],
      "duedate": "example",
      "duedatetime": "example",
      "expenses": [],
      "gpslatitude": "example",
      "gpslongitude": "example",
      "jobnumber": "example",
      "labours": [],
      "lastupdateddatetimeutc": "example",
      "lastupdatedutc": "example",
      "linkprocessed": "example",
      "linkprocesseddate": "example",
      "location": {},
      "materials": [],
      "org": {
        "orgid": "example",
        "orgname": "example"
      },
      "priority": 1.0,
      "project": {},
      "purchaseorders": [],
      "quote": {},
      "readtask": "example",
      "readtaskdatetime": "example",
      "refcode": "example",
      "requestdate": "example",
      "requestdatetime": "example",
      "salesperson": [],
      "stage": {},
      "status": "example",
      "substatus": {
        "substatus": "example",
        "substatusid": "example"
      },
      "taskid": "example",
      "tasklocation": {
        "locationid": "example",
        "locationname": "example"
      },
      "taskname": "example",
      "tasknotes": [],
      "tasktasktype": {
        "tasktype": "example",
        "tasktypeid": "example"
      },
      "tasktotals": {},
      "tasktype": "example",
      "webappEncodedID": "example"
    }
  }
}
```

### List assets

List assets. Without a filter, AroFlo returns assets created in the last 30 days.

**Inputs**

- Asset name (`asset_name`, text): Only return the asset with this name.
- Serial number (`serial_number`, text): Only return the asset with this serial number.
- Category (`category`, text): Only return assets in this category.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 500. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "assets": [],
    "currentpageresults": 1.0,
    "maxpageresults": 1.0,
    "pagenumber": "example"
  }
}
```

### List business units

List your AroFlo business units.

**Inputs**

- Business unit name (`business_unit_name`, text): Only return the business unit with this name.
- Archived (`archived`, true/false): Return archived records (yes) or current ones (no). Defaults to current ones.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 500. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "businessunits": [],
    "currentpageresults": 1.0,
    "maxpageresults": 1.0,
    "pagenumber": "example"
  }
}
```

### List clients

List clients. Without a filter, current (unarchived) clients are listed.

**Inputs**

- Client name (`client_name`, text): Only return the client with this name.
- Postable (`postable`, true/false): Only return clients changed in AroFlo since they were last marked processed.
- Archived (`archived`, true/false): Return archived records (yes) or current ones (no). Defaults to current ones.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 500. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "clients": [],
    "currentpageresults": 1.0,
    "maxpageresults": 1.0,
    "pagenumber": "example"
  }
}
```

### List contacts

List the contacts of your clients and contractors.

**Inputs**

- Contact type (`contact_type`, text): Only return client or contractor contacts. One of: `client`, `contractor`.
- Archived (`archived`, true/false): Return archived records (yes) or current ones (no). Defaults to current ones.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 500. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "contacts": [],
    "currentpageresults": 1.0,
    "maxpageresults": 1.0,
    "pagenumber": "example"
  }
}
```

### List inventory items

List inventory items and their prices. Without a filter, AroFlo returns items created in the last 30 days.

**Inputs**

- Part number (`part_number`, text): Only return the item with this part number.
- Description (`description`, text): Only return items with this description.
- Category (`category`, text): Only return items in this category.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 500. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "currentpageresults": 1.0,
    "items": [],
    "maxpageresults": 1.0,
    "pagenumber": "example"
  }
}
```

### List invoices

List invoices. Without a filter, AroFlo returns invoices created in the last 30 days.

**Inputs**

- Status (`status`, text): Only return invoices in this status. One of: `not started`, `pending approval`, `approved`, `processed`.
- Updated after (`updated_after`, date and time): Only return invoices changed after this time.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 500. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "currentpageresults": 1.0,
    "invoices": [],
    "maxpageresults": 1.0,
    "pagenumber": "example"
  }
}
```

### List locations

List client, supplier and business unit locations.

**Inputs**

- Client (`client_id`, text): Only return this client's locations.
- Location name (`location_name`, text): Only return the location with this name.
- Linked to type (`linked_to_type`, text): Only return locations of clients, suppliers or business units. One of: `client`, `supplier`, `businessunit`.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 500. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "currentpageresults": 1.0,
    "locations": [],
    "maxpageresults": 1.0,
    "pagenumber": "example"
  }
}
```

### List projects

List projects. Without a filter, AroFlo returns projects created in the last 30 days.

**Inputs**

- Project name (`project_name`, text): Only return the project with this name.
- Business unit (`business_unit_id`, text): Only return this business unit's projects.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 500. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "currentpageresults": 1.0,
    "maxpageresults": 1.0,
    "pagenumber": "example",
    "projects": []
  }
}
```

### List purchase orders

List purchase orders. Without a filter, AroFlo returns purchase orders created in the last 30 days.

**Inputs**

- Status (`status`, text): Only return purchase orders in this status. One of: `in progress`, `pending approval`, `approved`, `processed`.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 500. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "currentpageresults": 1.0,
    "maxpageresults": 1.0,
    "pagenumber": "example",
    "purchaseorders": []
  }
}
```

### List quotes

List quotes. Without a filter, AroFlo returns quotes created in the last 30 days.

**Inputs**

- Status (`status`, text): Only return quotes in this status. One of: `in progress`, `pending approval`, `approved`, `rejected`.
- Acceptance status (`acceptance_status`, text): Only return quotes with this customer decision. One of: `Not Sent`, `Awaiting Decision`, `Accepted`, `Declined`, `Need More Information`.
- Job number (`job_number`, number): Only return the quote with this job number. At least 1.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 500. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "currentpageresults": 1.0,
    "maxpageresults": 1.0,
    "pagenumber": "example",
    "quotes": []
  }
}
```

### List schedules

List scheduled work. Without a filter, AroFlo returns schedules starting in the last 30 days.

**Inputs**

- Task (`task_id`, text): Only return the schedules of this task.
- Start date (`start_date`, date): Only return schedules starting on this day.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 500. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "currentpageresults": 1.0,
    "maxpageresults": 1.0,
    "pagenumber": "example",
    "schedules": []
  }
}
```

### List suppliers

List suppliers. Without a filter, current (unarchived) suppliers are listed.

**Inputs**

- Supplier name (`supplier_name`, text): Only return the supplier with this name.
- Archived (`archived`, true/false): Return archived records (yes) or current ones (no). Defaults to current ones.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 500. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "currentpageresults": 1.0,
    "maxpageresults": 1.0,
    "pagenumber": "example",
    "suppliers": []
  }
}
```

### List task substatuses

List the substatuses tasks can be given.

**Inputs**

- Business unit (`business_unit_id`, text): Only return substatuses of this business unit.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 500. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "currentpageresults": 1.0,
    "maxpageresults": 1.0,
    "pagenumber": "example",
    "substatuses": []
  }
}
```

### List task types

List the task types tasks can be created with.

**Inputs**

- Client (`client_id`, text): Only return the task types this client may use.
- Archived (`archived`, true/false): Return archived records (yes) or current ones (no). Defaults to current ones.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 500. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "currentpageresults": 1.0,
    "maxpageresults": 1.0,
    "pagenumber": "example",
    "tasktypes": []
  }
}
```

### List tasks

List tasks (jobs). Without a filter, AroFlo returns tasks requested in the last 30 days.

**Inputs**

- Status (`status`, text): Only return tasks in this status. One of: `notstarted`, `inprogress`, `pending`, `completed`, `archived`, `quote`.
- Client name (`client_name`, text): Only return tasks for the client with this name.
- Job number (`job_number`, number): Only return the task with this job number. At least 1.
- Task type (`task_type_id`, text): Only return tasks of this task type.
- Requested after (`requested_after`, date and time): Only return tasks requested after this time.
- Updated after (`updated_after`, date and time): Only return tasks changed after this time.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 500. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "currentpageresults": 1.0,
    "maxpageresults": 1.0,
    "pagenumber": "example",
    "tasks": []
  }
}
```

### List timesheets

List timesheet entries. Without a filter, AroFlo returns entries from the last 30 days.

**Inputs**

- Task (`task_id`, text): Only return time logged against this task.
- User (`staff_user_id`, text): Only return this user's time.
- Work date (`work_date`, date): Only return time worked on this day.
- Time type (`time_type`, text): Only return this kind of time. One of: `Productive`, `Non-Productive`, `Expense`.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 500. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "currentpageresults": 1.0,
    "maxpageresults": 1.0,
    "pagenumber": "example",
    "timesheets": []
  }
}
```

### List users

List your AroFlo users (staff).

**Inputs**

- Given names (`given_names`, text): Only return users with these given names.
- Surname (`surname`, text): Only return users with this surname.
- Archived (`archived`, true/false): Return archived records (yes) or current ones (no). Defaults to current ones.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 500. From 1 to 500.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "currentpageresults": 1.0,
    "maxpageresults": 1.0,
    "pagenumber": "example",
    "users": []
  }
}
```

### Update a client

Change a client's details. Fields left blank keep their current values.

**Inputs**

- Client (`client_id`, text, required): The client to change.
- Client name (`client_name`, text): The client's new name, up to 50 characters.
- First name (`first_name`, text): The main contact's first name.
- Surname (`surname`, text): The main contact's surname.
- Phone (`phone`, text): The client's phone number.
- Mobile (`mobile`, text): The client's mobile number.
- Email (`email`, text): The client's email address.
- Website (`website`, text): The client's website.
- Postable (`postable`, true/false): Set to no once you've processed the client's changes.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "postresults": {
      "inserts": {
        "clients": []
      },
      "inserttotal": 1.0,
      "updates": {
        "clients": []
      },
      "updatetotal": 1.0
    }
  }
}
```

### Update a task

Change a task's name, status, substatus or order number.

**Inputs**

- Task (`task_id`, text, required): The task to change.
- Task name (`task_name`, text): The task's new name, up to 50 characters.
- Status (`status`, text): The task's new status. Set a matching substatus too, since AroFlo doesn't change it for you. One of: `Not Started`, `In Progress`, `Pending`, `Completed`, `Archived`.
- Substatus (`substatus_id`, text): The task's new substatus.
- Customer order number (`customer_order_number`, text): The client's order number.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "postresults": {
      "inserts": {
        "tasks": []
      },
      "inserttotal": 1.0,
      "updates": {
        "tasks": []
      },
      "updatetotal": 1.0
    }
  }
}
```
