# Feefo

> Read Feefo service and product reviews, NPS feedback, rating summaries and product ratings, add sales so customers are asked for feedback, and follow new and changed reviews.

App · 5 actions. Web page: https://docs.lodol.com/docs/integrations/feefo

## Actions

### Add sale

Add a sale, one product at a time, so Feefo asks the customer for feedback. Add each product of an order with the same order reference within a few minutes, so the customer gets one request.

**Inputs**

- Customer name (`name`, text, required): The customer's name.
- Customer email (`email`, text, required): The customer's email address, where Feefo sends the feedback request.
- Order reference (`order_reference`, text, required): Your reference for the order.
- Product or service (`description`, text, required): The name of the product or service bought.
- Product SKU (`product_sku`, text): The product's SKU. Leave empty to use the description.
- Product URL (`product_url`, text): The product's page on your website.
- Amount (`amount`, number): What the customer paid for it.
- Currency (`currency`, text): The amount's three-letter currency code, such as GBP.
- Sale date (`sale_date`, date): The date of the sale. Leave empty for today.
- Ask for feedback on (`feedback_date`, date): When to send the feedback request. Leave empty for Feefo's usual delay after the sale.
- Customer reference (`customer_reference`, text): Your reference for the customer.
- Tags (`tags`, object): Tags for the sale and its feedback, by name, such as saleschannel: web.

**Outputs**

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

**Example output**

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

### Get review

Get one piece of feedback by its ID, with the customer's details and the conversation that followed.

**Inputs**

- Feedback ID (`review_id`, text, required): The feedback's ID: the service or product review's id from List reviews.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "customer": {
      "customer_ref": "example",
      "display_location": "example",
      "display_name": "example",
      "email": "example",
      "name": "example",
      "order_ref": "example"
    },
    "last_updated_date": "example",
    "locale": "example",
    "merchant": {
      "identifier": "example"
    },
    "nps": {
      "created_at": "example",
      "rating": 1,
      "reason": "example"
    },
    "products": [
      {
        "created_at": "example",
        "custom": [
          {
            "answer": "example",
            "question": "example"
          }
        ],
        "helpful_votes": 1,
        "id": "example",
        "media": [
          {
            "caption": "example",
            "helpful_votes": 1,
            "id": "example",
            "thumbnail": "example",
            "type": "example",
            "url": "example"
          }
        ],
        "product": {
          "image_url": "example",
          "parent_sku": "example",
          "reviews_url": "example",
          "sku": "example",
          "title": "example",
          "url": "example"
        },
        "rating": {
          "max": 1,
          "min": 1,
          "rating": 1
        },
        "review": "example",
        "thread": [
          {
            "author": "example",
            "comment": "example",
            "created_at": "example",
            "new_rating": 1,
            "old_rating": 1,
            "type": "example"
          }
        ]
      }
    ],
    "products_purchased": [
      "example"
    ],
    "service": {
      "created_at": "example",
      "custom": [
        {
          "answer": "example",
          "question": "example"
        }
      ],
      "helpful_votes": 1,
      "id": "example",
      "media": [
        {
          "caption": "example",
          "helpful_votes": 1,
          "id": "example",
          "thumbnail": "example",
          "type": "example",
          "url": "example"
        }
      ],
      "rating": {
        "max": 1,
        "min": 1,
        "rating": 1
      },
      "review": "example",
      "thread": [
        {
          "author": "example",
          "comment": "example",
          "created_at": "example",
          "new_rating": 1,
          "old_rating": 1,
          "type": "example"
        }
      ],
      "title": "example"
    },
    "tags": [
      {
        "key": "example",
        "type": "example",
        "values": [
          "example"
        ]
      }
    ],
    "url": "example"
  }
}
```

### Get reviews summary

Get the average rating and the number of reviews at each star rating, for service, products or both.

**Inputs**

- Feedback (`mode`, text): Which reviews to summarise. Leave empty for service and product reviews. One of: `all` (Service and product reviews), `service` (Service reviews), `product` (Product reviews). Default: `all`.
- Left in (`since_period`, text): Only feedback left in this period. Leave empty for the last year. One of: `month` (Last month), `year` (Last year), `all` (Service and product reviews).
- Product SKU (`product_sku`, text): Only reviews of the product with this SKU. Start or end it with * to match related products.
- Parent product SKU (`parent_product_sku`, text): Only reviews of products with this parent SKU.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "merchant": {
      "identifier": "example",
      "logo": "example",
      "name": "example",
      "review_url": "example",
      "url": "example"
    },
    "meta": {
      "count": 1,
      "page_size": 1,
      "pages": 1
    },
    "rating": {
      "max": 1,
      "min": 1,
      "product": {
        "1_star": 1,
        "2_star": 1,
        "3_star": 1,
        "4_star": 1,
        "5_star": 1,
        "count": 1
      },
      "rating": 1,
      "service": {
        "1_star": 1,
        "2_star": 1,
        "3_star": 1,
        "4_star": 1,
        "5_star": 1,
        "count": 1
      }
    }
  }
}
```

### List product ratings

