{"openapi":"3.1.0","servers":[{"url":"https://api.fera.ai/v3/public"}],"components":{"schemas":{"Review":{"type":"object","properties":{"id":{"type":"string","description":"The Fera ID of the Review.","example":"fRev_12ab"},"subject":{"type":"string","description":"What is this content about - a specific product, or the store (overall experience)?","enum":["product","store"]},"is_verified":{"type":"boolean","description":"Was this resource submitted by a verified customer of the store?"},"is_test":{"type":"boolean","description":"Whether the resource was created as part of an administrative test (usually during setup).","example":false},"external_product_id":{"type":"string","example":"12345678","description":"Related external product ID (usually the Shopify, Wix or other eCommerce platform product ID)."},"product_id":{"type":"string","example":"fpro_12ab","description":"Related Fera product ID if product has not been deleted."},"external_customer_id":{"type":"string","example":"12345678","description":"Related external customer ID (usually the Wix, Shopify or other eCommerce platform customer ID)."},"customer_id":{"type":"string","example":"fcus_12ab","description":"Related Fera customer ID."},"created_at":{"type":"string","format":"date-time","description":"The time the object was created using ISO-8601 date/time format."},"updated_at":{"type":"string","format":"date-time","description":"The time the object was last updated in Fera using ISO-8601 date/time format."},"rating":{"type":"integer","description":"Rating between 1 and 5.","example":4,"minimum":1,"maximum":5},"heading":{"type":"string","description":"A short summary of the review.","example":"This is a great product!","maxLength":255},"body":{"type":"string","description":"The full review.","example":"This is a great product! I love it!"},"is_from_supplier":{"type":"boolean","description":"Was this review collected by the merchant's supplier?","example":false},"store_reply":{"description":"Store admin reply to the customer's review, if any.","nullable":true,"type":"object","properties":{"body":{"type":"string","description":"The content body of the reply from the store owner or admin.","example":"We're sorry that it took so long for your product to arrive but we are delighted that you loved the product we shipped you and recommend it to others! Thanks for being a great customer!"},"created_at":{"type":"string","format":"date-time","description":"The time when the reply was created (when the store owner replied) using ISO-8601 date/time format."}}},"counts":{"description":"Cached counts of child objects.","type":"object","properties":{"media":{"type":"integer","description":"Number of photos and videos attached to this review. This number is equal to counts.photos + counts.videos.","example":3},"photos":{"type":"integer","description":"Number of photos attached to this review.","example":2},"videos":{"type":"integer","description":"Number of videos attached to this review.","example":1},"helpful":{"type":"integer","description":"Number of people who marked this review as helpful.","example":14}}},"product":{"description":"Product data related to the current object.","$ref":"#/components/schemas/ProductWithoutNesting","nullable":true},"customer":{"description":"Customer data related to the current object.","$ref":"#/components/schemas/CustomerWithoutNesting","nullable":true},"media":{"type":"array","description":"Customer photos and videos that are associated to this object. Sorted by most recent first.","items":{"$ref":"#/components/schemas/MediaWithoutNesting"}}}},"Media":{"type":"object","properties":{"id":{"type":"string","description":"The Fera ID of the Media.","example":"fMed_12ab"},"subject":{"type":"string","description":"What is this content about - a specific product, or the store (overall experience)?","enum":["product","store"]},"is_verified":{"type":"boolean","description":"Was this resource submitted by a verified customer of the store?"},"is_test":{"type":"boolean","description":"Whether the resource was created as part of an administrative test (usually during setup).","example":false},"external_product_id":{"type":"string","example":"12345678","description":"Related external product ID (usually the Shopify, Wix or other eCommerce platform product ID)."},"product_id":{"type":"string","example":"fpro_12ab","description":"Related Fera product ID if product has not been deleted."},"external_customer_id":{"type":"string","example":"12345678","description":"Related external customer ID (usually the Wix, Shopify or other eCommerce platform customer ID)."},"customer_id":{"type":"string","example":"fcus_12ab","description":"Related Fera customer ID."},"created_at":{"type":"string","format":"date-time","description":"The time the object was created using ISO-8601 date/time format."},"updated_at":{"type":"string","format":"date-time","description":"The time the object was last updated in Fera using ISO-8601 date/time format."},"type":{"type":"string","description":"Type of media. Possible values are: photo or video.","example":"photo"},"review_id":{"type":"string","description":"ID of the review that this photo or video was submitted as part of.","example":"frev_12ab"},"review_channel_code":{"type":"string","description":"Channel code for media synced from external channel.","example":"amazon"},"url":{"type":"string","format":"uri","description":"URL to the photo or video. If the resource is hosted an external server (like YouTube), then this URL will be the external URL.","example":"https://cdn.fera.ai/img/sunglasses.png"},"thumbnail_url":{"type":"string","format":"uri","description":"URL to an optimized small image that represents the photo or video. If the resource is hosted an\nexternal server (like YouTube), then this URL will be the external URL.","example":"https://cdn.fera.ai/img/sunglasses.png?size=thumbnail"},"processing_state":{"type":"string","description":"Upon upload of photos and videos a compressed copy and thumbnail are created. This process takes some time, so this attribute tells you whether or not it's finished.","enum":["not_started","enqueued","in_progress","completed","failed"],"example":"completed","readOnly":true},"channel_code":{"type":"string","description":"Channel code if media upload is from external source that is youtube, vimeo, instagram.","enum":["youtube","facebook","vimeo","instagram","external"],"example":"youtube"},"rotation_degrees":{"type":"integer","description":"Clockwise rotation in degrees to apply when displaying this photo or video.","enum":[0,90,180,270],"example":90},"caption":{"type":"string","description":"Caption of the photo or video.","example":"Here's how my product purchase looked when I opened the box I received."},"alt_text":{"type":"string","description":"Alternative text rendered for the media thumbnail.","example":"Leather Chelsea Boots - These boots fit perfectly and the quality is excellent."},"product":{"description":"Product data related to the current object.","$ref":"#/components/schemas/ProductWithoutNesting","nullable":true},"customer":{"description":"Customer data related to the current object.","$ref":"#/components/schemas/CustomerWithoutNesting","nullable":true}}},"Store":{"type":"object","properties":{"id":{"type":"string","description":"The Fera ID of the Store.","example":"fSto_12ab"},"name":{"type":"string","example":"Bluth Building Co","description":"Name/title of the store/account."},"platform":{"type":"string","example":"shopify","description":"The eCommerce platform where most orders and products live."},"url":{"type":"string","format":"uri","example":"https://www.example.com","description":"URL the store that should be used in links."},"code":{"type":"string","example":"bluth","description":"Short code used for review quick links (`fera.review/{ code }`) and other things."},"country_code":{"type":"string","example":"US","description":"Country code where the store's primary headquarters are."},"country_name":{"type":"string","example":"US","description":"Name of country where the store's primary headquarters are.","readOnly":true},"public_key":{"type":"string","example":"pk_abcd123","description":"Public API key used to access data via the [Public/Storefront API](https://developers.fera.ai/public-api"},"external_id":{"type":"string","example":"bluth-co.myshopify.com","description":"Unique identifier used by the eCommerce platform to identify the store."},"language":{"type":"string","example":"en-US","description":"The primary language of the store (the base one). Language code is in the format: xx-XX"},"supported_language":{"type":"string","example":"en-US","description":"The primary language of the store that Fera supports. If the store's language is not supported, then this will return 'en'. Language code is in the format: xx-XX"},"logo_url":{"type":"string","format":"uri","example":"https://uploads.fera.ai/brand/v3/logo.svg","description":"URL to the company's logo image."},"icon_url":{"type":"string","format":"uri","example":"https://uploads.fera.ai/brand/v3/icon.svg","description":"URL to the company's logo icon. This is used when the store replies to reviews publicly as well as a couple other places."},"counts":{"readOnly":true,"type":"object","description":"Cached counts related to the store.","properties":{"reviews":{"type":"number","format":"int64","example":5,"description":"The total number of reviews/ratings received from customers.\n\n    This is the same as `rating.count`."},"product_reviews":{"type":"number","format":"int64","example":3,"description":"The total number of approved product reviews received from customers."},"store_reviews":{"type":"number","format":"int64","example":2,"description":"The total number of approved store reviews received from customers."},"media":{"type":"number","format":"int64","example":3,"description":"The total number of photos and videos the store has across all products and types."}}},"rating":{"readOnly":true,"type":"object","properties":{"count":{"type":"number","format":"int64","example":5,"description":"The total number of reviews/ratings received from customers.\n\n    This is the same as `counts.reviews`."},"average":{"type":"number","format":"float","example":4.5,"description":"The store's overall average rating across all products and reviews."}}},"is_dev_mode":{"type":"boolean","description":"Is [development mode](https://help.fera.ai/en/articles/10491282-developer-mode-vs-regular-mode) activated?","example":false},"created_at":{"type":"string","format":"date-time","description":"The time the object was created using ISO-8601 date/time format."},"updated_at":{"type":"string","format":"date-time","description":"The time the object was last updated in Fera using ISO-8601 date/time format."},"widgets":{"type":"array","items":{"$ref":"#/components/schemas/WidgetWithoutNesting"}}}},"Rating":{"type":"object","properties":{"subject":{"type":"string","description":"What is this content about - a specific product, or the store (overall experience)?","enum":["product","store"]},"external_product_id":{"type":"string","example":"12345678","description":"Related external product ID (usually the Shopify, Wix or other eCommerce platform product ID)."},"product_id":{"type":"string","example":"fpro_12ab","description":"Related Fera product ID if product has not been deleted."},"average":{"type":"number","format":"float","description":"Average rating of the subject (product or store). Only approved reviews/ratings are included in this count.","example":4.8,"readOnly":true},"count":{"type":"number","format":"int32","description":"Total number of reviews received about the subject (product or store). Only approved reviews/ratings are included in this count.","example":123,"readOnly":true},"ungrouped_average":{"type":"number","format":"float","description":"Average product rating without [product grouping](https://help.fera.ai/en/articles/5899894-product-groups-grouping-reviews) applied.","example":4.7,"readOnly":true},"ungrouped_count":{"type":"number","format":"int32","description":"Total number of product reviews/ratings without\n[product grouping](https://help.fera.ai/en/articles/5899894-product-groups-grouping-reviews) applied.","example":12,"readOnly":true}}},"WidgetWithoutNesting":{"type":"object","properties":{"id":{"type":"string","description":"The Fera ID of the Widget.","example":"fWid_12ab"}},"title":"Widget"},"ReviewWithoutNesting":{"type":"object","properties":{"id":{"type":"string","description":"The Fera ID of the Review.","example":"fRev_12ab"},"subject":{"type":"string","description":"What is this content about - a specific product, or the store (overall experience)?","enum":["product","store"]},"is_verified":{"type":"boolean","description":"Was this resource submitted by a verified customer of the store?"},"is_test":{"type":"boolean","description":"Whether the resource was created as part of an administrative test (usually during setup).","example":false},"external_product_id":{"type":"string","example":"12345678","description":"Related external product ID (usually the Shopify, Wix or other eCommerce platform product ID)."},"product_id":{"type":"string","example":"fpro_12ab","description":"Related Fera product ID if product has not been deleted."},"external_customer_id":{"type":"string","example":"12345678","description":"Related external customer ID (usually the Wix, Shopify or other eCommerce platform customer ID)."},"customer_id":{"type":"string","example":"fcus_12ab","description":"Related Fera customer ID."},"created_at":{"type":"string","format":"date-time","description":"The time the object was created using ISO-8601 date/time format."},"updated_at":{"type":"string","format":"date-time","description":"The time the object was last updated in Fera using ISO-8601 date/time format."},"rating":{"type":"integer","description":"Rating between 1 and 5.","example":4,"minimum":1,"maximum":5},"heading":{"type":"string","description":"A short summary of the review.","example":"This is a great product!","maxLength":255},"body":{"type":"string","description":"The full review.","example":"This is a great product! I love it!"},"is_from_supplier":{"type":"boolean","description":"Was this review collected by the merchant's supplier?","example":false},"store_reply":{"description":"Store admin reply to the customer's review, if any.","nullable":true,"type":"object","properties":{"body":{"type":"string","description":"The content body of the reply from the store owner or admin.","example":"We're sorry that it took so long for your product to arrive but we are delighted that you loved the product we shipped you and recommend it to others! Thanks for being a great customer!"},"created_at":{"type":"string","format":"date-time","description":"The time when the reply was created (when the store owner replied) using ISO-8601 date/time format."}}},"counts":{"description":"Cached counts of child objects.","type":"object","properties":{"media":{"type":"integer","description":"Number of photos and videos attached to this review. This number is equal to counts.photos + counts.videos.","example":3},"photos":{"type":"integer","description":"Number of photos attached to this review.","example":2},"videos":{"type":"integer","description":"Number of videos attached to this review.","example":1},"helpful":{"type":"integer","description":"Number of people who marked this review as helpful.","example":14}}}},"title":"Review"},"MediaWithoutNesting":{"type":"object","properties":{"id":{"type":"string","description":"The Fera ID of the Media.","example":"fMed_12ab"},"subject":{"type":"string","description":"What is this content about - a specific product, or the store (overall experience)?","enum":["product","store"]},"is_verified":{"type":"boolean","description":"Was this resource submitted by a verified customer of the store?"},"is_test":{"type":"boolean","description":"Whether the resource was created as part of an administrative test (usually during setup).","example":false},"external_product_id":{"type":"string","example":"12345678","description":"Related external product ID (usually the Shopify, Wix or other eCommerce platform product ID)."},"product_id":{"type":"string","example":"fpro_12ab","description":"Related Fera product ID if product has not been deleted."},"external_customer_id":{"type":"string","example":"12345678","description":"Related external customer ID (usually the Wix, Shopify or other eCommerce platform customer ID)."},"customer_id":{"type":"string","example":"fcus_12ab","description":"Related Fera customer ID."},"created_at":{"type":"string","format":"date-time","description":"The time the object was created using ISO-8601 date/time format."},"updated_at":{"type":"string","format":"date-time","description":"The time the object was last updated in Fera using ISO-8601 date/time format."},"type":{"type":"string","description":"Type of media. Possible values are: photo or video.","example":"photo"},"review_id":{"type":"string","description":"ID of the review that this photo or video was submitted as part of.","example":"frev_12ab"},"review_channel_code":{"type":"string","description":"Channel code for media synced from external channel.","example":"amazon"},"url":{"type":"string","format":"uri","description":"URL to the photo or video. If the resource is hosted an external server (like YouTube), then this URL will be the external URL.","example":"https://cdn.fera.ai/img/sunglasses.png"},"thumbnail_url":{"type":"string","format":"uri","description":"URL to an optimized small image that represents the photo or video. If the resource is hosted an\nexternal server (like YouTube), then this URL will be the external URL.","example":"https://cdn.fera.ai/img/sunglasses.png?size=thumbnail"},"processing_state":{"type":"string","description":"Upon upload of photos and videos a compressed copy and thumbnail are created. This process takes some time, so this attribute tells you whether or not it's finished.","enum":["not_started","enqueued","in_progress","completed","failed"],"example":"completed","readOnly":true},"channel_code":{"type":"string","description":"Channel code if media upload is from external source that is youtube, vimeo, instagram.","enum":["youtube","facebook","vimeo","instagram","external"],"example":"youtube"},"rotation_degrees":{"type":"integer","description":"Clockwise rotation in degrees to apply when displaying this photo or video.","enum":[0,90,180,270],"example":90},"caption":{"type":"string","description":"Caption of the photo or video.","example":"Here's how my product purchase looked when I opened the box I received."},"alt_text":{"type":"string","description":"Alternative text rendered for the media thumbnail.","example":"Leather Chelsea Boots - These boots fit perfectly and the quality is excellent."}},"title":"Media"},"CustomerWithoutNesting":{"type":"object","properties":{"id":{"type":"string","description":"The Fera ID of the Serializer.","example":"fSer_12ab"},"display_name":{"type":"string","example":"George B.","description":"Public-safe name to display. If the customer's profile has no display name defined\nthen this returns a generated display name based on the store's settings."},"is_anonymous":{"type":"boolean","example":false,"description":"If true, the customer's display name will be the word 'Anonymous'."},"display_location":{"type":"string","example":"Austin, TX","description":"Public-safe location to display on customer profile. If the customer's profile has no display location\nvalue then returns a generated display location based on the customer's country, region and city while factoring in the store's location.\n\nFor example, if the store is located in the US then the generated location string will omit the 'US' country code part."},"avatar_url":{"type":"string","format":"uri","example":"https://cdn.fera.ai/img/shoppers/placeholder.png","description":"Public-safe customer display picture (avatar) URL."},"default_avatar_url":{"type":"string","format":"uri","example":"https://pic1.co/abc123.png","description":"A generated avatar URL for the customer. You can use this to confirm whether the `avatar_url` is the default avatar versus a custom one.","readOnly":true},"rating":{"readOnly":true,"type":"object","description":"Cached aggregate rating and review counts for the customer. Pending/unpublished content excluded.","properties":{"count":{"type":"number","format":"integer","example":5,"description":"The total number of reviews/ratings the customer has submitted.\n\nThis is the same as `counts.reviews`."},"average":{"type":"number","format":"float","example":4.5,"description":"The average rating the customer has submitted across all their submitted reviews/ratings\n(both store reviews and product reviews combined).\n\nThis is the same value is the `average_rating` attribute and `counts.average_rating`."}}},"counts":{"readOnly":true,"type":"object","description":"Cached counts related to the customer. Pending/unpublished content excluded.","properties":{"reviews":{"type":"number","format":"integer","example":5,"description":"The total number of reviews/ratings the customer has submitted.\n\nThis is the same as `rating.count`."},"average_rating":{"type":"number","format":"float","example":4.9,"description":"Average rating across all reviews submitted by this customer (same as `rating.average`)."},"media":{"type":"number","format":"integer","example":5,"description":"The total number of photos and videos the customer has submitted."}}},"created_at":{"type":"string","format":"date-time","description":"The date and time the customer was created. Takes the OLDEST of the external platform updated_at and Fera updated_at value.","example":"2020-01-01T00:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"The date and time the customer was last updated. Takes the MOST RECENT of the external platform updated_at and Fera updated_at value.","example":"2020-01-01T00:00:00Z"}},"title":"Customer"},"ProductWithoutNesting":{"type":"object","properties":{"id":{"type":"string","description":"The Fera ID of the Product.","example":"fPro_12ab"},"external_id":{"type":"string","example":"12345678","description":"External product ID (usually the Wix, Shopify or other eCommerce platform product ID)."},"name":{"type":"string","example":"Red Sneakers","description":"Name/title of the product."},"url":{"type":"string","format":"uri","example":"https://www.example.com/red-sneakers","description":"URL to the product's detail page in the store. Returns `null` if the product is unpublished or deleted."},"handle":{"type":"string","example":"nike-air-jordan-sneakers","description":"The URL handle (AKA URL key, AKA slug) that can be used to generate a URL to the product.\nThis will be used to generate a URL to the product if a URL is not specified. Example: `example.com/us/HANDLE`."},"thumbnail_url":{"type":"string","format":"uri","example":"https://cdn.fera.ai/img/sunglasses.png","description":"URL to a small (300x300px) photo of the product."},"rating":{"readOnly":true,"type":"object","properties":{"count":{"type":"number","format":"int64","example":5,"description":"The total number of reviews/ratings the product has received.\n\n    This is the same as `counts.reviews`."},"average":{"type":"number","format":"float","example":4.5,"description":"The average rating the product has received across all its submitted reviews/ratings."}}},"counts":{"readOnly":true,"type":"object","description":"Cached counts related to the product.","properties":{"reviews":{"type":"number","format":"int64","example":5,"description":"The total number of reviews/ratings associated with the product.\n\n    This is the same as `rating.count`."},"media":{"type":"number","format":"int64","example":3,"description":"The total number of photos and videos associated with the product.\n\n    This is equal to `counts.photos + counts.videos`."},"photos":{"type":"number","format":"int64","example":2,"description":"The total number of photos associated with the product."},"videos":{"type":"number","format":"int64","example":1,"description":"The total number of videos associated with the product."}}},"is_visible":{"type":"boolean","example":true,"description":"Whether the product is visible in the storefront. A product is not visible if its `status` field is `draft`,\n`unpublished`, `deleted`, `archived` or something similar."},"tags":{"type":"array","items":{"type":"string"},"example":["red","sneakers"],"description":"Array of tags that describe the product.\n\n  You can use these tags to [exclude certain products from being reviewed](https://help.fera.ai/en/articles/5986515-excluding-reviews-for-products-or-customers)."}},"title":"Product"},"listMetaParam":{"type":"object","description":"Pagination and count information about the list of objects retrieved.","properties":{"page":{"type":"integer","description":"Current page number, if pagination used.","example":1},"page_size":{"type":"integer","description":"Number of items per page, if pagination used.","example":10},"page_count":{"type":"integer","description":"Total number of pages, if pagination used.","example":3},"limit":{"type":"integer","description":"Maximum number of items retrieved, if offset/limits used.","example":10},"offset":{"type":"integer","description":"Starting position of items request query, if offset/limits used.","example":0},"total_count":{"type":"integer","description":"Total number of items that the query matched (without pagination,\nlimits or offsets).","example":123}}},"AbstractRating":{"type":"object","properties":{"rating":{"type":"number","format":"float","description":"Average rating.","example":4.8},"count":{"type":"number","format":"int32","description":"Number of reviews/ratings.","example":10}}}},"parameters":{"pageRequestQueryParam":{"name":"page","in":"query","required":false,"description":"Current page number, if pagination used.","schema":{"type":"integer","format":"int32","minimum":1}},"perPageRequestQueryParam":{"name":"page_size","in":"query","required":false,"description":"Number of items per page.","schema":{"type":"integer","format":"int32","minimum":1}},"limitRequestQueryParam":{"name":"limit","in":"query","required":false,"description":"Maximum number of items retrieved.","schema":{"type":"integer","format":"int32","minimum":1,"maximum":100}},"offsetRequestQueryParam":{"name":"offset","in":"query","required":false,"description":"Starting position of items request query.","schema":{"type":"integer","format":"int32","minimum":0}},"idRequestUrlParam":{"name":"id","in":"path","required":true,"description":"ID of the object you want to retrieve","schema":{"type":"string"}},"idOrExternalIdRequestUrlParam":{"name":"id","in":"path","required":true,"description":"ID of the object you want to retrieve. The Fera ID or external ID of the object can be used here for convenience.","schema":{"type":"string"}}},"responses":{"BadRequestError":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"A message describing the error in English","example":"Your request was malformed or unacceptable. Please check your parameters and try again."}}}}}},"ValidationError":{"description":"Validation error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"A message describing the error in English","example":"Rating must be a number between 1 and 5."},"errors":{"type":"object","description":"An object where the keys are the attribute that failed validation, and the values are an array of problems.","example":{"rating":["must be a positive integer","must be between 1 and 5"]}}}}}}},"NotFoundError":{"description":"Not found error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"The object you requested was not found."}}}}}},"ProductNotFoundError":{"description":"Product not found error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"The product you requested was not found."}}}}}},"ReviewNotFoundError":{"description":"Review not found error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"The review you requested was not found."}}}}}},"CustomerNotFoundError":{"description":"Customer not found error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"The customer you requested was not found."}}}}}},"MethodNotAllowedError":{"description":"Not allowed error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"A message describing the error in English","example":"You cannot delete this review because it was submitted by a verified customer. Try requesting an update instead."}}}}}}},"securitySchemes":{"Public key":{"type":"apiKey","in":"query","name":"public_key","description":"Your store's public API key."}}},"info":{"description":"","version":"3.23.3","title":"Ratings","x-logo":{"url":"https://uploads.fera.ai/brand/logo-rect.svg","altText":"Fera logo"},"termsOfService":"https://www.fera.ai/terms-of-service?ref=open_api&user_type=developer&api_type=public","contact":{"name":"Fera Support Team","email":"help@fera.ai","url":"https://help.fera.ai?ref=open_api&user_type=developer"}},"tags":[{"name":"Ratings","description":"The average rating and number of reviews for each product and for the store, for star ratings on product and collection pages."}],"paths":{"/products/ratings":{"get":{"summary":"List All Product Aggregate Ratings","description":"Retrieve a list of product ratings.","operationId":"list-product-ratings","security":[{"Public key":[]}],"tags":["Ratings"],"parameters":[{"$ref":"#/components/parameters/pageRequestQueryParam"},{"$ref":"#/components/parameters/perPageRequestQueryParam"},{"$ref":"#/components/parameters/limitRequestQueryParam"},{"$ref":"#/components/parameters/offsetRequestQueryParam"},{"in":"query","description":"Filter by what the resource is describing; A specific product, the entire store (ie overall experience) or both (all). Default: both.","schema":{"type":"string","enum":["both","product","store"]},"name":"subject"},{"description":"External product ID (usually the Wix, Shopify or other eCommerce platform product ID).\n\nExample: `12345678`","name":"external_id","in":"query","schema":{"type":"string"}},{"description":"Comma-separated list of external product IDs (usually the Wix, Shopify or other eCommerce platform product IDs).\n\nExample: `12345678,87654321`","name":"external_ids","in":"query","schema":{"type":"string"}},{"name":"sort_by","in":"query","required":false,"description":"Sort (order) the response results by the given attribute.\n\nAdd `:desc` to sort in descending order, or `:asc` to sort in ascending order.\n\nFor example: count:desc would get you count in descending order.","schema":{"type":"string","enum":["count","average"]}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Rating"}},"meta":{"$ref":"#/components/schemas/listMetaParam"}}}}}},"400":{"$ref":"#/components/responses/BadRequestError"}}}},"/products/{id}/rating":{"get":{"summary":"Retrieve Product Aggregate Rating","description":"Retrieve a specific product's aggregate rating information (average rating and rating/review count).","operationId":"retrieve-product-rating","security":[{"Public key":[]}],"tags":["Ratings"],"parameters":[{"name":"id","in":"path","description":"Fera or external ID of the product.","required":true,"example":"fpro_12ab","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Rating"}}}},"404":{"$ref":"#/components/responses/NotFoundError"}}}},"/store/rating":{"get":{"summary":"Retrieve Store Rating","description":"Retrieve the aggregate store rating across all products and reviews.","operationId":"retrieve-rating","security":[{"Public key":[]}],"tags":["Ratings"],"parameters":[],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbstractRating"}}}}}}}}}