Related services: ReviewsService:
lynkow.reviews.getBySlug(),lynkow.reviews.list(),lynkow.reviews.settings(),lynkow.reviews.submit()
Review
Interface
An approved customer review, as reviews.list() and reviews.getBySlug()
return it. Free-text fields are HTML-sanitized. With a request locale, it
also carries requestedLocale and isFallback from LocaleResolution.
Extends: LocaleResolution
Property | Type | Optional | Description |
|---|---|---|---|
|
| Yes | Author's city. The key is absent unless the site shows author cities. |
|
| Yes | Author's company. The key is absent unless the site shows author companies. |
|
| No | Author's display name, 2 to 100 characters, e.g. |
|
| Yes | Absolute URL of the author's photo. The key is absent unless the site shows author photos. |
|
| Yes | Author's job title. The key is absent unless the site shows author companies. |
|
| No | Review text, at most 5000 characters, without markup. |
|
| No | ISO 8601 datetime the review was created, e.g. |
|
| Yes | Answers to the site's extra questions, keyed by ReviewCustomField.id.<br>The key is absent when the review has none. |
|
| No | Review ID (UUID), e.g. |
|
| Yes |
|
|
| No | Whether an admin featured this review, e.g. for a testimonials block. |
|
| No | Locale the review is written in, e.g. |
|
| No | Public ID ( |
|
| No | Free-text name of the product or service reviewed. |
|
| No | Rating from 1 (lowest) to 5 (highest), a whole number. |
|
| Yes | BCP 47 locale code the request asked for (e.g. |
|
| Yes | ISO 8601 date the review refers to, which an import can set in the past.<br> |
|
| No | Slug built from the author name and title, accepted by |
|
| No | Headline, at most 200 characters. |
ReviewCustomField
Interface
One admin-defined extra question on the public review form.
Returned inside ReviewSettings.customFieldsSchema. Render one input
per entry, keyed by id, and send the collected answers back as
ReviewSubmitData.customFields.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Stable key for this field. Use it as the input |
|
| No | Human-readable label to render next to the input. |
|
| Yes | Choices for a |
|
| Yes | Whether the site marks the question as required. The API does not enforce<br>it, so validate it in your form. |
|
| No | Input type to render:<br>- |
ReviewSettings
Interface
The review form settings reviews.settings() returns. Moderation settings
are not part of it.
Extends: LocaleResolution
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | The extra questions the site owner added to the review form.<br>Empty array when none are configured. Render one input per entry and send<br>the answers back as ReviewSubmitData.customFields. |
|
| Yes |
|
|
| Yes | BCP 47 locale code of the record actually served (e.g. |
|
| No | Whether visitors may submit reviews. When |
|
| Yes | BCP 47 locale code the request asked for (e.g. |
|
| No | Whether |
ReviewSubmitData
Interface
The review reviews.submit() sends. authorName, rating and content
are required. The API drops any key not declared here.
Property | Type | Optional | Description |
|---|---|---|---|
|
| Yes | Reviewer's city. Max 100 characters. |
|
| Yes | Reviewer's company. Max 100 characters. |
|
| Yes | Author's email address, never shown publicly. Required when<br>ReviewSettings.requireEmail is |
|
| No | Author's display name, shown publicly. 2 to 100 characters. |
|
| Yes | Absolute URL to a photo of the reviewer. Must be a valid URL. |
|
| Yes | Reviewer's job title. Max 100 characters. |
|
| No | Review text, 10 to 5000 characters. HTML tags are removed. |
|
| Yes | Answers to the site's extra questions, keyed by ReviewCustomField.id. |
|
| Yes | Locale the review is written in, e.g. |
|
| Yes | Product to link: its public ID ( |
|
| Yes | The product or service being reviewed. Max 200 characters. |
|
| Yes | Merchant SKU of the reviewed product. Max 100 characters. |
|
| No | Rating, a whole number from 1 to 5. |
|
| Yes | Headline, at most 200 characters. |