# HawkSoft

> Read HawkSoft agency clients, policies and claims, file log notes and attachments, record payments and add new clients, and follow what changes.

App · 11 actions. Web page: https://docs.lodol.com/docs/integrations/hawksoft

## Actions

### Attach file to client

Attach a PDF, image, MP3, EML or MSG file of up to 5 MB to a client, with a log note.

**Inputs**

- Agency (`agency_id`, number, required): The agency: a HawkSoft customer that subscribed to your integration in the HawkSoft Marketplace. At least 1.
- Client (`client_id`, number, required): The client's number in HawkSoft. The list shows clients changed in the last 30 days; type any other client number. At least 1.
- File (`file`, text, required): The file to attach: PDF, JPG, PNG, MP3, EML or MSG, up to 5 MB.
- Description (`description`, text, required): A short description of the file, shown in the client's log.
- Channel (`channel`, text, required): How the interaction happened, as HawkSoft's log shows it. One of: `1` (Phone to insured), `2` (Phone to carrier), `3` (Phone to agency staff), `4` (Phone to 3rd party), `5` (Phone from insured), `6` (Phone from carrier), `7` (Phone from agency staff), `8` (Phone from 3rd party), `9` (Mail to insured), `10` (Mail to carrier), and 46 more.
- Log note (`note`, text, required): The log note filed with the file.
- Policy (`policy_id`, text): The client's policy to file it under. HawkSoft staff prefer notes filed under a policy.
- When (`happened_at`, date and time): When it happened. Leave empty for now.
- Task title (`task_title`, text): Also create a task with this title, so someone in the agency reviews it. Leave empty for no task.
- Task description (`task_description`, text): What the task asks for. Required with a task title.
- Task due (`task_due`, date and time): When the task is due. Leave empty for today.
- Assign task to (`task_assign_to`, text): Who the task goes to. Leave empty for the client's CSR. One of: `CSR` (The client's CSR), `Producer` (The client's producer), `Agent1` (The policy's first agent), `Agent2` (The policy's second agent), `Agent3` (The policy's third agent), `FindByUserId` (A person I choose).
- Task assignee (`task_user_id`, number): The person to give the task to, when "Assign task to" is a person you choose. At least 1.
- Task category (`task_category`, text): The task's category in HawkSoft.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "queued": true,
    "refId": "example"
  }
}
```

### Create client

Add a prospect client, with an optional policy shell, that the agency fills in from carrier downloads. Needs the agency's Create Clients and Policies opt-in.

**Inputs**

- Agency (`agency_id`, number, required): The agency: a HawkSoft customer that subscribed to your integration in the HawkSoft Marketplace. At least 1.
- First name (`first_name`, text, required): The named insured's first name.
- Last name (`last_name`, text, required): The named insured's last name.
- Channel (`channel`, text, required): How the client reached the agency, for the log note HawkSoft files with the new client. One of: `1` (Phone to insured), `2` (Phone to carrier), `3` (Phone to agency staff), `4` (Phone to 3rd party), `5` (Phone from insured), `6` (Phone from carrier), `7` (Phone from agency staff), `8` (Phone from 3rd party), `9` (Mail to insured), `10` (Mail to carrier), and 46 more.
- Log note (`note`, text, required): The log note filed with the new client, such as where the lead came from.
- Email (`email`, text): The client's email address.
- Phone (`phone`, text): The client's cell phone number.
- Date of birth (`date_of_birth`, date): The named insured's date of birth.
- Company name (`company_name`, text): For a business client, its legal name. Leave empty for a personal client.
- Business type (`business_type`, text): For a business client, how it is set up. Leave empty for a corporation. One of: `Corporation`, `LLC`, `IndividualOrSoleProprietor` (Individual or sole proprietor), `Partnership`, `SubchapterS` (S corporation), `JointVenture` (Joint venture), `NonProfit` (Non-profit), `FamilyTrust` (Family trust).
- Address (`address1`, text): Mailing address, first line.
- Address line 2 (`address2`, text): Mailing address, second line.
- City (`city`, text): City.
- State (`state`, text): Two-letter state, such as TX.
- ZIP code (`zip`, text): ZIP code.
- Status (`status`, text): The client's status. Leave empty for Prospect. One of: `Prospect`, `Lead`, `Active`, `DeadFile` (Dead file).
- Office (`office_id`, number): The office to assign the client to. Leave empty for the agency's default office. At least 0.
- Source (`source`, text): Where the client came from, up to 14 characters.
- Policy number (`policy_number`, text): Add a policy shell with this policy number.
- Policy effective date (`policy_effective_date`, date): The policy shell's effective date.
- Policy state (`policy_state`, text): The two-letter state the policy is written in.
- Policy kind (`application_type`, text): The policy shell's kind. One of: `Personal`, `Commercial`, `Agricultural`, `Life`, `Health`, `EmployeeBenefits` (Employee benefits), `SuretyBond` (Surety bond), `Other`.
- Lines of business (`lines_of_business`, list): The policy shell's lines of business. One or more of: `AUTOP` (Personal auto), `HOME` (Homeowners), `DFIRE` (Dwelling fire), `PUMBR` (Personal umbrella), `CYCLE` (Motorcycle), `BOAT` (Watercraft (small boat)), `RECV` (Recreational vehicle), `FLOOD`, `MHOME` (Mobile homeowners), `INMRP` (Inland marine (personal)), and 17 more.
- Task title (`task_title`, text): Also create a task with this title, so someone in the agency reviews it. Leave empty for no task.
- Task description (`task_description`, text): What the task asks for. Required with a task title.
- Task due (`task_due`, date and time): When the task is due. Leave empty for today.
- Assign task to (`task_assign_to`, text): Who the task goes to. Leave empty for the client's CSR. One of: `CSR` (The client's CSR), `Producer` (The client's producer), `Agent1` (The policy's first agent), `Agent2` (The policy's second agent), `Agent3` (The policy's third agent), `FindByUserId` (A person I choose).
- Task assignee (`task_user_id`, number): The person to give the task to, when "Assign task to" is a person you choose. At least 1.
- Task category (`task_category`, text): The task's category in HawkSoft.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "clientNumber": 1,
    "queued": true
  }
}
```

