# Service Fusion

> Read customers, jobs, estimates, invoices and dispatch information in Service Fusion.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/service-fusion

## Actions

### Get calendar task

Get calendar task.

**Inputs**

- Calendar task (`calendar_task_id`, number, required): Calendar task id. At least 1.

**Outputs**

- `data` (object): A calendar task's schema.

**Example output**

```json
{
  "data": {
    "_expandable": [],
    "created_at": "example",
    "customers_id": [],
    "description": "example",
    "end_date": "example",
    "end_time": "example",
    "estimates_id": [],
    "id": 1,
    "is_completed": false,
    "is_no_specific_start_time": false,
    "is_public": false,
    "is_time_off": false,
    "jobs_id": [],
    "repeat": {
      "end_date": "example",
      "id": 1,
      "repeat_frequency": 1,
      "repeat_monthly_type": "example",
      "repeat_type": "example",
      "repeat_weekly_days": [],
      "start_date": "example",
      "stop_repeat_on_date": "example",
      "stop_repeat_on_occurrence": 1,
      "stop_repeat_type": "example"
    },
    "repeat_id": 1,
    "start_date": "example",
    "start_time": "example",
    "time_off_type": "example",
    "type": "example",
    "updated_at": "example",
    "users_id": []
  }
}
```

### Get current user

Get current user.

**Inputs**: None.

**Outputs**

- `data` (object): An authenticated user's schema.

**Example output**

```json
{
  "data": {
    "_expandable": [],
    "email": "example",
    "first_name": "example",
    "id": 1,
    "last_name": "example"
  }
}
```

### Get customer

Get customer.

**Inputs**

- Customer (`customer_id`, number, required): Customer id. At least 1.

**Outputs**

- `data` (object): A customer's schema.

**Example output**

```json
{
  "data": {
    "_expandable": [],
    "account_balance": 1.0,
    "account_number": "example",
    "agent": "example",
    "assigned_contract": "example",
    "contacts": [],
    "created_at": "example",
    "credit_rating": "example",
    "custom_fields": [],
    "customer_name": "example",
    "discount": 1.0,
    "discount_type": "example",
    "fully_qualified_name": "example",
    "id": 1,
    "industry": "example",
    "is_bill_for_drive_time": false,
    "is_taxable": false,
    "is_vip": false,
    "labor_charge_default_rate": 1.0,
    "labor_charge_type": "example",
    "last_serviced_date": "example",
    "locations": [],
    "parent_customer": "example",
    "payment_terms": "example",
    "payment_type": "example",
    "private_notes": "example",
    "public_notes": "example",
    "qbd_id": "example",
    "qbo_currency": "example",
    "qbo_id": 1,
    "qbo_sync_token": 1,
    "referral_source": "example",
    "tax_item_name": "example",
    "updated_at": "example"
  }
}
```

### Get estimate

Get estimate.

**Inputs**

- Estimate (`estimate_id`, number, required): Estimate id. At least 1.

**Outputs**

- `data` (object): An estimate's schema.

**Example output**

```json
{
  "data": {
    "_expandable": [],
    "agents": [],
    "category": "example",
    "city": "example",
    "contact_first_name": "example",
    "contact_last_name": "example",
    "contract": "example",
    "cost_total": 1.0,
    "created_at": "example",
    "custom_fields": [],
    "customer_id": 1,
    "customer_name": "example",
    "customer_payment_terms": "example",
    "description": "example",
    "documents": [],
    "due_total": 1.0,
    "duration": 1,
    "equipment": [],
    "gate_instructions": "example",
    "id": 1,
    "is_gated": false,
    "location_name": "example",
    "note_to_customer": "example",
    "notes": [],
    "number": "example",
    "opportunity_owner": "example",
    "opportunity_rating": 1,
    "other_charges": [],
    "parent_customer": "example",
    "payment_status": "example",
    "payment_type": "example",
    "payments": [],
    "phase": "example",
    "pictures": [],
    "po_number": "example",
    "postal_code": "example",
    "printable_work_order": [],
    "products": [],
    "project": "example",
    "services": [],
    "signatures": [],
    "source": "example",
    "start_date": "example",
    "state_prov": "example",
    "status": "example",
    "street_1": "example",
    "street_2": "example",
    "sub_status": "example",
    "tags": [],
    "tasks": [],
    "taxes_fees_total": 1.0,
    "tech_notes": "example",
    "techs_assigned": [],
    "time_frame_promised_end": "example",
    "time_frame_promised_start": "example",
    "total": 1.0,
    "updated_at": "example"
  }
}
```

