# Reputation

> Respond to reviews, send review requests by email and text, manage feedback tickets, read survey results, listings and your reputation score in Reputation, and follow new reviews, tickets, survey results and unsubscribes.

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

## Actions

### Create ticket

Open a ticket to track the follow-up on a customer's feedback.

**Inputs**

- Customer name (`reporter_name`, text, required): The customer's name.
- Summary (`comment`, text, required): A short summary of the issue.
- Customer email (`reporter_email`, text): The customer's email address.
- Customer phone (`reporter_phone`, text): The customer's phone number.
- Description (`full_comment`, text): The full description.
- Location (`location_id`, text): The location it's about.
- Queue (`queue_id`, text): The queue to file it in.
- Stage (`stage_id`, text): The stage it's at.
- Due (`due_date`, date and time): When it's due.
- Sentiment (`sentiment`, text): The customer's sentiment. One of: `Positive`, `Neutral`, `Negative`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "closedDate": "example",
    "comment": "example",
    "createdDate": "example",
    "dueDate": "example",
    "fullComment": "example",
    "id": 1,
    "locationID": "example",
    "queueID": "example",
    "queueName": "example",
    "reporterEmail": "example",
    "reporterName": "example",
    "reporterPhone": "example",
    "reviewID": "example",
    "stageID": "example",
    "stageName": "example",
    "surveyResultID": "example",
    "tags": [
      "example"
    ],
    "ticketType": "example",
    "updatedDate": "example",
    "userDefined": {},
    "version": 1
  }
}
```

### Get location

Get a location's profile: names, addresses, phones, hours, categories and custom fields.

**Inputs**

- Location (`location_id`, text, required): The location, by its ID in Reputation.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "categories": [
      {}
    ],
    "customFilters": [
      {
        "name": "example",
        "value": "example"
      }
    ],
    "customVariables": [
      {
        "name": "example",
        "value": "example"
      }
    ],
    "description": "example",
    "externalName": "example",
    "id": "example",
    "industryID": "example",
    "internalID": "example",
    "internalName": "example",
    "optedOut": true,
    "parentID": "example",
    "places": [
      {}
    ],
    "state": "example"
  }
}
```

### Get reputation summary

Get your review count by sentiment, average rating and reputation score, overall or by location or review site.

**Inputs**

- Period (`range`, text): A preset period. Leave empty to use From and To, or the default. One of: `Today`, `Yesterday`, `ThisWeek` (This week), `PreviousWeek` (Last week), `ThisMonth` (This month), `PreviousMonth` (Last month), `ThisQuarter` (This quarter), `PreviousQuarter` (Last quarter), `ThisYear` (This year), `PreviousYear` (Last year), and 10 more.
- Locations (`location_ids`, list): Only these locations. Leave empty for all.
- Group by (`group_by`, text): How to break it down. Leave empty for overall. One of: `None` (No grouping), `Location`, `Source` (Review site).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "dateRange": {
      "from": "example",
      "range": "example",
      "to": "example"
    },
    "summary": {
      "overall": {}
    }
  }
}
```

### Get review request metrics

Get how many review requests were sent, delivered, opened and clicked, by location, template or period.

**Inputs**

- Sent by (`modes`, list, required): Which requests to count. One or more of: `Email`, `SMS` (Text message), `Kiosk`, `All`.
- Period (`range`, text): The period. Leave empty for the last 90 days. One of: `Last7Days` (Last 7 days), `Last30Days` (Last 30 days), `Last90Days` (Last 90 days), `Last6Months` (Last 6 months), `Last1Year` (Last year (12 months)), `LifeToDate` (All time).
- Group by (`group_by`, list): How to break the counts down. Leave empty for month and location. Choose at most one of day, week, month and quarter. One or more of: `LocationID` (Location), `Mode` (Email, text or kiosk), `TemplateName` (Template), `Day`, `Week`, `Month`, `Quarter`.
- Locations (`location_ids`, list): Only these locations. Leave empty for all.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "bounced": 1,
      "clicked": 1,
      "delivered": 1,
      "failures": 1,
      "locationID": "example",
      "mode": "example",
      "opened": 1,
      "received": 1,
      "sent": 1,
      "templateName": "example",
      "uniqueClicked": 1,
      "uniqueOpened": 1,
      "unsubscribed": 1
    }
  ]
}
```