### Create log note

File a note in a client's log, such as a call, email or text, with an optional task for agency staff.

**Inputs**

- Agency (`agency_id`, number, required): The agency: a HawkSoft customer that subscribed to your integration in the HawkSoft Marketplace. At least 1.
- Client (`client_id`, number, required): The client's number in HawkSoft. The list shows clients changed in the last 30 days; type any other client number. At least 1.
- Channel (`channel`, text, required): How the interaction happened, as HawkSoft's log shows it. One of: `1` (Phone to insured), `2` (Phone to carrier), `3` (Phone to agency staff), `4` (Phone to 3rd party), `5` (Phone from insured), `6` (Phone from carrier), `7` (Phone from agency staff), `8` (Phone from 3rd party), `9` (Mail to insured), `10` (Mail to carrier), and 46 more.
- Note (`note`, text, required): The note's text.
- Policy (`policy_id`, text): The client's policy to file it under. HawkSoft staff prefer notes filed under a policy.
- When (`happened_at`, date and time): When it happened. Leave empty for now.
- Task title (`task_title`, text): Also create a task with this title, so someone in the agency reviews it. Leave empty for no task.
- Task description (`task_description`, text): What the task asks for. Required with a task title.
- Task due (`task_due`, date and time): When the task is due. Leave empty for today.
- Assign task to (`task_assign_to`, text): Who the task goes to. Leave empty for the client's CSR. One of: `CSR` (The client's CSR), `Producer` (The client's producer), `Agent1` (The policy's first agent), `Agent2` (The policy's second agent), `Agent3` (The policy's third agent), `FindByUserId` (A person I choose).
- Task assignee (`task_user_id`, number): The person to give the task to, when "Assign task to" is a person you choose. At least 1.
- Task category (`task_category`, text): The task's category in HawkSoft.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "queued": true,
    "refId": "example"
  }
}
```

### Find clients by policy number

Find the clients that hold a policy number. The number must match exactly.

**Inputs**

- Agency (`agency_id`, number, required): The agency: a HawkSoft customer that subscribed to your integration in the HawkSoft Marketplace. At least 1.
- Policy number (`policy_number`, text, required): The policy number, exactly as HawkSoft has it.
- Include (`include`, list): Which parts of the client to return. Leave empty for details, people, contacts, claims and policies. Invoices need the agency's accounting opt-in. One or more of: `Details`, `People`, `Contacts`, `Claims`, `Policies`, `Invoices`.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "claims": [
        {
          "amountPaid": 1,
          "claimNumber": "example",
          "claimStatus": "example",
          "id": "example",
          "lossAmount": 1,
          "lossDate": "example",
          "modified": "example",
          "policyNumber": "example"
        }
      ],
      "clientNumber": 1,
      "contacts": [
        {
          "data": "example",
          "id": "example",
          "type": "example"
        }
      ],
      "details": {
        "clientType": "example",
        "companyName": "example",
        "csr": "example",
        "id": "example",
        "isCommercial": true,
        "isPersonal": true,
        "mailingAddress": {
          "address1": "example",
          "address2": "example",
          "city": "example",
          "state": "example",
          "zip": "example"
        },
        "modified": "example",
        "status": "example"
      },
      "invoices": [
        {
          "balance": 1,
          "dueDate": "example",
          "id": "example",
          "invoiceNumber": "example",
          "total": 1
        }
      ],
      "people": [
        {
          "firstName": "example",
          "id": "example",
          "lastName": "example"
        }
      ],
      "policies": [
        {
          "carrier": "example",
          "effectiveDate": "example",
          "expirationDate": "example",
          "id": "example",
          "modified": "example",
          "policyNumber": "example",
          "premium": 1,
          "status": "example",
          "statusDate": "example",
          "title": "example",
          "type": "example"
        }
      ]
    }
  ]
}
```

