# FieldPulse

> Manage FieldPulse customers, jobs, tags and comments, update invoices, and read estimates.

App · 27 actions. Web page: https://docs.lodol.com/docs/integrations/fieldpulse

## Actions

### Add a comment

Add an internal comment to a record, such as a customer or job.

**Inputs**

- Record type (`commentable_type`, text, required): The kind of record, such as `customer` or `job`.
- Record ID (`commentable_id`, number, required): The record's ID.
- Comment (`text`, text, required): The comment.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": {
      "id": 1
    }
  }
}
```

### Create a customer

Create a customer or lead. Give a first or last name, or a display name.

**Inputs**

- First name (`first_name`, text): First name.
- Last name (`last_name`, text): Last name.
- Display name (`display_name`, text): The name shown for the customer. Needed when there's no first or last name, and must be unique.
- Company name (`company_name`, text): Company name.
- Account type (`account_type`, text): Whether the customer is a person or a company. One of: `individual`, `company`.
- Email (`email`, text): Email address.
- Phone (`phone`, text): Phone number.
- Status (`status`, text): The customer's status. One of: `lead`, `opportunity`, `current customer`, `lost`, `other`, `inactive`.
- Pipeline status (`pipeline_status_id`, number): The customer's pipeline status.
- Lead source (`lead_source_id`, number): Where the customer came from.
- Assigned to (`assigned_to`, number): The user the customer is assigned to.
- Tags (`tag_ids`, list): Customer tags to give the customer.
- Service address line 1 (`service_address_1`, text): Service address, first line.
- Service address line 2 (`service_address_2`, text): Service address, second line.
- Service city (`service_address_city`, text): Service address city.
- Service state (`service_address_state`, text): Service address state.
- Service ZIP code (`service_address_zip_code`, text): Service address ZIP code.
- Notes (`notes`, text): Notes about the customer.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": {
      "display_name": "example",
      "first_name": "example",
      "id": 1,
      "last_name": "example",
      "status": "example",
      "updated_at": "example"
    }
  }
}
```

### Create a job

Create a job for a customer.

**Inputs**

- Customer (`customer_id`, number, required): The customer the job is for.
- Job type (`job_type`, text, required): The job's type, as your account names them, such as `Repair`.
- Billing (`billing`, number, required): FieldPulse's billing setting for the job, as a number. FieldPulse requires it; its documentation doesn't describe the values, so copy it from an existing job.
- Status (`status`, text): The job's status. New when left empty. One of: `new`, `in_progress` (In progress), `pending`, `completed`, `canceled`, `on_the_way` (On the way).
- Subtitle (`subtitle`, text): A short subtitle for the job.
- Start time (`start_time`, date and time): When the job starts.
- End time (`end_time`, date and time): When the job ends.
- Due date (`due_date`, date and time): When the job is due.
- Notes (`notes`, text): Notes about the job.
- Field notes (`field_notes`, text): Notes for the field team.
- Tags (`tag_ids`, list): Job tags to give the job.
- Location (`location_id`, number): The customer location for the job.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": {
      "customer_id": 1,
      "id": 1,
      "job_type": "example",
      "status": "example",
      "status_id": 1,
      "status_workflow_id": 1,
      "updated_at": "example"
    }
  }
}
```

### Create a tag

Create a tag for a kind of record.

**Inputs**

- Tag type (`tag_type`, text, required): The kind of record the tag is for. One of: `customer`, `job`, `subtask`, `invoice`, `item`, `flatrate_job` (Flatrate job), `user`, `timesheet`, `project`, `order`.
- Title (`title`, text, required): The tag's name. It must be unique for its kind of record.
- Color (`color`, text): The tag's color as a hex value, such as `#3366ff`. Needed for job tags.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": {
      "id": 1
    }
  }
}
```

### Delete a comment

Delete a comment.

**Inputs**

- Comment ID (`comment_id`, number, required): The comment's ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": {
      "id": 1
    }
  }
}
```

### Delete a customer

Delete a customer.

**Inputs**

- Customer (`customer_id`, number, required): The customer.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": {
      "id": 1
    }
  }
}
```

### Delete a job

Delete a job.

**Inputs**

- Job (`job_id`, number, required): The job.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": {
      "id": 1
    }
  }
}
```

### Delete a tag

Delete a tag.

**Inputs**

- Tag ID (`tag_id`, number, required): The tag's ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": {
      "id": 1
    }
  }
}
```

### Get a customer

Get one customer.

**Inputs**

- Customer (`customer_id`, number, required): The customer.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": {
      "display_name": "example",
      "first_name": "example",
      "id": 1,
      "last_name": "example",
      "status": "example",
      "updated_at": "example"
    }
  }
}
```

### Get a job

Get one job.

**Inputs**