### Get review responses

Get the responses posted to a review.

**Inputs**

- Review ID (`review_id`, text, required): The review's ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "comment": "example",
    "name": "example",
    "responseDate": "example"
  }
}
```

### Get survey link

Make a personal survey link for a customer, to send in your own message.

**Inputs**

- Survey template (`survey_template_id`, text, required): The survey template.
- Location (`location_id`, text, required): The location the survey is about.
- Language (`locale`, text): The survey's language, such as en_US.
- Avoid surveying too often (`over_survey_protection`, true/false): Don't survey a customer who was surveyed recently.
- Template variables (`variables`, object): Values for the survey template's variables, by name, such as VisitDate.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "url": "example"
  }
}
```

### Get survey result

Get one customer's answers to a survey.

**Inputs**

- Survey result ID (`survey_result_id`, text, required): The survey result's ID.
- Survey template (`survey_template_id`, text, required): The survey template.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "answers": [
      {
        "answerValues": [
          {
            "id": "example",
            "text": "example"
          }
        ],
        "question": {
          "id": "example",
          "text": "example",
          "type": "example"
        }
      }
    ],
    "date": "example",
    "flags": [
      "example"
    ],
    "id": "example",
    "locale": "example",
    "locationID": "example",
    "locationName": "example",
    "status": "example",
    "surveyTemplateID": "example",
    "updatedDate": "example"
  }
}
```

### List listing audits

Check how each location's listing on each site matches its profile: name, address, phone, website, hours and categories.

**Inputs**

- Locations (`location_ids`, list): Only these locations. Leave empty for all.
- Sites (`source_ids`, list): Only these sites, such as GOOGLE.
- Period (`range`, text): A preset period. Leave empty to use From and To, or the default. One of: `Today`, `Yesterday`, `ThisWeek` (This week), `PreviousWeek` (Last week), `ThisMonth` (This month), `PreviousMonth` (Last month), `ThisQuarter` (This quarter), `PreviousQuarter` (Last quarter), `ThisYear` (This year), `PreviousYear` (Last year), and 10 more.
- How many (`limit`, number): How many to return, up to 2,000. Leave empty for 20. From 1 to 2000.
- Skip (`offset`, number): How many to skip, for reading the next page. From 0 to 100000.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "listingAudits": [
      {
        "date": "example",
        "locationID": "example",
        "nameAudit": {},
        "sourceID": "example",
        "sourceState": {},
        "state": "example",
        "url": "example"
      }
    ],
    "paging": {
      "limit": 1,
      "next": "example",
      "offset": "example",
      "previous": "example"
    }
  }
}
```

### List locations

List your locations with their names, addresses, categories and custom fields.

**Inputs**

- How many (`limit`, number): How many to return, up to 2,000. Leave empty for 20. From 1 to 2000.
- Skip (`offset`, number): How many to skip, for reading the next page. From 0 to 35000.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "locations": [
      {
        "categories": [
          {}
        ],
        "customFilters": [
          {
            "name": "example",
            "value": "example"
          }
        ],
        "customVariables": [
          {
            "name": "example",
            "value": "example"
          }
        ],
        "description": "example",
        "externalName": "example",
        "id": "example",
        "industryID": "example",
        "internalID": "example",
        "internalName": "example",
        "optedOut": true,
        "parentID": "example",
        "places": [
          {}
        ],
        "state": "example"
      }
    ],
    "paging": {
      "limit": 1,
      "next": "example",
      "offset": "example",
      "previous": "example"
    }
  }
}
```

### List request templates

List the templates for review requests by email, text or kiosk.

**Inputs**

- Type (`template_type`, text): Which templates. Leave empty for all. One of: `2` (Review request (email)), `3` (Text message (SMS)), `1` (Kiosk).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "requestTemplates": [
      {
        "createdDate": 1,
        "id": "example",
        "templateLevel": "example",
        "templateName": "example",
        "templateType": "example"
      }
    ]
  }
}
```