### Get invoice

Get invoice.

**Inputs**

- Invoice (`invoice_id`, number, required): Invoice id. At least 1.

**Outputs**

- `data` (object): An invoice's schema.

**Example output**

```json
{
  "data": {
    "_expandable": [],
    "bill_to_customer_contact_id": 1,
    "bill_to_customer_id": 1,
    "bill_to_customer_location_id": 1,
    "bill_to_email_id": 1,
    "bill_to_phone_id": 1,
    "created_at": "example",
    "currency": "example",
    "customer": "example",
    "customer_contact": "example",
    "customer_message": "example",
    "date": "example",
    "id": 1,
    "is_paid": false,
    "mail_send_date": "example",
    "notes": "example",
    "number": 1,
    "pay_online_url": "example",
    "payment_terms": "example",
    "po_number": "example",
    "qbd_id": "example",
    "qbo_id": 1,
    "qbo_invoice_no": 1,
    "qbo_sync_token": 1,
    "qbo_synced_date": "example",
    "terms": "example",
    "total": 1.0,
    "updated_at": "example"
  }
}
```

### Get job

Get job.

**Inputs**

- Job (`job_id`, number, required): Job id. At least 1.

**Outputs**

- `data` (object): A job's schema.

**Example output**

```json
{
  "data": {
    "_expandable": [],
    "agents": [],
    "billable_expenses_total": 1.0,
    "called_in_by": "example",
    "category": "example",
    "check_number": "example",
    "city": "example",
    "closed_at": "example",
    "completion_notes": "example",
    "contact_first_name": "example",
    "contact_last_name": "example",
    "contract": "example",
    "cost_total": 1.0,
    "created_at": "example",
    "custom_fields": [],
    "customer_id": 1,
    "customer_name": "example",
    "customer_payment_terms": "example",
    "description": "example",
    "documents": [],
    "drive_labor_total": 1.0,
    "due_total": 1.0,
    "duration": 1,
    "end_date": "example",
    "equipment": [],
    "expenses": [],
    "gate_instructions": "example",
    "id": 1,
    "invoices": [],
    "is_gated": false,
    "is_requires_follow_up": false,
    "labor_charges": [],
    "location_name": "example",
    "note_to_customer": "example",
    "notes": [],
    "number": "example",
    "other_charges": [],
    "parent_customer": "example",
    "payment_status": "example",
    "payment_type": "example",
    "payments": [],
    "payments_deposits_total": 1.0,
    "phase": "example",
    "pictures": [],
    "po_number": "example",
    "postal_code": "example",
    "printable_work_order": [],
    "priority": "example",
    "products": [],
    "project": "example",
    "services": [],
    "signatures": [],
    "source": "example",
    "start_date": "example",
    "state_prov": "example",
    "status": "example",
    "street_1": "example",
    "street_2": "example",
    "sub_status": "example",
    "tasks": [],
    "taxes_fees_total": 1.0,
    "tech_notes": "example",
    "techs_assigned": [],
    "time_frame_promised_end": "example",
    "time_frame_promised_start": "example",
    "total": 1.0,
    "updated_at": "example",
    "visits": []
  }
}
```

### Get job category

Get job category.

**Inputs**

- Job category (`job_category_id`, number, required): Job category id. At least 1.

**Outputs**

- `data` (object): A job category's schema.

**Example output**

```json
{
  "data": {
    "_expandable": [],
    "id": 1,
    "name": "example"
  }
}
```

### Get job status