- Job (`job_id`, number, required): The job.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": {
      "customer_id": 1,
      "id": 1,
      "job_type": "example",
      "status": "example",
      "status_id": 1,
      "status_workflow_id": 1,
      "updated_at": "example"
    }
  }
}
```

### Get an estimate

Get one estimate.

**Inputs**

- Estimate (`estimate_id`, number, required): The estimate.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": {
      "author_id": 1,
      "customer_id": 1,
      "discount": 1.0,
      "id": 1,
      "status": "example",
      "status_id": 1,
      "status_workflow_id": 1,
      "subtotal": 1.0,
      "tax": 1.0,
      "title": "example",
      "total": 1.0,
      "updated_at": "example"
    }
  }
}
```

### Get an invoice

Get one invoice.

**Inputs**

- Invoice (`invoice_id`, number, required): The invoice.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": {
      "author_id": 1,
      "customer_id": 1,
      "discount": 1.0,
      "id": 1,
      "status": "example",
      "status_id": 1,
      "status_workflow_id": 1,
      "subtotal": 1.0,
      "tax": 1.0,
      "title": "example",
      "total": 1.0,
      "updated_at": "example"
    }
  }
}
```

### List comments

List the comments on a record, such as a customer or job.

**Inputs**

- Record type (`object_type`, text): The kind of record, such as `customer`, `job`, `project` or `invoice`.
- Record ID (`object_id`, number): The record's ID.
- Page (`page`, number): Page of results to return, starting at 1. At least 1.
- Limit (`limit`, number): Records per page, up to 100. FieldPulse returns 20 when left empty. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": [],
    "total_count": 1
  }
}
```

### List customers

List customers, optionally matching a search.

**Inputs**

- Search (`search`, text): Text to search for.
- Sort by (`sort_by`, text): Field to sort by. `searchable` sorts by name. One of: `searchable`, `email`, `phone`, `address_1` (Address 1).
- Sort direction (`sort_dir`, text): Sort ascending or descending. One of: `asc`, `desc`.
- Count all matches (`calculate_count`, true/false): Include the total number of matching records in **total_count**.
- Page (`page`, number): Page of results to return, starting at 1. At least 1.
- Limit (`limit`, number): Records per page, up to 100. FieldPulse returns 20 when left empty. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": [],
    "total_count": 1
  }
}
```

### List estimates

List estimates, optionally matching a search.

**Inputs**

- Search (`search`, text): Text to search for.
- Sort by (`sort_by`, text): Field to sort by, such as `updated_at`.
- Sort direction (`sort_dir`, text): Sort ascending or descending. One of: `asc`, `desc`.
- Count all matches (`calculate_count`, true/false): Include the total number of matching records in **total_count**.
- Page (`page`, number): Page of results to return, starting at 1. At least 1.
- Limit (`limit`, number): Records per page, up to 100. FieldPulse returns 20 when left empty. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": [],
    "total_count": 1
  }
}
```

### List invoices

List invoices, optionally matching a search.

**Inputs**

- Search (`search`, text): Text to search for.
- Sort by (`sort_by`, text): Field to sort by, such as `updated_at`.
- Sort direction (`sort_dir`, text): Sort ascending or descending. One of: `asc`, `desc`.
- Count all matches (`calculate_count`, true/false): Include the total number of matching records in **total_count**.
- Page (`page`, number): Page of results to return, starting at 1. At least 1.
- Limit (`limit`, number): Records per page, up to 100. FieldPulse returns 20 when left empty. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": [],
    "total_count": 1
  }
}
```

### List job statuses

List the custom statuses in your job status workflows.

**Inputs**

- Limit (`limit`, number): Records to return, up to 100. FieldPulse returns 20 when left empty. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": [],
    "total_count": 1
  }
}
```

### List jobs

List jobs, filtered by a search, custom status or when they were created.

**Inputs**

- Search (`search`, text): Text to search for.
- Custom statuses (`status_ids`, list): Only jobs with these custom statuses.
- Created from (`created_from`, date and time): Only jobs created at or after this time.
- Created to (`created_to`, date and time): Only jobs created at or before this time.
- Sort by (`sort_by`, text): Field to sort by. One of: `created_at` (Created at), `updated_at` (Updated at).
- Sort direction (`sort_dir`, text): Sort ascending or descending. One of: `asc`, `desc`.
- With custom fields (`with_custom_fields`, true/false): Include each job's custom fields.
- Count all matches (`calculate_count`, true/false): Include the total number of matching records in **total_count**.
- Page (`page`, number): Page of results to return, starting at 1. At least 1.
- Limit (`limit`, number): Records per page, up to 100. FieldPulse returns 20 when left empty. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": [],
    "total_count": 1
  }
}
```

### List lead sources

List the lead sources customers can come from.

**Inputs**

- Page (`page`, number): Page of results to return, starting at 1. At least 1.
- Limit (`limit`, number): Records per page, up to 100. FieldPulse returns 20 when left empty. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": [],
    "total_count": 1
  }
}
```

### List locations

List customer locations.

**Inputs**