### List reviews

List reviews from every review site, filtered by period, location or site.

**Inputs**

- Period (`range`, text): A preset period. Leave empty to use From and To, or the default. One of: `Today`, `Yesterday`, `ThisWeek` (This week), `PreviousWeek` (Last week), `ThisMonth` (This month), `PreviousMonth` (Last month), `ThisQuarter` (This quarter), `PreviousQuarter` (Last quarter), `ThisYear` (This year), `PreviousYear` (Last year), and 10 more.
- From (`from_time`, date and time): Only from this time on.
- To (`to_time`, date and time): Only up to this time.
- Locations (`location_ids`, list): Only these locations. Leave empty for all.
- Review sites (`source_ids`, list): Only reviews from these sites, such as GOOGLE_PLACES or FACEBOOK.
- Order (`sort`, text): The order. One of: `date:DESC` (Newest first), `date:ASC` (Oldest first).
- How many (`limit`, number): How many to return, up to 2,000. Leave empty for 20. From 1 to 2000.
- Page token (`page_token`, text): The offset from the last page's next link, to read the next page.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "dateRange": {
      "from": "example",
      "range": "example",
      "to": "example"
    },
    "paging": {
      "limit": 1,
      "next": "example",
      "offset": "example",
      "previous": "example"
    },
    "reviews": [
      {
        "canRespond": true,
        "categories": [
          "example"
        ],
        "comment": "example",
        "commentTitle": "example",
        "date": "example",
        "hasResponses": true,
        "id": "example",
        "locationID": "example",
        "locationName": "example",
        "normalizedRating": 1,
        "published": true,
        "rating": 1,
        "responseUrl": "example",
        "reviewUrl": "example",
        "reviewer": {
          "name": "example"
        },
        "sentiment": "example",
        "sourceID": "example",
        "tenantID": 1,
        "updated": true,
        "url": "example"
      }
    ]
  }
}
```

### List survey results

List customers' answers to one of your surveys.

**Inputs**

- Survey template (`survey_template_id`, text, required): The survey template.
- Locations (`location_ids`, list): Only these locations. Leave empty for all.
- Status (`status`, text): Only results with this status. One of: `Completed`, `Incomplete`, `Started`.
- Period (`range`, text): A preset period. Leave empty to use From and To, or the default. One of: `Today`, `Yesterday`, `ThisWeek` (This week), `PreviousWeek` (Last week), `ThisMonth` (This month), `PreviousMonth` (Last month), `ThisQuarter` (This quarter), `PreviousQuarter` (Last quarter), `ThisYear` (This year), `PreviousYear` (Last year), and 10 more.
- How many (`limit`, number): How many to return, up to 500. Leave empty for 20. From 1 to 500.
- Skip (`offset`, number): How many to skip, for reading the next page. From 0 to 10000.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "surveyResults": [
      {
        "answers": [
          {
            "answerValues": [
              {
                "id": "example",
                "text": "example"
              }
            ],
            "question": {
              "id": "example",
              "text": "example",
              "type": "example"
            }
          }
        ],
        "date": "example",
        "flags": [
          "example"
        ],
        "id": "example",
        "locale": "example",
        "locationID": "example",
        "locationName": "example",
        "status": "example",
        "surveyTemplateID": "example",
        "updatedDate": "example"
      }
    ]
  }
}
```

### List survey templates

List your survey templates.

**Inputs**

