# REVIEWS.io

> Read and tag company and product reviews in REVIEWS.io, send review invitations by email or text, collect questions, read survey responses and ratings, and follow new reviews, questions and survey responses.

App · 24 actions. Web page: https://docs.lodol.com/docs/integrations/reviews-io

## Actions

### Add webhook

Have REVIEWS.io send new or changed reviews to an address of yours, such as another system or a Lodol webhook trigger.

**Inputs**

- Event (`type`, text, required): Which reviews to be told about. One of: `company_review` (New company review), `positive_company_review` (New positive company review), `negative_company_review` (New negative company review), `product_review` (New product review), `positive_product_review` (New positive product review), `negative_product_review` (New negative product review), `company_review_update` (Company review updated), `positive_company_review_update` (Positive company review updated), `negative_company_review_update` (Negative company review updated), `product_review_update` (Product review updated), `positive_product_review_update` (Positive product review updated), `negative_product_review_update` (Negative product review updated).
- URL (`url`, text, required): The address REVIEWS.io sends each review to.
- Extra details (`includes`, list): Extra details to send with each review. One or more of: `attribute_customer` (Customer attributes), `attribute_company` (Company review attributes), `attribute_product` (Product review attributes), `tags`, `product` (Product details), `user` (Reviewer statistics), `photo` (Photos), `video` (Videos).

**Outputs**

- `data` (object): The response from REVIEWS.io.

**Example output**

```json
{
  "data": {
    "status": "example",
    "webhook": "example"
  }
}
```

### Create product review

Add a product review, such as one collected in a store or another system.

**Inputs**

- Product SKU (`sku`, text, required): The reviewed product's SKU.
- Reviewer name (`name`, text, required): The reviewer's name.
- Reviewer email (`email`, text, required): The reviewer's email address.
- Rating (`rating`, number, required): The star rating. One of: `1` (1 star), `2` (2 stars), `3` (3 stars), `4` (4 stars), `5` (5 stars).
- Review (`review`, text, required): The review's text.
- Order reference (`order_id`, text): The reviewer's order reference.
- Location (`address`, text): Where the reviewer is, such as Leicester.
- Tags (`tags`, list): Tags to add to the review.
- Sub-ratings (`ratings`, object): Extra ratings by name, such as Quality: 4 and Value for Money: 5. Each must be set up in REVIEWS.io first.
- Reviewer details (`attributes`, object): Details about the reviewer by name, such as Age Range: 25-34. Each must be set up in REVIEWS.io first.

**Outputs**

- `data` (object): The response from REVIEWS.io.

**Example output**

```json
{
  "data": {}
}
```

### Create question

Add a customer's question about a product.

**Inputs**

- Product SKU (`sku`, text, required): The product's SKU.
- Name (`name`, text, required): The name of the person asking.
- Email (`email`, text, required): The email address of the person asking.
- Question (`question`, text, required): The question.
- Page URL (`url`, text): The page the question was asked on, such as the product page.

**Outputs**

- `data` (object): The response from REVIEWS.io.

**Example output**

```json
{
  "data": {}
}
```

### Get product ratings

Get the average rating and number of reviews for one or more products.

**Inputs**

- Product SKUs (`skus`, list, required): The products, by SKU (product identifier).

**Outputs**

- `data` (list): The response from REVIEWS.io.

**Example output**

```json
{
  "data": [
    {
      "average_rating": "example",
      "num_ratings": 1,
      "sku": "example"
    }
  ]
}
```

### Get review statistics

Get the store's average rating and number of reviews, for product, company and third-party reviews.

**Inputs**: None.

**Outputs**

- `data` (object): The response from REVIEWS.io.

**Example output**

```json
{
  "data": {
    "company_review_stats": {
      "average_rating": "example",
      "total_reviews": 1
    },
    "product_review_stats": {
      "average_rating": "example",
      "total_reviews": 1
    },
    "third_party_review_stats": {
      "average_rating": "example",
      "total_reviews": 1
    }
  }
}
```

### List company invitations

List queued and sent company review invitations, optionally for one order.

**Inputs**