List every reviewed product's average rating over a period, optionally with its number of reviews.

**Inputs**

- Period (`since_period`, text): The period the averages cover. Leave empty for the last year. One of: `24_hours` (Last 24 hours), `week` (Last week), `month` (Last month), `year` (Last year), `all` (Service and product reviews).
- Product SKUs (`product_skus`, list): Only these products, by SKU. Start or end a SKU with * to match related products.
- Parent product SKU (`parent_product_sku`, text): Only reviews of products with this parent SKU.
- Include review counts (`review_count`, true/false): Also return how many reviews each average is based on.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Products per page (`page_size`, number): How many products to return on each page, up to 100. Leave empty for 20. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "products": [
      {
        "rating": 1,
        "review_count": 1,
        "sku": "example"
      }
    ]
  }
}
```

### List reviews

List service reviews, product reviews or NPS feedback, newest first, with filters for product, customer, order, rating and moderation status.

**Inputs**

- Feedback (`mode`, text): Which feedback to read. Leave empty for service and product reviews. One of: `all` (Service and product reviews), `service` (Service reviews), `product` (Product reviews), `nps` (NPS (Net Promoter Score) feedback). Default: `all`.
- Left in (`since_period`, text): Only feedback left in this period. Leave empty for the last year. One of: `month` (Last month), `year` (Last year), `all` (Service and product reviews).
- Changed in (`since_updated_period`, text): Only feedback changed in this period. One of: `month` (Last month), `year` (Last year), `all` (Service and product reviews).
- Product SKU (`product_sku`, text): Only reviews of the product with this SKU. Start or end it with * to match related products.
- Parent product SKU (`parent_product_sku`, text): Only reviews of products with this parent SKU.
- Customer email (`customer_email`, text): Only feedback from this customer email address.
- Customer reference (`customer_reference`, text): Only feedback from the customer with this reference of yours.
- Order reference (`order_reference`, text): Only feedback about this order.
- Rating (`rating`, number): Only feedback with this star rating (1 to 5), or this NPS score (0 to 10). From 0 to 10.
- Moderation status (`moderation_status`, text): Only feedback in this moderation status. Leave empty for published feedback. One of: `published`, `pending` (Waiting for moderation), `rejected`, `all` (Service and product reviews).
- Photos and videos (`media`, text): Whether to include, leave out or only show feedback with photos or videos. One of: `include`, `exclude` (Leave out), `only` (Only those with photos or videos).
- Conversation (`full_thread`, text): Include the later comments, re-ratings and replies on each review. One of: `include`, `exclude` (Leave out).
- Child accounts (`children`, text): Include feedback from child accounts, for a group account. One of: `include`, `exclude` (Leave out).
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Reviews per page (`page_size`, number): How many reviews to return on each page, up to 100. Leave empty for 20. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "reviews": [
      {
        "customer": {
          "customer_ref": "example",
          "display_location": "example",
          "display_name": "example",
          "email": "example",
          "name": "example",
          "order_ref": "example"
        },
        "last_updated_date": "example",
        "locale": "example",
        "merchant": {
          "identifier": "example"
        },
        "nps": {
          "created_at": "example",
          "rating": 1,
          "reason": "example"
        },
        "products": [
          {
            "created_at": "example",
            "custom": [
              {
                "answer": "example",
                "question": "example"
              }
            ],
            "helpful_votes": 1,
            "id": "example",
            "media": [
              {
                "caption": "example",
                "helpful_votes": 1,
                "id": "example",
                "thumbnail": "example",
                "type": "example",
                "url": "example"
              }
            ],
            "product": {
              "image_url": "example",
              "parent_sku": "example",
              "reviews_url": "example",
              "sku": "example",
              "title": "example",
              "url": "example"
            },
            "rating": {
              "max": 1,
              "min": 1,
              "rating": 1
            },
            "review": "example",
            "thread": [
              {
                "author": "example",
                "comment": "example",
                "created_at": "example",
                "new_rating": 1,
                "old_rating": 1,
                "type": "example"
              }
            ]
          }
        ],
        "products_purchased": [
          "example"
        ],
        "service": {
          "created_at": "example",
          "custom": [
            {
              "answer": "example",
              "question": "example"
            }
          ],
          "helpful_votes": 1,
          "id": "example",
          "media": [
            {
              "caption": "example",
              "helpful_votes": 1,
              "id": "example",
              "thumbnail": "example",
              "type": "example",
              "url": "example"
            }
          ],
          "rating": {
            "max": 1,
            "min": 1,
            "rating": 1
          },
          "review": "example",
          "thread": [
            {
              "author": "example",
              "comment": "example",
              "created_at": "example",
              "new_rating": 1,
              "old_rating": 1,
              "type": "example"
            }
          ],
          "title": "example"
        },
        "tags": [
          {
            "key": "example",
            "type": "example",
            "values": [
              "example"
            ]
          }
        ],
        "url": "example"
      }
    ],
    "summary": {
      "meta": {
        "count": 1,
        "current_page": 1,
        "page_size": 1,
        "pages": 1
      }
    }
  }
}
```