- Status (`template_status`, text): Only templates with this status. One of: `Active`, `Design` (In design), `Test` (Testing), `Closed`, `Internal`.
- Type (`template_type`, text): Only templates of this type. One of: `Normal` (Standard), `Conversational`, `Kiosk`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "surveyTemplates": [
      {
        "id": "example",
        "templateName": "example",
        "templateStatus": "example",
        "templateType": "example"
      }
    ]
  }
}
```

### List ticket queues

List the queues tickets are filed in.

**Inputs**: None.

**Outputs**

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

**Example output**

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

### List ticket stages

List the stages a ticket moves through, such as In progress and Closed.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "id": "example",
      "name": "example",
      "onHold": true,
      "order": 1,
      "system": true,
      "type": "example"
    }
  ]
}
```

### List tickets

List the tickets your team opened from customer feedback, filtered by queue, stage, location or period.

**Inputs**

- Queues (`queue_ids`, list): Only tickets in these queues.
- Stages (`stage_ids`, list): Only tickets at these stages.
- Locations (`location_ids`, list): Only these locations. Leave empty for all.
- Period (`range`, text): A preset period. Leave empty to use From and To, or the default. One of: `Today`, `Yesterday`, `ThisWeek` (This week), `PreviousWeek` (Last week), `ThisMonth` (This month), `PreviousMonth` (Last month), `ThisQuarter` (This quarter), `PreviousQuarter` (Last quarter), `ThisYear` (This year), `PreviousYear` (Last year), and 10 more.
- Period applies to (`range_for`, text): Which date the period applies to. Leave empty for created. One of: `createdDate` (Created), `updatedDate` (Last updated).
- Sort by (`sort`, text): The order. One of: `createdDate` (Created), `updatedDate` (Last updated), `dueDate` (Due date), `closedDate` (Closed).
- How many (`limit`, number): How many to return, up to 2,000. Leave empty for 20. From 1 to 2000.
- Skip (`offset`, number): How many to skip, for reading the next page. From 0 to 100000.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "paging": {
      "limit": 1,
      "next": "example",
      "offset": "example",
      "previous": "example"
    },
    "tickets": [
      {
        "closedDate": "example",
        "comment": "example",
        "createdDate": "example",
        "dueDate": "example",
        "fullComment": "example",
        "id": 1,
        "locationID": "example",
        "queueID": "example",
        "queueName": "example",
        "reporterEmail": "example",
        "reporterName": "example",
        "reporterPhone": "example",
        "reviewID": "example",
        "stageID": "example",
        "stageName": "example",
        "surveyResultID": "example",
        "tags": [
          "example"
        ],
        "ticketType": "example",
        "updatedDate": "example",
        "userDefined": {},
        "version": 1
      }
    ]
  }
}
```

### List unsubscribes

List the email addresses and phone numbers that unsubscribed from review requests.

**Inputs**

- Period (`range`, text): A preset period. Leave empty to use From and To, or the default. One of: `Today`, `Yesterday`, `ThisWeek` (This week), `PreviousWeek` (Last week), `ThisMonth` (This month), `PreviousMonth` (Last month), `ThisQuarter` (This quarter), `PreviousQuarter` (Last quarter), `ThisYear` (This year), `PreviousYear` (Last year), and 10 more.
- How many (`limit`, number): How many to return, up to 2,000. Leave empty for 20. From 1 to 2000.
- Skip (`offset`, number): How many to skip, for reading the next page. From 0 to 100000.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "paging": {
      "limit": 1,
      "next": "example",
      "offset": "example",
      "previous": "example"
    },
    "unsubscribes": [
      {
        "customerID": "example",
        "date": "example",
        "email": "example",
        "phone": "example"
      }
    ]
  }
}
```

### List users

List the people who use your Reputation account, with their roles.

**Inputs**

- How many (`limit`, number): How many to return, up to 2,000. Leave empty for 20. From 1 to 2000.
- Skip (`offset`, number): How many to skip, for reading the next page. From 0 to 100000.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "users": [
      {
        "active": true,
        "createdDate": "example",
        "displayName": "example",
        "email": "example",
        "firstName": "example",
        "id": "example",
        "lastName": "example",
        "role": "example"
      }
    ]
  }
}
```

### Respond to review

Post a public response to a review on the site where it was left.

**Inputs**

- Review ID (`review_id`, text, required): The review's ID.
- Response (`comment`, text, required): Your response.
- Signed by (`name`, text): Who the response is signed by, such as Sam, General Manager.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "comment": "example",
    "name": "example",
    "responseDate": "example"
  }
}
```

