# NiceJob

> Add customers and jobs to NiceJob, send review requests, read reviews and review insights, manage team members and webhooks, and follow new customers, jobs and reviews.

App · 21 actions. Web page: https://docs.lodol.com/docs/integrations/nicejob

## Actions

### Create booking

Add a booking (job) for a customer. A completed job starts a review request, as the company's campaign settings say.

**Inputs**

- Name (`name`, text): A name for the job.
- Customer IDs (`person_ids`, list): The customers the job is for, by person ID.
- Team members (`employee_ids`, list): The team members who did the work.
- Scheduled for (`scheduled_time`, date and time): When the job is or was scheduled.
- Complete (`complete`, true/false): The work is done. Completing a job starts the review request your NiceJob campaign settings call for.
- Completed at (`completed_time`, date and time): When the work was finished. Leave empty to use now when Complete is on.
- Amount (`amount`, number): What the job cost, in dollars. At least 0.
- Tags (`tags`, list): Tags for the job. The tag `noreview` stops completing it from sending a review request.
- Invoice ID (`invoice_id`, text): Your invoice number for the job.
- External ID (`external_source_id`, text): The job's ID in your own system.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "amount": 1,
      "complete": true,
      "completed_time": "example",
      "created_at": "example",
      "employee_ids": [
        "example"
      ],
      "external_source_id": "example",
      "id": "example",
      "invoice_id": "example",
      "name": "example",
      "network": "example",
      "person_ids": [
        "example"
      ],
      "scheduled_time": "example",
      "tags": [
        "example"
      ],
      "updated_at": "example"
    }
  }
}
```

### Create person

Add a customer to NiceJob, ready to be sent a review request.

**Inputs**

- First name (`first_name`, text, required): Their first name.
- Last name (`last_name`, text): Their last name.
- Email (`email`, text): Their email address. A review request needs an email address or a phone number.
- Phone (`phone`, text): Their mobile number, for text message review requests.
- Company (`company`, text): The company they work for.
- Street address (`street`, text): Street address.
- City (`city`, text): City.
- State (`state`, text): State or province.
- ZIP code (`zip`, text): ZIP or postal code.
- Country (`country`, text): Country.
- Tags (`tags`, list): Tags for the person. Tags given replace their current ones.
- Notes (`notes`, text): Notes about the person.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "address": {
        "address": "example",
        "city": "example",
        "country": "example",
        "state": "example",
        "unit": "example",
        "zip": "example"
      },
      "blocked": true,
      "company": "example",
      "created_at": "example",
      "email": "example",
      "first_name": "example",
      "id": "example",
      "last_name": "example",
      "latest_activity_date": "example",
      "lead": true,
      "lifecycle_stage": "example",
      "notes": "example",
      "phone": "example",
      "position": "example",
      "tags": [
        "example"
      ],
      "unsubscribed": true,
      "updated_at": "example"
    }
  }
}
```

### Create team member

Add a team member, so jobs and reviews can name them.

**Inputs**

- First name (`first_name`, text, required): Their first name.
- Last name (`last_name`, text): Their last name.
- Email (`email`, text, required): Their email address.
- Phone (`phone`, text): Their phone number.
- Position (`position`, text): Their job title.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "archived_at": "example",
      "created_at": "example",
      "email": "example",
      "first_name": "example",
      "id": "example",
      "last_name": "example",
      "phone": "example",
      "position": "example",
      "updated_at": "example",
      "user_id": "example"
    }
  }
}
```

### Create webhook

Have NiceJob send a notification to a URL when people, reviews, jobs or other records change. The answer holds the secret to check them with, shown only this once.

**Inputs**

- URL (`endpoint_url`, text, required): The https URL NiceJob sends notifications to.
- Records (`subscriptions`, list, required): The kinds of record to be told about. One or more of: `Person` (People (customers)), `Review` (Reviews), `Job` (Bookings (jobs)), `Employee` (Team members), `CampaignEnrollment` (Review requests), `Campaign` (Campaigns), `Invoice` (Invoices), `Payment` (Payments), `Case` (Cases), `Conversation` (Conversations), `Story` (Stories), `Photo` (Photos).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "client_id": "example",
      "created_at": "example",
      "endpoint_url": "example",
      "id": "example",
      "is_enabled": true,
      "secret": "example",
      "subscriptions": [
        "example"
      ],
      "updated_at": "example"
    }
  }
}
```

### Delete webhook

Delete one of your developer app's webhooks.

**Inputs**

- Webhook (`webhook_id`, text, required): The webhook's ID in NiceJob, from a list step or an earlier step.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "client_id": "example",
      "created_at": "example",
      "endpoint_url": "example",
      "id": "example",
      "is_enabled": true,
      "secret": "example",
      "subscriptions": [
        "example"
      ],
      "updated_at": "example"
    }
  }
}
```

### Get booking

Get a booking (job): when it's scheduled, whether it's complete, and who it's for.

**Inputs**

- Booking ID (`booking_id`, text, required): The booking's ID in NiceJob, from a list step or an earlier step.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "amount": 1,
      "complete": true,
      "completed_time": "example",
      "created_at": "example",
      "employee_ids": [
        "example"
      ],
      "external_source_id": "example",
      "id": "example",
      "invoice_id": "example",
      "name": "example",
      "network": "example",
      "person_ids": [
        "example"
      ],
      "scheduled_time": "example",
      "tags": [
        "example"
      ],
      "updated_at": "example"
    }
  }
}
```