Get job status.

**Inputs**

- Job status (`job_status_id`, number, required): Job status id. At least 1.

**Outputs**

- `data` (object): A job statuse's schema.

**Example output**

```json
{
  "data": {
    "_expandable": [],
    "category": "example",
    "code": "example",
    "id": 1,
    "is_custom": "example",
    "name": "example"
  }
}
```

### Get technician

Get technician.

**Inputs**

- Tech (`tech_id`, number, required): Tech id. At least 1.

**Outputs**

- `data` (object): A tech's schema.

**Example output**

```json
{
  "data": {
    "_expandable": [],
    "bio": "example",
    "color_code": "example",
    "created_at": "example",
    "department": "example",
    "email": "example",
    "first_name": "example",
    "gender": "example",
    "id": 1,
    "is_field_worker": false,
    "is_phone_1_mobile": false,
    "is_phone_1_visible_to_client": false,
    "is_phone_2_mobile": false,
    "is_phone_2_visible_to_client": false,
    "is_sales_rep": false,
    "last_name": "example",
    "nickname_on_dispatch": "example",
    "nickname_on_workorder": "example",
    "phone_1": "example",
    "phone_2": "example",
    "title": "example",
    "updated_at": "example"
  }
}
```

### List calendar tasks

List calendar tasks.

**Inputs**

- Page (`page`, number): Used to send a page number to be displayed.
- Per page (`per_page`, number): Used to send a number of items displayed per page (min `1`, max `50`).
- Start date (`start_date`, date): Used to filter tasks that overlap or start on/after this date (format: `Y-m-d`). Works with `filters[period][end_date]` to define a date range. If only `start_date` is provided, it filters for tasks on that specific date.
- End date (`end_date`, date): Used to filter tasks that overlap or start on/before this date (format: `Y-m-d`). Works with `filters[period][start_date]` to define a date range. If only `end_date` is provided, it filters for tasks on that specific date.

**Outputs**

- `data` (object): A calendar-task's list schema.

**Example output**

```json
{
  "data": {
    "_expandable": [],
    "_meta": {
      "currentPage": 1,
      "pageCount": 1,
      "perPage": 1,
      "totalCount": 1
    },
    "items": []
  }
}
```

### List crews

List crews.

**Inputs**

- Page (`page`, number): Used to send a page number to be displayed.
- Per page (`per_page`, number): Used to send a number of items displayed per page (min `1`, max `50`).

**Outputs**

- `data` (object): A crew's list schema.

**Example output**

```json
{
  "data": {
    "_expandable": [],
    "_meta": {
      "currentPage": 1,
      "pageCount": 1,
      "perPage": 1,
      "totalCount": 1
    },
    "items": []
  }
}
```

### List customers

List customers.

**Inputs**

- Page (`page`, number): Used to send a page number to be displayed.
- Per page (`per_page`, number): Used to send a number of items displayed per page (min `1`, max `50`).
- Filters name (`filters_name`, text): Used to filter results by given name (partial match).
- Filters email (`filters_email`, text): Used to filter results by given email (full match).

**Outputs**

- `data` (object): A customer's list schema.

**Example output**

```json
{
  "data": {
    "_expandable": [],
    "_meta": {
      "currentPage": 1,
      "pageCount": 1,
      "perPage": 1,
      "totalCount": 1
    },
    "items": []
  }
}
```

### List estimates

List estimates.

**Inputs**

- Page (`page`, number): Used to send a page number to be displayed.
- Per page (`per_page`, number): Used to send a number of items displayed per page (min `1`, max `50`).
- Filters number (`filters_number`, text): Used to filter results by given number (partial match).
- Filters email (`filters_email`, text): Used to filter results by given email (full match).

**Outputs**

- `data` (object): A estimate's list schema.

**Example output**

```json
{
  "data": {
    "_expandable": [],
    "_meta": {
      "currentPage": 1,
      "pageCount": 1,
      "perPage": 1,
      "totalCount": 1
    },
    "items": []
  }
}
```

### List invoices

List invoices.