### Get client

Get a client with their details, people, contacts, policies and claims.

**Inputs**

- Agency (`agency_id`, number, required): The agency: a HawkSoft customer that subscribed to your integration in the HawkSoft Marketplace. At least 1.
- Client (`client_id`, number, required): The client's number in HawkSoft. The list shows clients changed in the last 30 days; type any other client number. At least 1.
- Include (`include`, list): Which parts of the client to return. Leave empty for details, people, contacts, claims and policies. Invoices need the agency's accounting opt-in. One or more of: `Details`, `People`, `Contacts`, `Claims`, `Policies`, `Invoices`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "claims": [
      {
        "amountPaid": 1,
        "claimNumber": "example",
        "claimStatus": "example",
        "id": "example",
        "lossAmount": 1,
        "lossDate": "example",
        "modified": "example",
        "policyNumber": "example"
      }
    ],
    "clientNumber": 1,
    "contacts": [
      {
        "data": "example",
        "id": "example",
        "type": "example"
      }
    ],
    "details": {
      "clientType": "example",
      "companyName": "example",
      "csr": "example",
      "id": "example",
      "isCommercial": true,
      "isPersonal": true,
      "mailingAddress": {
        "address1": "example",
        "address2": "example",
        "city": "example",
        "state": "example",
        "zip": "example"
      },
      "modified": "example",
      "status": "example"
    },
    "invoices": [
      {
        "balance": 1,
        "dueDate": "example",
        "id": "example",
        "invoiceNumber": "example",
        "total": 1
      }
    ],
    "people": [
      {
        "firstName": "example",
        "id": "example",
        "lastName": "example"
      }
    ],
    "policies": [
      {
        "carrier": "example",
        "effectiveDate": "example",
        "expirationDate": "example",
        "id": "example",
        "modified": "example",
        "policyNumber": "example",
        "premium": 1,
        "status": "example",
        "statusDate": "example",
        "title": "example",
        "type": "example"
      }
    ]
  }
}
```

### Get clients

Get up to 200 clients at once by their numbers, such as the ones List changed clients returned.

**Inputs**

- Agency (`agency_id`, number, required): The agency: a HawkSoft customer that subscribed to your integration in the HawkSoft Marketplace. At least 1.
- Client numbers (`client_numbers`, list, required): The client numbers to read, up to 200.
- Include (`include`, list): Which parts of the client to return. Leave empty for details, people, contacts, claims and policies. Invoices need the agency's accounting opt-in. One or more of: `Details`, `People`, `Contacts`, `Claims`, `Policies`, `Invoices`.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "claims": [
        {
          "amountPaid": 1,
          "claimNumber": "example",
          "claimStatus": "example",
          "id": "example",
          "lossAmount": 1,
          "lossDate": "example",
          "modified": "example",
          "policyNumber": "example"
        }
      ],
      "clientNumber": 1,
      "contacts": [
        {
          "data": "example",
          "id": "example",
          "type": "example"
        }
      ],
      "details": {
        "clientType": "example",
        "companyName": "example",
        "csr": "example",
        "id": "example",
        "isCommercial": true,
        "isPersonal": true,
        "mailingAddress": {
          "address1": "example",
          "address2": "example",
          "city": "example",
          "state": "example",
          "zip": "example"
        },
        "modified": "example",
        "status": "example"
      },
      "invoices": [
        {
          "balance": 1,
          "dueDate": "example",
          "id": "example",
          "invoiceNumber": "example",
          "total": 1
        }
      ],
      "people": [
        {
          "firstName": "example",
          "id": "example",
          "lastName": "example"
        }
      ],
      "policies": [
        {
          "carrier": "example",
          "effectiveDate": "example",
          "expirationDate": "example",
          "id": "example",
          "modified": "example",
          "policyNumber": "example",
          "premium": 1,
          "status": "example",
          "statusDate": "example",
          "title": "example",
          "type": "example"
        }
      ]
    }
  ]
}
```