### Get company

Get the NiceJob company that's connected: its name, contact details and industry.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "address": {
        "address": "example",
        "city": "example",
        "country": "example",
        "state": "example",
        "unit": "example",
        "zip": "example"
      },
      "company_name": "example",
      "created_at": "example",
      "email": "example",
      "id": "example",
      "industry": "example",
      "phone": "example"
    }
  }
}
```

### Get person

Get a person's contact details, tags and latest activity.

**Inputs**

- Person ID (`person_id`, text, required): The person's ID in NiceJob, from a list step or an earlier step.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "address": {
        "address": "example",
        "city": "example",
        "country": "example",
        "state": "example",
        "unit": "example",
        "zip": "example"
      },
      "blocked": true,
      "company": "example",
      "created_at": "example",
      "email": "example",
      "first_name": "example",
      "id": "example",
      "last_name": "example",
      "latest_activity_date": "example",
      "lead": true,
      "lifecycle_stage": "example",
      "notes": "example",
      "phone": "example",
      "position": "example",
      "tags": [
        "example"
      ],
      "unsubscribed": true,
      "updated_at": "example"
    }
  }
}
```

### Get review

Get a review's rating, text, author and links.

**Inputs**

- Review ID (`review_id`, text, required): The review's ID in NiceJob, from a list step or an earlier step.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "author": "example",
      "author_email": "example",
      "content": "example",
      "created_at": "example",
      "id": "example",
      "microsite_url": "example",
      "network": "example",
      "person_id": "example",
      "rating": 1,
      "source_base_url": "example",
      "source_url": "example"
    }
  }
}
```

### Get review insights

Get the company's average rating and review count, overall and per review site.

**Inputs**

- Person ID (`person_id`, text): Only reviews by this person.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "average_rating": 1,
      "network_insights": [
        {
          "average_rating": 1,
          "network": "example",
          "review_count": 1
        }
      ],
      "review_count": 1
    }
  }
}
```

### Get team member

Get a team member's details and review stats.

**Inputs**

- Team member (`employee_id`, text, required): The team member's ID in NiceJob, from a list step or an earlier step.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "archived_at": "example",
      "created_at": "example",
      "email": "example",
      "first_name": "example",
      "id": "example",
      "last_name": "example",
      "phone": "example",
      "position": "example",
      "updated_at": "example",
      "user_id": "example"
    }
  }
}
```

### List bookings

List the company's bookings (jobs), 20 at a time, optionally one person's.

**Inputs**

- Person ID (`person_id`, text): Only this person's bookings.
- Page cursor (`cursor`, text): The cursor an earlier page returned, to read the next 20. Leave empty for the first page.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "cursor": "example",
    "data": [
      {
        "amount": 1,
        "complete": true,
        "completed_time": "example",
        "created_at": "example",
        "employee_ids": [
          "example"
        ],
        "external_source_id": "example",
        "id": "example",
        "invoice_id": "example",
        "name": "example",
        "network": "example",
        "person_ids": [
          "example"
        ],
        "scheduled_time": "example",
        "tags": [
          "example"
        ],
        "updated_at": "example"
      }
    ]
  }
}
```

### List campaigns

List the company's campaigns, such as Get Reviews.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "cursor": "example",
    "data": [
      {
        "active": true,
        "created_at": "example",
        "default_campaign": "example",
        "description": "example",
        "id": "example"
      }
    ]
  }
}
```

### List people

List the company's people (customers and leads), 20 at a time.

**Inputs**

- Page cursor (`cursor`, text): The cursor an earlier page returned, to read the next 20. Leave empty for the first page.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "cursor": "example",
    "data": [
      {
        "address": {
          "address": "example",
          "city": "example",
          "country": "example",
          "state": "example",
          "unit": "example",
          "zip": "example"
        },
        "blocked": true,
        "company": "example",
        "created_at": "example",
        "email": "example",
        "first_name": "example",
        "id": "example",
        "last_name": "example",
        "latest_activity_date": "example",
        "lead": true,
        "lifecycle_stage": "example",
        "notes": "example",
        "phone": "example",
        "position": "example",
        "tags": [
          "example"
        ],
        "unsubscribed": true,
        "updated_at": "example"
      }
    ]
  }
}
```

### List reviews

List the company's reviews from Google, Facebook and other sites, 20 at a time.

**Inputs**