**Inputs**

- Page (`page`, number): Used to send a page number to be displayed.
- Per page (`per_page`, number): Used to send a number of items displayed per page (min `1`, max `50`).

**Outputs**

- `data` (object): A invoice's list schema.

**Example output**

```json
{
  "data": {
    "_expandable": [],
    "_meta": {
      "currentPage": 1,
      "pageCount": 1,
      "perPage": 1,
      "totalCount": 1
    },
    "items": []
  }
}
```

### List job categories

List job categories.

**Inputs**

- Page (`page`, number): Used to send a page number to be displayed.
- Per page (`per_page`, number): Used to send a number of items displayed per page (min `1`, max `50`).

**Outputs**

- `data` (object): A job-category's list schema.

**Example output**

```json
{
  "data": {
    "_expandable": [],
    "_meta": {
      "currentPage": 1,
      "pageCount": 1,
      "perPage": 1,
      "totalCount": 1
    },
    "items": []
  }
}
```

### List job statuses

List job statuses.

**Inputs**

- Page (`page`, number): Used to send a page number to be displayed.
- Per page (`per_page`, number): Used to send a number of items displayed per page (min `1`, max `50`).

**Outputs**

- `data` (object): A job-status's list schema.

**Example output**

```json
{
  "data": {
    "_expandable": [],
    "_meta": {
      "currentPage": 1,
      "pageCount": 1,
      "perPage": 1,
      "totalCount": 1
    },
    "items": []
  }
}
```

### List jobs

List jobs.

**Inputs**

- Page (`page`, number): Used to send a page number to be displayed.
- Per page (`per_page`, number): Used to send a number of items displayed per page (min `1`, max `50`).
- Filters number (`filters_number`, text): Used to filter results by given number (partial match).
- Filters email (`filters_email`, text): Used to filter results by given email (full match).
- Updated to (`updated_to`, date and time): Used to filter results by given `less than or equal` of updated date (format `RFC 3339`: `Y-m-d\TH:i:sP`).
- Updated from (`updated_from`, date and time): Used to filter results by given `greater than or equal` of updated date (format `RFC 3339`: `Y-m-d\TH:i:sP`).

**Outputs**

- `data` (object): A job's list schema.

**Example output**

```json
{
  "data": {
    "_expandable": [],
    "_meta": {
      "currentPage": 1,
      "pageCount": 1,
      "perPage": 1,
      "totalCount": 1
    },
    "items": []
  }
}
```

### List payment types

List payment types.

**Inputs**

- Page (`page`, number): Used to send a page number to be displayed.
- Per page (`per_page`, number): Used to send a number of items displayed per page (min `1`, max `50`).

**Outputs**

- `data` (object): A payment-type's list schema.

**Example output**

```json
{
  "data": {
    "_expandable": [],
    "_meta": {
      "currentPage": 1,
      "pageCount": 1,
      "perPage": 1,
      "totalCount": 1
    },
    "items": []
  }
}
```

### List sources

List sources.

**Inputs**

- Page (`page`, number): Used to send a page number to be displayed.
- Per page (`per_page`, number): Used to send a number of items displayed per page (min `1`, max `50`).

**Outputs**

- `data` (object): A source's list schema.

**Example output**

```json
{
  "data": {
    "_expandable": [],
    "_meta": {
      "currentPage": 1,
      "pageCount": 1,
      "perPage": 1,
      "totalCount": 1
    },
    "items": []
  }
}
```

### List technicians

List technicians.

**Inputs**

- Page (`page`, number): Used to send a page number to be displayed.
- Per page (`per_page`, number): Used to send a number of items displayed per page (min `1`, max `50`).
- Filters email (`filters_email`, text): Used to filter results by given email (partial match).

**Outputs**

- `data` (object): A tech's list schema.

**Example output**

```json
{
  "data": {
    "_expandable": [],
    "_meta": {
      "currentPage": 1,
      "pageCount": 1,
      "perPage": 1,
      "totalCount": 1
    },
    "items": []
  }
}
```