- Limit (`limit`, number): Records per page, up to 100. FieldPulse returns 20 when left empty. From 1 to 100.
- Page (`page`, number): Page of results to return, starting at 1. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": [],
    "total_count": 1
  }
}
```

### List pipeline statuses

List the pipeline statuses customers can have.

**Inputs**

- Page (`page`, number): Page of results to return, starting at 1. At least 1.
- Limit (`limit`, number): Records per page, up to 100. FieldPulse returns 20 when left empty. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": [],
    "total_count": 1
  }
}
```

### List tags

List customer or job tags.

**Inputs**

- Record type (`object_type`, text): Only tags for this kind of record. One of: `customer`, `job`.
- Page (`page`, number): Page of results to return, starting at 1. At least 1.
- Limit (`limit`, number): Records per page, up to 100. FieldPulse returns 20 when left empty. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": [],
    "total_count": 1
  }
}
```

### List teams

List your company's teams.

**Inputs**

- Page (`page`, number): Page of results to return, starting at 1. At least 1.
- Limit (`limit`, number): Records per page, up to 100. FieldPulse returns 20 when left empty. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": [],
    "total_count": 1
  }
}
```

### List users

List your company's users.

**Inputs**

- Limit (`limit`, number): Records to return, up to 100. FieldPulse returns 20 when left empty. From 1 to 100.
- Count all matches (`calculate_count`, true/false): Include the total number of matching records in **total_count**.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": [],
    "total_count": 1
  }
}
```

### Update a customer

Change a customer's details. Fields left empty are unchanged.

**Inputs**

- Customer (`customer_id`, number, required): The customer.
- First name (`first_name`, text): First name.
- Last name (`last_name`, text): Last name.
- Display name (`display_name`, text): The name shown for the customer. Needed when there's no first or last name, and must be unique.
- Company name (`company_name`, text): Company name.
- Account type (`account_type`, text): Whether the customer is a person or a company. One of: `individual`, `company`.
- Email (`email`, text): Email address.
- Phone (`phone`, text): Phone number.
- Status (`status`, text): The customer's status. One of: `lead`, `opportunity`, `current customer`, `lost`, `other`, `inactive`.
- Pipeline status (`pipeline_status_id`, number): The customer's pipeline status.
- Lead source (`lead_source_id`, number): Where the customer came from.
- Assigned to (`assigned_to`, number): The user the customer is assigned to.
- Tags (`tag_ids`, list): Customer tags to give the customer.
- Service address line 1 (`service_address_1`, text): Service address, first line.
- Service address line 2 (`service_address_2`, text): Service address, second line.
- Service city (`service_address_city`, text): Service address city.
- Service state (`service_address_state`, text): Service address state.
- Service ZIP code (`service_address_zip_code`, text): Service address ZIP code.
- Notes (`notes`, text): Notes about the customer.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": {
      "display_name": "example",
      "first_name": "example",
      "id": 1,
      "last_name": "example",
      "status": "example",
      "updated_at": "example"
    }
  }
}
```

### Update a job

Change a job's status, times, notes or tags. Fields left empty keep their current values.

**Inputs**

- Job (`job_id`, number, required): The job.
- Job type (`job_type`, text): The job's type.
- Status (`status`, text): The job's status. One of: `new`, `in_progress` (In progress), `pending`, `completed`, `canceled`, `on_the_way` (On the way).
- Subtitle (`subtitle`, text): A short subtitle for the job.
- Start time (`start_time`, date and time): When the job starts.
- End time (`end_time`, date and time): When the job ends.
- Due date (`due_date`, date and time): When the job is due.
- Notes (`notes`, text): Notes about the job.
- Field notes (`field_notes`, text): Notes for the field team.
- Tags (`tag_ids`, list): Job tags to give the job.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": {
      "customer_id": 1,
      "id": 1,
      "job_type": "example",
      "status": "example",
      "status_id": 1,
      "status_workflow_id": 1,
      "updated_at": "example"
    }
  }
}
```

### Update an invoice

Change an invoice's status, title, notes, reference or dates. Fields left empty keep their current values.

**Inputs**

- Invoice (`invoice_id`, number, required): The invoice.
- Status (`status`, text): The invoice's status. One of: `draft`, `invoiced`, `paid`, `partially_paid` (Partially paid), `void`.
- Title (`title`, text): The invoice's title.
- Reference (`reference`, text): Your reference for the invoice.
- Notes (`notes`, text): Notes on the invoice.
- Internal notes (`internal_notes`, text): Notes only your team sees.
- Invoiced date (`invoiced_date`, date and time): When the invoice was issued.
- Due date (`due_date`, date and time): When the invoice is due.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "error": false,
    "response": {
      "author_id": 1,
      "customer_id": 1,
      "discount": 1.0,
      "id": 1,
      "status": "example",
      "status_id": 1,
      "status_workflow_id": 1,
      "subtotal": 1.0,
      "tax": 1.0,
      "title": "example",
      "total": 1.0,
      "updated_at": "example"
    }
  }
}
```