- Page cursor (`cursor`, text): The cursor an earlier page returned, to read the next 20. Leave empty for the first page.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "cursor": "example",
    "data": [
      {
        "author": "example",
        "author_email": "example",
        "content": "example",
        "created_at": "example",
        "id": "example",
        "microsite_url": "example",
        "network": "example",
        "person_id": "example",
        "rating": 1,
        "source_base_url": "example",
        "source_url": "example"
      }
    ]
  }
}
```

### List team members

List the company's team members (employees), 20 at a time.

**Inputs**

- Page cursor (`cursor`, text): The cursor an earlier page returned, to read the next 20. Leave empty for the first page.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "cursor": "example",
    "data": [
      {
        "archived_at": "example",
        "created_at": "example",
        "email": "example",
        "first_name": "example",
        "id": "example",
        "last_name": "example",
        "phone": "example",
        "position": "example",
        "updated_at": "example",
        "user_id": "example"
      }
    ]
  }
}
```

### List webhooks

List the webhooks of your NiceJob developer app.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "cursor": "example",
    "data": [
      {
        "client_id": "example",
        "created_at": "example",
        "endpoint_url": "example",
        "id": "example",
        "is_enabled": true,
        "secret": "example",
        "subscriptions": [
          "example"
        ],
        "updated_at": "example"
      }
    ]
  }
}
```

### Send review request

Enroll a person in a campaign, the Get Reviews campaign unless you choose another, so NiceJob asks them for a review.

**Inputs**

- Person ID (`person_id`, text, required): The person to ask. They need an email address or phone number in NiceJob.
- Campaign (`campaign_id`, text): The campaign. Leave empty for the Get Reviews campaign.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "campaign_id": "example",
      "created_at": "example",
      "eligible": true,
      "ended": true,
      "id": "example",
      "paused": true,
      "stopped": true,
      "subjectId": "example",
      "subjectKind": "example",
      "successful": true,
      "updated_at": "example"
    }
  }
}
```

### Update booking

Change a booking, or mark it complete so NiceJob asks the customer for a review.

**Inputs**

- Booking ID (`booking_id`, text, required): The booking's ID in NiceJob, from a list step or an earlier step.
- Name (`name`, text): A name for the job.
- Customer IDs (`person_ids`, list): The customers the job is for, by person ID.
- Team members (`employee_ids`, list): The team members who did the work.
- Scheduled for (`scheduled_time`, date and time): When the job is or was scheduled.
- Complete (`complete`, true/false): The work is done. Completing a job starts the review request your NiceJob campaign settings call for.
- Completed at (`completed_time`, date and time): When the work was finished. Leave empty to use now when Complete is on.
- Amount (`amount`, number): What the job cost, in dollars. At least 0.
- Tags (`tags`, list): Tags for the job. The tag `noreview` stops completing it from sending a review request.
- Invoice ID (`invoice_id`, text): Your invoice number for the job.
- External ID (`external_source_id`, text): The job's ID in your own system.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "amount": 1,
      "complete": true,
      "completed_time": "example",
      "created_at": "example",
      "employee_ids": [
        "example"
      ],
      "external_source_id": "example",
      "id": "example",
      "invoice_id": "example",
      "name": "example",
      "network": "example",
      "person_ids": [
        "example"
      ],
      "scheduled_time": "example",
      "tags": [
        "example"
      ],
      "updated_at": "example"
    }
  }
}
```

### Update person

Change a person's details. Only the fields filled in change.

**Inputs**

- Person ID (`person_id`, text, required): The person's ID in NiceJob, from a list step or an earlier step.
- First name (`first_name`, text): Their first name.
- Last name (`last_name`, text): Their last name.
- Email (`email`, text): Their email address. A review request needs an email address or a phone number.
- Phone (`phone`, text): Their mobile number, for text message review requests.
- Company (`company`, text): The company they work for.
- Street address (`street`, text): Street address.
- City (`city`, text): City.
- State (`state`, text): State or province.
- ZIP code (`zip`, text): ZIP or postal code.
- Country (`country`, text): Country.
- Tags (`tags`, list): Tags for the person. Tags given replace their current ones.
- Notes (`notes`, text): Notes about the person.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "address": {
        "address": "example",
        "city": "example",
        "country": "example",
        "state": "example",
        "unit": "example",
        "zip": "example"
      },
      "blocked": true,
      "company": "example",
      "created_at": "example",
      "email": "example",
      "first_name": "example",
      "id": "example",
      "last_name": "example",
      "latest_activity_date": "example",
      "lead": true,
      "lifecycle_stage": "example",
      "notes": "example",
      "phone": "example",
      "position": "example",
      "tags": [
        "example"
      ],
      "unsubscribed": true,
      "updated_at": "example"
    }
  }
}
```

### Update team member

Change a team member's details. Only the fields filled in change.

**Inputs**

- Team member (`employee_id`, text, required): The team member's ID in NiceJob, from a list step or an earlier step.
- First name (`first_name`, text): Their first name.
- Last name (`last_name`, text): Their last name.
- Email (`email`, text): Their email address.
- Phone (`phone`, text): Their phone number.
- Position (`position`, text): Their job title.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "archived_at": "example",
      "created_at": "example",
      "email": "example",
      "first_name": "example",
      "id": "example",
      "last_name": "example",
      "phone": "example",
      "position": "example",
      "updated_at": "example",
      "user_id": "example"
    }
  }
}
```