### Send review request by email

Ask a customer for a review by email, using one of your request templates.

**Inputs**

- Template (`template_name`, text, required): The request template.
- Location (`location_id`, text, required): The location the customer visited.
- Customer email (`to_email`, text, required): The customer's email address.
- Customer name (`to_name`, text): The customer's name.
- Customer phone (`to_phone`, text): The customer's phone number.
- From name (`from_name`, text): The sender's name.
- From email (`from_email`, text): The sender's email address.
- Subject (`subject`, text): The subject line. Leave empty for the template's.
- Review sites (`source_ids`, list): Review sites to ask for, such as GOOGLE_PLACES. Leave empty for the template's.
- Template variables (`variables`, object): Values for the template's variables, by name, such as recipient-name.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": "example",
    "locationID": "example",
    "sourceIDs": [
      "example"
    ],
    "sourceSelection": "example",
    "subject": "example",
    "templateName": "example",
    "to": {
      "email": "example",
      "name": "example",
      "phone": "example"
    },
    "type": "example",
    "variables": {}
  }
}
```

### Send review request by text

Ask a customer for a review by text message, using one of your request templates.

**Inputs**

- Template (`template_name`, text, required): The text message template.
- Location (`location_id`, text, required): The location the customer visited.
- Customer mobile (`to_phone`, text, required): The customer's mobile number, such as +16501237890.
- Customer name (`to_name`, text): The customer's name.
- Review sites (`source_ids`, list): Review sites to ask for, such as GOOGLE_PLACES. Leave empty for the template's.
- Template variables (`variables`, object): Values for the template's variables, by name, such as recipient-name.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": "example",
    "locationID": "example",
    "sourceIDs": [
      "example"
    ],
    "sourceSelection": "example",
    "subject": "example",
    "templateName": "example",
    "to": {
      "email": "example",
      "name": "example",
      "phone": "example"
    },
    "type": "example",
    "variables": {}
  }
}
```

### Unsubscribe email address

Stop review requests to an email address.

**Inputs**

- Email (`email`, text, required): The email address.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "email": "example"
  }
}
```

### Unsubscribe phone number

Stop review requests by text to a phone number.

**Inputs**

- Phone (`phone`, text, required): The phone number, such as +16501237890.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "phone": "example"
  }
}
```

### Update ticket

Change a ticket's details, queue or stage. Fields left empty stay as they are. A closed ticket has to be moved to another stage first.

**Inputs**

- Ticket ID (`ticket_id`, number, required): The ticket's ID. At least 1.
- Customer name (`reporter_name`, text): The customer's name.
- Customer email (`reporter_email`, text): The customer's email address.
- Customer phone (`reporter_phone`, text): The customer's phone number.
- Summary (`comment`, text): A short summary of the issue.
- Description (`full_comment`, text): The full description.
- Location (`location_id`, text): The location it's about.
- Queue (`queue_id`, text): The queue to file it in.
- Stage (`stage_id`, text): The stage it's at.
- Due (`due_date`, date and time): When it's due.
- Sentiment (`sentiment`, text): The customer's sentiment. One of: `Positive`, `Neutral`, `Negative`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "closedDate": "example",
    "comment": "example",
    "createdDate": "example",
    "dueDate": "example",
    "fullComment": "example",
    "id": 1,
    "locationID": "example",
    "queueID": "example",
    "queueName": "example",
    "reporterEmail": "example",
    "reporterName": "example",
    "reporterPhone": "example",
    "reviewID": "example",
    "stageID": "example",
    "stageName": "example",
    "surveyResultID": "example",
    "tags": [
      "example"
    ],
    "ticketType": "example",
    "updatedDate": "example",
    "userDefined": {},
    "version": 1
  }
}
```