### List agencies

List the agencies that subscribed to your integration, with the data each one shares.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "agencyId": 1,
      "scopes": [
        "example"
      ]
    }
  ]
}
```

### List changed clients

List the numbers of clients changed since a time, or every client number when no time is given.

**Inputs**

- Agency (`agency_id`, number, required): The agency: a HawkSoft customer that subscribed to your integration in the HawkSoft Marketplace. At least 1.
- Changed since (`changed_since`, date and time): Only clients changed after this time. Leave empty for every client.
- Office (`office_id`, number): Only clients of this office. At least 0.
- Deleted clients (`deleted`, true/false): Turn on to list deleted clients instead.

**Outputs**

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

**Example output**

```json
{
  "data": [
    1
  ]
}
```

### List offices

List an agency's offices and their addresses.

**Inputs**

- Agency (`agency_id`, number, required): The agency: a HawkSoft customer that subscribed to your integration in the HawkSoft Marketplace. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "AddressLine1": "example",
      "AddressLine2": "example",
      "City": "example",
      "OfficeDescription": "example",
      "OfficeId": 1,
      "PrimaryOffice": true,
      "State": "example",
      "SubAgencyName": "example",
      "Zipcode": "example"
    }
  ]
}
```

### List users

List an agency's active HawkSoft users, for assigning tasks. Needs the agency's User List Details opt-in.

**Inputs**

- Agency (`agency_id`, number, required): The agency: a HawkSoft customer that subscribed to your integration in the HawkSoft Marketplace. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "email": "example",
      "firstName": "example",
      "homeOffice": 1,
      "lastName": "example",
      "userId": 1,
      "username": "example"
    }
  ]
}
```

### Record payment

Record a payment a client made, optionally applied to an invoice, with a log note. Needs the agency's accounting opt-in.

**Inputs**

- Agency (`agency_id`, number, required): The agency: a HawkSoft customer that subscribed to your integration in the HawkSoft Marketplace. At least 1.
- Client (`client_id`, number, required): The client's number in HawkSoft. The list shows clients changed in the last 30 days; type any other client number. At least 1.
- Amount (`amount`, number, required): The amount paid.
- Channel (`channel`, text, required): How the interaction happened, as HawkSoft's log shows it. One of: `1` (Phone to insured), `2` (Phone to carrier), `3` (Phone to agency staff), `4` (Phone to 3rd party), `5` (Phone from insured), `6` (Phone from carrier), `7` (Phone from agency staff), `8` (Phone from 3rd party), `9` (Mail to insured), `10` (Mail to carrier), and 46 more.
- Log note (`note`, text, required): The log note filed with the payment.
- Payment method (`pay_method`, text): How the client paid. Leave empty for Other. One of: `Cash`, `Check`, `ElectronicCheck` (E-check), `CreditCard` (Credit card), `Debit` (Debit card), `Visa`, `Mastercard`, `AmericanExpress` (American Express), `Discover`, `MoneyOrder` (Money order), `Voucher`, `Other`.
- Invoice (`invoice_id`, text): The invoice to apply the payment to. Leave empty to add it as credit.
- Amount applied (`applied_amount`, number): How much of the payment to apply to the invoice. Leave empty for all of it.
- Policy (`policy_id`, text): The client's policy to file it under. HawkSoft staff prefer notes filed under a policy.
- Office (`office_id`, number): The office the payment belongs to. Leave empty for the client's office. At least 0.
- Received (`received_at`, date and time): When the payment was received. Leave empty for now.
- Task title (`task_title`, text): Also create a task with this title, so someone in the agency reviews it. Leave empty for no task.
- Task description (`task_description`, text): What the task asks for. Required with a task title.
- Task due (`task_due`, date and time): When the task is due. Leave empty for today.
- Assign task to (`task_assign_to`, text): Who the task goes to. Leave empty for the client's CSR. One of: `CSR` (The client's CSR), `Producer` (The client's producer), `Agent1` (The policy's first agent), `Agent2` (The policy's second agent), `Agent3` (The policy's third agent), `FindByUserId` (A person I choose).
- Task assignee (`task_user_id`, number): The person to give the task to, when "Assign task to" is a person you choose. At least 1.
- Task category (`task_category`, text): The task's category in HawkSoft.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "queued": true,
    "refId": "example"
  }
}
```