- Order reference (`order_id`, text): Only invitations for this order reference.
- Already sent (`invite_sent`, true/false): Only invitations that have (or haven't) been sent.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Invitations to return (`limit`, number): How many invitations to return. From 1 to 100.

**Outputs**

- `data` (object): The response from REVIEWS.io.

**Example output**

```json
{
  "data": {
    "invitations": [
      {
        "customer_email": "example",
        "customer_name": "example",
        "date_send": "example",
        "email_sent": "example",
        "id": "example",
        "order_id": "example",
        "resent": 1,
        "status": "example"
      }
    ],
    "status": "example"
  }
}
```

### List product invitations

List queued and sent product review invitations, optionally for one order or product.

**Inputs**

- Order reference (`order_id`, text): Only invitations for this order reference.
- Product SKU (`sku`, text): Only invitations for this product SKU.
- Already sent (`invite_sent`, true/false): Only invitations that have (or haven't) been sent.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Invitations to return (`limit`, number): How many invitations to return. From 1 to 100.

**Outputs**

- `data` (object): The response from REVIEWS.io.

**Example output**

```json
{
  "data": {
    "invitations": [
      {
        "customer_email": "example",
        "customer_name": "example",
        "date_send": "example",
        "email_sent": "example",
        "id": "example",
        "order_id": "example",
        "product": [
          {
            "brand": "example",
            "description": "example",
            "image": "example",
            "name": "example",
            "sku": "example"
          }
        ],
        "resent": 1,
        "status": "example"
      }
    ],
    "status": "example"
  }
}
```

### List review nuggets

List review nuggets: the short highlighted quotes picked from your reviews.

**Inputs**

- Review types (`types`, list, required): Which reviews to take nuggets from. One or more of: `store_review` (Company reviews), `product_review` (New product review).
- Minimum rating (`min_rating`, text): Only nuggets from reviews rated this or higher. One of: `1` (1 star), `2` (2 stars), `3` (3 stars), `4` (4 stars), `5` (5 stars).
- Product SKUs (`skus`, list): Only nuggets about these products, by SKU.
- Tags (`tags`, list): Only nuggets from reviews with these tags.
- Branch (`branch`, text): Only nuggets from this branch's reviews.
- Results per page (`per_page`, number): How many results to return on each page. From 1 to 100.

**Outputs**

- `data` (object): The response from REVIEWS.io.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "date_created_nugget": "example",
        "id": 1,
        "rating": "example",
        "review_id": "example",
        "text": "example",
        "type": "example"
      }
    ],
    "success": true
  }
}
```

### List reviews

List company reviews, product reviews, third-party reviews or questions, with filters for products, rating, dates, tags and keywords.

**Inputs**

- Type (`type`, text): Which kind of reviews to return. Leave empty for everything, as on your dashboard's timeline. One of: `store_review` (Company reviews), `product_review` (New product review), `store_third_party_review` (Third-party reviews (such as Google)), `questions`.
- Product SKUs (`skus`, list): Only these products, by SKU (product identifier).
- Rated higher than (`min_rating`, text): Only reviews rated higher than this. One of: `1` (1 star), `2` (2 stars), `3` (3 stars), `4` (4 stars), `5` (5 stars).
- Left after (`date_from`, date): Only reviews left after this date.
- Left before (`date_to`, date): Only reviews left before this date.
- Keyword (`keyword`, text): Only reviews whose text contains this word.
- Tags (`tags`, list): Only reviews with these tags.
- Branch (`branch`, text): Only reviews for this branch.
- Reviewer email (`email`, text): Only reviews left by this email address.
- With media (`with_media`, text): Only reviews with photos, videos or either. One of: `images` (Photos), `videos`, `media` (Photos or videos).
- Sort by (`sort`, text): The order to return reviews in. Leave empty for newest first. One of: `date_desc` (Newest first), `date_asc` (Oldest first), `highest_rating` (Highest rating first), `lowest_rating` (Lowest rating first), `helpful_desc` (Most helpful first), `helpful_asc` (Least helpful first), `date_update_desc` (Recently updated first), `date_update_asc` (Least recently updated first).
- With comments only (`must_have_comments`, true/false): Only reviews with written comments.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Results per page (`per_page`, number): How many results to return on each page. From 1 to 100.

**Outputs**

- `data` (object): The response from REVIEWS.io.

**Example output**

```json
{
  "data": {
    "average_rating": "example",
    "results_count": "example",
    "review_count": "example",
    "reviews": [
      {
        "author": {
          "location": "example",
          "name": "example"
        },
        "comments": "example",
        "date_created": "example",
        "helpful_count": "example",
        "id": "example",
        "order_id": "example",
        "photos": [
          {}
        ],
        "rating": 1,
        "replies": [
          {
            "author": {
              "name": "example"
            },
            "comments": "example",
            "date_created": "example"
          }
        ],
        "sku": "example",
        "source": "example",
        "tags": [
          "example"
        ],
        "time_ago": "example",
        "title": "example",
        "type": "example",
        "type_label": "example",
        "videos": [
          {}
        ]
      }
    ],
    "stats": {
      "company": {
        "average_rating": "example",
        "review_count": "example"
      }
    },
    "store_name": "example",
    "verdict": "example"
  }
}
```

### List survey responses

List the responses to a survey, with each answer.

**Inputs**

- Survey (`survey_id`, number, required): The survey. At least 1.

**Outputs**

- `data` (list): The response from REVIEWS.io.

**Example output**

```json
{
  "data": [
    {
      "completion_time": 1,
      "country_code": "example",
      "date_created": "example",
      "date_updated": "example",
      "href": "example",
      "id": 1,
      "order_count": 1,
      "responses": [
        {
          "id": 1,
          "response": "example",
          "store_widget_survey_submission_id": 1,
          "survey_question_id": 1
        }
      ],
      "tags": "example",
      "total_price": "example",
      "user_id": 1
    }
  ]
}
```

### List surveys

List the store's surveys with how many responses each has.

**Inputs**

- Active only (`active_only`, true/false): Leave out inactive surveys.

**Outputs**

- `data` (list): The response from REVIEWS.io.

**Example output**

```json
{
  "data": [
    {
      "active": 1,
      "date_created": "example",
      "date_updated": "example",
      "id": 1,
      "question_count": 1,
      "responses_count": 1,
      "title": "example"
    }
  ]
}
```

### List unsubscribed emails

List the email addresses that no longer get review invitations.

**Inputs**: None.

**Outputs**

- `data` (object): The response from REVIEWS.io.

**Example output**

```json
{
  "data": {
    "page": 1,
    "total": 1,
    "unsubscribed": [
      {
        "email": "example"
      }
    ]
  }
}
```

### List user-generated content

List the photos and videos customers have shared with their reviews.

**Inputs**

- Product SKUs (`skus`, list): Only these products, by SKU (product identifier).
- Tags (`tags`, list): Only content with these tags.
- Categories (`categories`, list): Only content in these categories.
- Videos only (`videos_only`, true/false): Only videos.
- Results per page (`per_page`, number): How many results to return on each page. From 1 to 100.

**Outputs**

- `data` (object): The response from REVIEWS.io.

**Example output**

```json
{
  "data": {
    "ugc": [
      {
        "source": "example",
        "type": "example",
        "type_label": "example"
      }
    ]
  }
}
```

### List webhooks

List the addresses REVIEWS.io notifies about new and changed reviews.

**Inputs**

- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Results per page (`per_page`, number): How many results to return on each page. From 1 to 100.

**Outputs**

- `data` (object): The response from REVIEWS.io.

**Example output**

```json
{
  "data": {
    "current_page": 1,
    "per_page": 1,
    "status": "example",
    "total": 1,
    "webhooks": [
      {
        "id": "example",
        "type": "example",
        "url": "example"
      }
    ]
  }
}
```

### Remove webhook

Stop REVIEWS.io sending reviews to a webhook address.

**Inputs**

- Webhook (`webhook_id`, text, required): The webhook.

**Outputs**

- `data` (object): The response from REVIEWS.io.

**Example output**

```json
{
  "data": {
    "message": "example",
    "status": "example"
  }
}
```

### Send company review invitation

Queue an email inviting a customer to review your company only, and get the invitation's ID.

**Inputs**

- Customer name (`name`, text, required): The customer's name.
- Customer email (`email`, text, required): The customer's email address.
- Order reference (`order_id`, text, required): Your order reference, such as #12345.
- Email template ID (`template_id`, text): The ID of the invitation email template to use, from your REVIEWS.io dashboard. Leave empty for your usual template or flow.

**Outputs**

- `data` (object): The response from REVIEWS.io.

**Example output**

```json
{
  "data": {
    "id": 1,
    "invitation": {
      "date_send": "example",
      "email": "example",
      "email_sent": "example",
      "id": "example",
      "name": "example",
      "order_id": "example",
      "status": "example"
    },
    "message": "example",
    "success": "example"
  }
}
```

### Send company review text message

Queue a text message inviting a customer to review your company.

**Inputs**

- Customer name (`customer_name`, text, required): The customer's name.
- Mobile number (`mobile_number`, text, required): The customer's mobile number in international format, such as +447800000000.
- Order reference (`order_id`, text, required): Your order reference, such as #12345.
- Customer email (`customer_email`, text): The customer's email address.
- Send at (`send_at`, date and time): When to send the text. Leave empty to send it with your usual delay.

**Outputs**

- `data` (object): The response from REVIEWS.io.

**Example output**

```json
{
  "data": {
    "message": "example",
    "success": "example"
  }
}
```

### Send product review text message

Queue a text message inviting a customer to review the products they bought.

**Inputs**

- Customer name (`customer_name`, text, required): The customer's name.
- Mobile number (`mobile_number`, text, required): The customer's mobile number in international format, such as +447800000000.
- Order reference (`order_id`, text, required): Your order reference, such as #12345.
- Products (`products`, list, required): The products the customer bought, each with its sku and, to make the invitation clearer, its name, pageUrl and imageUrl. A plain SKU works too.
- Message (`message`, text): Your own wording for the text. It can use the placeholders [name], [DomainName] and [link]. Leave empty for the usual message.

**Outputs**

- `data` (object): The response from REVIEWS.io.

**Example output**

```json
{
  "data": {
    "message": "example",
    "success": "example"
  }
}
```

### Send review invitation

Queue the emails that invite a customer to review your company and the products they bought, following your invitation flow.

**Inputs**

- Customer name (`name`, text, required): The customer's name.
- Customer email (`email`, text, required): The customer's email address.
- Order reference (`order_id`, text, required): Your order reference, such as #12345.
- Products (`products`, list, required): The products the customer bought, each with its sku and, to make the invitation clearer, its name, pageUrl and imageUrl. A plain SKU works too.
- Send at (`send_at`, date and time): When to send the invitation. Leave empty to follow your flow's usual delay.
- Email template ID (`template_id`, text): The ID of the invitation email template to use, from your REVIEWS.io dashboard. Leave empty for your usual template or flow.
- Mobile number (`phone`, text): The customer's mobile number, such as +44 7522 143154.
- Country code (`country_code`, text): The customer's two-letter country code, such as GB.
- Branch (`branch`, text): The branch the order belongs to.

**Outputs**

- `data` (object): The response from REVIEWS.io.

**Example output**

```json
{
  "data": {
    "messages": [
      "example"
    ],
    "success": "example"
  }
}
```

### Tag company review

Add a tag to a company review.

**Inputs**

- Review ID (`review_id`, text, required): The review's ID, such as 123456 or store_review-123456 as List reviews returns it.
- Tag (`tag`, text, required): The tag to add, such as positive-review.

**Outputs**

- `data` (object): The response from REVIEWS.io.

**Example output**

```json
{
  "data": {
    "message": "example",
    "success": true
  }
}
```

### Tag product review

Add a tag to a product review.

**Inputs**

- Review ID (`review_id`, text, required): The review's ID, such as 123456 or store_review-123456 as List reviews returns it.
- Tag (`tag`, text, required): The tag to add, such as positive-review.

**Outputs**

- `data` (object): The response from REVIEWS.io.

**Example output**

```json
{
  "data": {
    "message": "example",
    "success": true
  }
}
```

### Unsubscribe email address

Stop REVIEWS.io sending review invitations to an email address.

**Inputs**

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

**Outputs**

- `data` (object): The response from REVIEWS.io.

**Example output**

```json
{
  "data": {
    "message": "example",
    "status": "example"
  }
}
```

### Update company invitation

Pause or reactivate a company review invitation, or change who it goes to.

**Inputs**

- Invitation ID (`invitation_id`, text, required): The invitation's ID, from List product invitations or List company invitations.
- Status (`status`, text): Pause the invitation so it isn't sent, or make it active again. One of: `active` (Active (will be sent)), `inactive` (Paused (won't be sent)).
- Customer name (`name`, text): The customer's name.
- Customer email (`email`, text): The customer's email address.
- Order reference (`order_id`, text): Your order reference.
- Email template ID (`template_id`, text): The ID of the invitation email template to use.

**Outputs**

- `data` (object): The response from REVIEWS.io.

**Example output**

```json
{
  "data": {
    "message": "example",
    "success": "example"
  }
}
```

### Update product invitation

Pause or reactivate a product review invitation, or change who it goes to and when.

**Inputs**

- Invitation ID (`invitation_id`, text, required): The invitation's ID, from List product invitations or List company invitations.
- Status (`status`, text): Pause the invitation so it isn't sent, or make it active again. One of: `active` (Active (will be sent)), `inactive` (Paused (won't be sent)).
- Customer name (`name`, text): The customer's name.
- Customer email (`email`, text): The customer's email address.
- Order reference (`order_id`, text): Your order reference.
- Send at (`send_at`, date and time): When to send the invitation.
- Email template ID (`template_id`, text): The ID of the invitation email template to use.

**Outputs**

- `data` (object): The response from REVIEWS.io.

**Example output**

```json
{
  "data": {
    "message": "example",
    "success": "example"
  }
}
```
