{"openapi":"3.1.0","servers":[{"url":"https://api.fera.ai/v3/private"}],"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}}},"state":{"type":"string","description":"State of the resource. Resources are initially in the `pending_approval` state when submitted by customers via Fera.","enum":["pending_approval","pending_update","approved","declined_approval"],"example":"approved"},"external_order_id":{"type":"string","example":"12345678","description":"Related external order ID (usually the Shopify, Wix or other eCommerce platform order ID)."},"order_id":{"type":"string","example":"ford_12ab","description":"Related Fera order ID."},"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."},"state":{"type":"string","description":"State of the resource. Resources are initially in the `pending_approval` state when submitted by customers via Fera.","enum":["pending_approval","pending_update","approved","declined_approval"],"example":"approved"},"external_order_id":{"type":"string","example":"12345678","description":"Related external order ID (usually the Shopify, Wix or other eCommerce platform order ID)."},"order_id":{"type":"string","example":"ford_12ab","description":"Related Fera order ID."},"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}}},"Customer":{"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 as defined in the customer's profile.\n\nIf this is not specified and the customer name is present then public API will use the store settings to generate a display name instead."},"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."},"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`."}}},"external_id":{"type":"string","example":"12345678","description":"External customer ID (usually the Wix, Shopify or other eCommerce platform customer ID).\n\n  Either `external_id` or `email` are required (both or one of them)."},"email":{"type":"string","format":"email","example":"michael.bluth@example.com","description":"Email address of the customer."},"phone_number":{"type":"string","example":"+1234567890","description":"Phone number of the customer."},"name":{"type":"string","example":"Michael G. Bluth","description":"First, last and middle name of customer."},"first_name":{"type":"string","example":"Michael","description":"First part of the full name of the customer. You can't set this value, but you can set the name attribute fully.","readOnly":true},"last_name":{"type":"string","example":"Bluth","description":"Last part of the full name of the customer. You can't set this, but you can set the name attribute fully.","readOnly":true},"generated_display_name":{"readOnly":true,"type":"string","example":"George B.","description":"Generates a display name string based on the customer's name and the store customer name display settings.\n\nOnly used if the customer is not anonymous and does not have a display name value defined."},"is_name_visible":{"type":"boolean","example":true,"description":"Should the customer name be displayed? If not, 'Anonymous' will be displayed.\n\nIf true then the public API will return `display_name` or a generated name based on the store settings if none provided."},"generated_display_location":{"readOnly":true,"type":"string","example":"Austin, TX","description":"Generates a display location string based on the customer's country, region and city while\nfactoring in the store's location (specified in the store settings).\n\nFor example, if the store is located in the US then the generated location string will omit the 'US' country code part."},"is_location_visible":{"type":"boolean","example":true,"description":"Should the customer location be displayed?\n\nIf true then the public API will return `display_location` or a generated location based on the store settings if none provided."},"country_code":{"type":"string","example":"US","description":"Country code where the customer is located.","maxLength":2},"region_name":{"type":"string","example":"Texas","description":"State, province or region name (not the code)."},"city":{"type":"string","example":"Austin","description":"City name"},"zip":{"type":"string","example":"78701","description":"Zip, postal or region code of the customer."},"is_test":{"type":"boolean","description":"Whether the customer is a test customer.","example":false},"submission_url":{"type":"string","format":"uri","description":"A verified URL where the customer can submit a review/photo/video securely. 'Retrieve Customer' endpoints will shorten the URL as well."},"counts":{"readOnly":true,"type":"object","description":"Cached counts related to the customer. **This includes unpublished/pending content counts**. Note: It can take a few seconds for these counts to update after changes occur.","properties":{"reviews":{"type":"number","format":"integer","example":5,"description":"The total number of reviews/ratings the customer has submitted (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."},"orders":{"type":"number","format":"integer","example":5,"description":"The total number of orders (or invoices) the customer has.\n\n  This only looks at orders synced to Fera (past and external orders may not be included)."},"spend":{"type":"number","format":"float","example":123.45,"description":"The total amount spent by the customer in their lifetime.\n\n  This only looks at orders synced to Fera (past and external orders may not be included)."}}},"notes":{"type":"string","description":"Notes about the customer. This is a free-form field that can be used to store any information you want to associate with the customer.","example":"This is a VIP customer."},"tags":{"type":"array","items":{"type":"string","description":"Tags associated with the customer. These can be used to exclude requesting reviews from certain customers.","example":"dont-request-review"}},"external_created_at":{"type":"string","format":"date-time","description":"The date and time the customer was created on the external platform (original source).","example":"2020-01-01T00:00:00Z"},"external_updated_at":{"type":"string","format":"date-time","description":"The date and time the customer was created on the updated platform (original source).","example":"2020-01-01T00:00:00Z"},"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."},"media":{"type":"array","description":"Customer photos and videos that are associated to this object. Sorted by most recent first.","items":{"$ref":"#/components/schemas/MediaWithoutNesting"}}}},"Product":{"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)."},"stock":{"type":"number","format":"int64","example":123,"description":"Total inventory stock available for purchase of the product (cumulative across all variants)."},"type":{"type":"string","example":"shopify","description":"The Store type where the product was synced from. If nil, then product is not bound to a specific platform."},"sku":{"type":"string","example":"RS-123","description":"SKU of the product if different than the external ID.\n\n    This will be used for [Google Shopping integration](https://help.fera.ai/en/articles/5902178-google-shopping-integration)."},"image_url":{"type":"string","format":"uri","example":"https://cdn.fera.ai/img/sunglasses.png","description":"URL to full-sized image of the product."},"in_stock":{"type":"boolean","example":true,"description":"Whether the product is in stock.","readOnly":true},"global_id":{"type":"string","example":"123ABC","description":"The global ID of the product. This is used in Google Shopping reviews data."},"upc":{"type":"string","example":"1234567890","description":"The Universal Part Code of the product. This is used in Google Shopping reviews data."},"gtin":{"type":"string","example":"ABC123","description":"The Global Trade Item Number of the product. This is used in Google Shopping reviews data."},"mpn":{"type":"string","example":"ABC123","description":"The Manufacturer Part Number of the product. This is used in Google Shopping reviews data."},"barcode":{"type":"string","example":"1234567890","description":"The barcode of the product. This is used in Google Shopping reviews data."},"brand":{"type":"string","example":"Nike","description":"The brand of the product. This is used in Google Shopping reviews data."},"status":{"type":"string","example":"published","description":"The status of the product. If blank `published` state is assumed.","enum":["draft","unpublished","hidden","disabled","deleted","archived","published","active"]},"external_created_at":{"type":"string","format":"date-time","description":"The date and time the product was created on the external platform (original source).","example":"2020-01-01T00:00:00Z"},"external_updated_at":{"type":"string","format":"date-time","description":"The date and time the product was updated on the external platform (original source).","example":"2020-01-01T00:00:00Z"},"price":{"type":"number","format":"float","example":10,"description":"Price of the product."},"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."},"media":{"type":"array","description":"Customer photos and videos that are associated to this object. Sorted by most recent first.","items":{"$ref":"#/components/schemas/MediaWithoutNesting"}}}},"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."},"pretty_url":{"type":"string","format":"uri","example":"https://example.myshopify.com","description":"Canonical URL to the store, usually one used by API endpoints."},"widgets":{"type":"array","items":{"$ref":"#/components/schemas/WidgetWithoutNesting"}},"users":{"type":"array","items":{"$ref":"#/components/schemas/UserWithoutNesting"}},"organization":{"$ref":"#/components/schemas/OrganizationWithoutNesting"},"subscription":{"$ref":"#/components/schemas/SubscriptionWithoutNesting"},"plan":{"$ref":"#/components/schemas/PlanWithoutNesting"}}},"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}}},"Order":{"type":"object","properties":{"id":{"type":"string","description":"The Fera ID of the Order.","example":"fOrd_12ab"},"external_id":{"type":"string","description":"External ID of the order where they originated from (Shopify, Wix, eCommerce platform, etc)."},"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."},"line_items":{"type":"array","items":{"$ref":"#/components/schemas/LineItem"}},"number":{"type":"integer","description":"The order number.","example":10003},"total":{"type":"number","description":"The total amount of the order.","example":10},"currency":{"type":"string","description":"The currency of the order.","example":"USD"},"total_usd":{"type":"number","description":"The total amount of the order in USD.","example":8.99},"customer_name":{"type":"string","description":"The customer full name.","example":"Michael Boot"},"customer_email":{"type":"string","description":"The customer email.","example":"michael@example.com"},"phone_number":{"type":"string","description":"The order phone number.","example":"+1234567890"},"is_test":{"type":"boolean","description":"Whether the order is a test order.","example":false},"is_cancelled":{"type":"boolean","description":"Whether the order is cancelled.","example":false},"external_created_at":{"type":"string","format":"date-time","description":"The date and time the order was created on the external platform (original source).","example":"2020-01-01T00:00:00Z"},"external_updated_at":{"type":"string","format":"date-time","description":"The date and time the order was last updated on the external platform (original source).","example":"2020-01-01T00:00:00Z"},"paid_at":{"type":"string","format":"date-time","description":"The date and time the order was paid.","example":"2020-01-01T00:00:00Z"},"fulfilled_at":{"type":"string","format":"date-time","description":"The date and time the order was fulfilled.","example":"2020-01-01T00:00:00Z"},"delivered_at":{"type":"string","format":"date-time","description":"The date and time the order was delivered.","example":"2020-01-01T00:00:00Z"},"status":{"type":"string","description":"Status token that describes the order. To change this value use the action endpoints or set the '*_at' values","enum":["draft","paid","fulfilled","delivered","cancelled"],"readOnly":true,"example":"fulfilled"},"submission_url":{"type":"string","format":"uri","description":"A verified URL where the customer can submit a review/photo/video securely for this order. 'Retrieve Order' endpoints will shorten the URL as well."},"counts":{"readOnly":true,"type":"object","description":"Cached counts related to the order. Note: It can take a few seconds for these counts to update after changes occur.","properties":{"reviews":{"type":"number","format":"integer","example":5,"description":"The total number of reviews/ratings submitted for this order (same as `rating.count`)."},"average_rating":{"type":"number","format":"float","example":4.9,"description":"Average rating across all reviews submitted for this order (same as `rating.average`)."},"media":{"type":"number","format":"integer","example":5,"description":"The total number of photos and videos submitted for this order."}}},"rating":{"readOnly":true,"type":"object","properties":{"count":{"type":"number","format":"integer","example":5,"description":"The total number of reviews/ratings submitted for this order.\n\nThis is the same as `counts.reviews`."},"average":{"type":"number","format":"float","example":4.5,"description":"Average rating across all reviews submitted for this order (same as `counts.average_rating`)."}}},"notes":{"type":"string","description":"Notes about the order. This is a free-form field that can be used to store any information you want to associate with the order.","example":"This order was placed by a VIP customer."},"tags":{"type":"array","items":{"type":"string","description":"Tags associated with the order. These can be used to filter orders to avoid request reviews for them, or send them different review requests.","example":"dont-request-review"}},"review_request_eligibility_reason":{"type":"string","readOnly":true,"nullable":true,"description":"Reason a review request was not sent or scheduled for this order, when available."},"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."},"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"}}}},"Webhook":{"type":"object","properties":{"id":{"type":"string","description":"The Fera ID of the Webhook.","example":"fWeb_12ab"},"event_name":{"type":"string","description":"Event code to subscribe to.","enum":["customer_create","customer_delete","customer_update","media_approve","media_create","media_decline","media_delete","media_update","review_approve","review_create","review_decline","review_delete","review_update"]},"url":{"type":"string","format":"uri","description":"URL to which the webhook should `POST` to when the event occurs."},"status":{"type":"string","description":"Status of the webhook.\n\n  You can refresh the status with the `/webhooks/{id}/test` endpoint.","enum":["enabled","disabled","failed","active"]},"is_enabled":{"type":"boolean","description":"Whether the webhook is enabled or not. This is also provided by the `status` attribute."},"response_code":{"type":"integer","description":"HTTP response code from the destination server for last most recent attempt that was made.","minimum":200,"maximum":599,"readOnly":true},"triggered_at":{"type":"string","format":"date-time","description":"Date and time when the webhook was last triggered. Triggering a test will also make this date/time update.","readOnly":true},"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."}}},"WidgetWithoutNesting":{"type":"object","properties":{"id":{"type":"string","description":"The Fera ID of the Widget.","example":"fWid_12ab"},"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."}},"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}}},"state":{"type":"string","description":"State of the resource. Resources are initially in the `pending_approval` state when submitted by customers via Fera.","enum":["pending_approval","pending_update","approved","declined_approval"],"example":"approved"},"external_order_id":{"type":"string","example":"12345678","description":"Related external order ID (usually the Shopify, Wix or other eCommerce platform order ID)."},"order_id":{"type":"string","example":"ford_12ab","description":"Related Fera order ID."}},"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."},"state":{"type":"string","description":"State of the resource. Resources are initially in the `pending_approval` state when submitted by customers via Fera.","enum":["pending_approval","pending_update","approved","declined_approval"],"example":"approved"},"external_order_id":{"type":"string","example":"12345678","description":"Related external order ID (usually the Shopify, Wix or other eCommerce platform order ID)."},"order_id":{"type":"string","example":"ford_12ab","description":"Related Fera order ID."}},"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 as defined in the customer's profile.\n\nIf this is not specified and the customer name is present then public API will use the store settings to generate a display name instead."},"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."},"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`."}}},"external_id":{"type":"string","example":"12345678","description":"External customer ID (usually the Wix, Shopify or other eCommerce platform customer ID).\n\n  Either `external_id` or `email` are required (both or one of them)."},"email":{"type":"string","format":"email","example":"michael.bluth@example.com","description":"Email address of the customer."},"phone_number":{"type":"string","example":"+1234567890","description":"Phone number of the customer."},"name":{"type":"string","example":"Michael G. Bluth","description":"First, last and middle name of customer."},"first_name":{"type":"string","example":"Michael","description":"First part of the full name of the customer. You can't set this value, but you can set the name attribute fully.","readOnly":true},"last_name":{"type":"string","example":"Bluth","description":"Last part of the full name of the customer. You can't set this, but you can set the name attribute fully.","readOnly":true},"generated_display_name":{"readOnly":true,"type":"string","example":"George B.","description":"Generates a display name string based on the customer's name and the store customer name display settings.\n\nOnly used if the customer is not anonymous and does not have a display name value defined."},"is_name_visible":{"type":"boolean","example":true,"description":"Should the customer name be displayed? If not, 'Anonymous' will be displayed.\n\nIf true then the public API will return `display_name` or a generated name based on the store settings if none provided."},"generated_display_location":{"readOnly":true,"type":"string","example":"Austin, TX","description":"Generates a display location string based on the customer's country, region and city while\nfactoring in the store's location (specified in the store settings).\n\nFor example, if the store is located in the US then the generated location string will omit the 'US' country code part."},"is_location_visible":{"type":"boolean","example":true,"description":"Should the customer location be displayed?\n\nIf true then the public API will return `display_location` or a generated location based on the store settings if none provided."},"country_code":{"type":"string","example":"US","description":"Country code where the customer is located.","maxLength":2},"region_name":{"type":"string","example":"Texas","description":"State, province or region name (not the code)."},"city":{"type":"string","example":"Austin","description":"City name"},"zip":{"type":"string","example":"78701","description":"Zip, postal or region code of the customer."},"is_test":{"type":"boolean","description":"Whether the customer is a test customer.","example":false},"submission_url":{"type":"string","format":"uri","description":"A verified URL where the customer can submit a review/photo/video securely. 'Retrieve Customer' endpoints will shorten the URL as well."},"counts":{"readOnly":true,"type":"object","description":"Cached counts related to the customer. **This includes unpublished/pending content counts**. Note: It can take a few seconds for these counts to update after changes occur.","properties":{"reviews":{"type":"number","format":"integer","example":5,"description":"The total number of reviews/ratings the customer has submitted (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."},"orders":{"type":"number","format":"integer","example":5,"description":"The total number of orders (or invoices) the customer has.\n\n  This only looks at orders synced to Fera (past and external orders may not be included)."},"spend":{"type":"number","format":"float","example":123.45,"description":"The total amount spent by the customer in their lifetime.\n\n  This only looks at orders synced to Fera (past and external orders may not be included)."}}},"notes":{"type":"string","description":"Notes about the customer. This is a free-form field that can be used to store any information you want to associate with the customer.","example":"This is a VIP customer."},"tags":{"type":"array","items":{"type":"string","description":"Tags associated with the customer. These can be used to exclude requesting reviews from certain customers.","example":"dont-request-review"}},"external_created_at":{"type":"string","format":"date-time","description":"The date and time the customer was created on the external platform (original source).","example":"2020-01-01T00:00:00Z"},"external_updated_at":{"type":"string","format":"date-time","description":"The date and time the customer was created on the updated platform (original source).","example":"2020-01-01T00:00:00Z"},"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."}},"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)."},"stock":{"type":"number","format":"int64","example":123,"description":"Total inventory stock available for purchase of the product (cumulative across all variants)."},"type":{"type":"string","example":"shopify","description":"The Store type where the product was synced from. If nil, then product is not bound to a specific platform."},"sku":{"type":"string","example":"RS-123","description":"SKU of the product if different than the external ID.\n\n    This will be used for [Google Shopping integration](https://help.fera.ai/en/articles/5902178-google-shopping-integration)."},"image_url":{"type":"string","format":"uri","example":"https://cdn.fera.ai/img/sunglasses.png","description":"URL to full-sized image of the product."},"in_stock":{"type":"boolean","example":true,"description":"Whether the product is in stock.","readOnly":true},"global_id":{"type":"string","example":"123ABC","description":"The global ID of the product. This is used in Google Shopping reviews data."},"upc":{"type":"string","example":"1234567890","description":"The Universal Part Code of the product. This is used in Google Shopping reviews data."},"gtin":{"type":"string","example":"ABC123","description":"The Global Trade Item Number of the product. This is used in Google Shopping reviews data."},"mpn":{"type":"string","example":"ABC123","description":"The Manufacturer Part Number of the product. This is used in Google Shopping reviews data."},"barcode":{"type":"string","example":"1234567890","description":"The barcode of the product. This is used in Google Shopping reviews data."},"brand":{"type":"string","example":"Nike","description":"The brand of the product. This is used in Google Shopping reviews data."},"status":{"type":"string","example":"published","description":"The status of the product. If blank `published` state is assumed.","enum":["draft","unpublished","hidden","disabled","deleted","archived","published","active"]},"external_created_at":{"type":"string","format":"date-time","description":"The date and time the product was created on the external platform (original source).","example":"2020-01-01T00:00:00Z"},"external_updated_at":{"type":"string","format":"date-time","description":"The date and time the product was updated on the external platform (original source).","example":"2020-01-01T00:00:00Z"},"price":{"type":"number","format":"float","example":10,"description":"Price of the product."},"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."}},"title":"Product"},"UserWithoutNesting":{"type":"object","properties":{"id":{"type":"string","description":"The Fera ID of the User.","example":"fUse_12ab"},"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."}},"title":"User"},"OrganizationWithoutNesting":{"type":"object","properties":{"id":{"type":"string","description":"The Fera ID of the Account.","example":"fAcc_12ab"},"name":{"type":"string","description":"Company or organization name for this account.","example":"Acme Inc."},"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."}},"title":"Organization"},"SubscriptionWithoutNesting":{"type":"object","properties":{"id":{"type":"string","description":"The Fera ID of the Subscription.","example":"fSub_12ab"},"monthly_price":{"type":"number","description":"Monthly price of the subscription","example":9.99},"yearly_price":{"type":"number","description":"Yearly price of the subscription","example":99.99},"interval":{"type":"string","description":"Billing interval of the subscription","example":"month","enum":["month","year"]},"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."}},"title":"Subscription"},"PlanWithoutNesting":{"type":"object","properties":{"id":{"type":"string","description":"The Fera ID of the Plan.","example":"fPla_12ab"},"name":{"type":"string","description":"Name of the subscription plan","example":"Basic"},"price":{"type":"number","description":"Price of the subscription plan. If the interval is `year` then this is the yearly\nprice. Otherwise you can assume it is the monthly price.","example":49.99,"format":"float"},"regular_price":{"type":"number","description":"Regular price of the subscription plan before any discounts are applied. Yearly vs monthly depends on `interval` attribute.","example":47.99,"format":"float"},"interval":{"type":"string","description":"Billing interval of the plan","example":"month","enum":["month","year"]},"code":{"type":"string","description":"Code of the subscription plan. This is is used to identify the plan in the API.","example":"fera-startup-9"},"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."}},"title":"Plan"},"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}}},"Address":{"type":"object","properties":{"company":{"type":"string","description":"Company name.","example":"Fera"},"name":{"type":"string","description":"Full name.","example":"John Doe"},"address1":{"type":"string","description":"Address line 1.","example":"123 Main St"},"address2":{"type":"string","description":"Address line 2.","example":"Apt. 1"},"city_name":{"type":"string","description":"City name.","example":"Los Angeles"},"region_name":{"type":"string","description":"Region name like state or province","example":"California"},"country_code":{"type":"string","description":"2 character country code.","example":"US"},"zip_code":{"type":"string","description":"Zip/postal code.","example":"90210"},"phone":{"type":"string","description":"Phone number.","example":"555-555-5555"}}},"LineItem":{"type":"object","properties":{"product_id":{"type":"string","description":"Product ID.","example":"1234"},"variant_id":{"type":"string","description":"Product variant ID.","example":"1234"},"quantity":{"type":"integer","description":"Quantity.","example":1},"name":{"type":"string","description":"Product name.","example":"Cool T-Shirt"},"total":{"type":"number","description":"Total price of the line item.","example":10},"total_usd":{"type":"number","description":"Total price of the line item in USD.","example":8.99}}}},"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":{"Secret key":{"type":"apiKey","in":"header","name":"SECRET-KEY","description":"Your store's secret API key."}}},"info":{"description":"","version":"3.23.3","title":"Customers","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=private","contact":{"name":"Fera Support Team","email":"help@fera.ai","url":"https://help.fera.ai?ref=open_api&user_type=developer"}},"tags":[{"name":"Customers","description":"People who have reviewed the store, or who might be asked for a review.\nLook a customer up by Fera ID (`fcus_…`) or by their ID on your eCommerce platform, list their reviews and media,\nand create, update or delete customers.\n\nCustomers that are either existing reviewers or future potential reviewers.\n\nThis model supports access by external ID or Fera ID. That is, you can use `/customers/1234` assuming the customer's ID\nin your external system (usually Shopify, Wix or the eCommerce platform) is `1234`."}],"paths":{"/customers":{"get":{"summary":"List Customers","description":"Retrieve a list of customers.","operationId":"list-customers","security":[{"Secret key":[]}],"tags":["Customers"],"parameters":[{"$ref":"#/components/parameters/pageRequestQueryParam"},{"$ref":"#/components/parameters/perPageRequestQueryParam"},{"$ref":"#/components/parameters/limitRequestQueryParam"},{"$ref":"#/components/parameters/offsetRequestQueryParam"},{"description":"External customer ID (usually the Wix, Shopify or other eCommerce platform customer ID).\n\nExample: `12345678`","name":"customer.external_id","in":"query","schema":{"type":"string"}},{"schema":{"format":"email","type":"string"},"description":"Email address of the customer.\n\nExample: `michael.bluth@example.com`","name":"email","in":"query"},{"description":"Search for a customer by email, external ID or Fera ID.","name":"search","in":"query","schema":{"type":"string"}},{"description":"Search for a customer by the number of reviews they have submitted.","name":"counts.reviews","in":"query","schema":{"type":"string"}},{"description":"Search for customers by rating.\n\nExample: `2;4`","name":"rating","in":"query","schema":{"type":"string"}},{"description":"Search for a customer by the number of orders they have placed.","name":"counts.orders","in":"query","schema":{"type":"string"}},{"description":"Search for a customer by the number of media(photos or videos) they have submitted.","name":"counts.media","in":"query","schema":{"type":"string"}},{"description":"Search for customers within a date range using the external_created_at date, with fallback to the internal created_at date.\n\nExample: `2023-03-01,2023-03-15`","name":"external_created_at","in":"query","schema":{"type":"string"}},{"description":"Filter by the import that created the customers.\n\nExample: `123`","name":"import_id","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: created_at:desc would get you created_at in descending order.","schema":{"type":"string","enum":["created_at","external_created_at","rating.average","rating.count","counts.media","counts.orders","counts.spend"]}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Customer"}},"meta":{"$ref":"#/components/schemas/listMetaParam"}}}}}},"400":{"$ref":"#/components/responses/BadRequestError"}}},"post":{"summary":"Create Customer","description":"Create new customer.","operationId":"create-customer","security":[{"Secret key":[]}],"tags":["Customers"],"responses":{"201":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"}}}},"422":{"$ref":"#/components/responses/ValidationError"}},"parameters":[],"requestBody":{"description":"Object creation attributes.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"external_id":{},"email":{"type":"string","format":"email","example":"michael.bluth@example.com","description":"Email address of the customer."},"name":{"type":"string","example":"Michael G. Bluth","description":"First, last and middle name of customer."},"display_name":{"type":"string","example":"George B.","description":"Public-safe name to display as defined in the customer's profile.\n\nIf this is not specified and the customer name is present then public API will use the store settings to generate a display name instead."},"country_code":{"type":"string","example":"US","description":"Country code where the customer is located.","maxLength":2},"region_name":{"type":"string","example":"Texas","description":"State, province or region name (not the code)."},"zip":{"type":"string","example":"78701","description":"Zip, postal or region code of the customer."},"phone_number":{"type":"string","example":"+1234567890","description":"Phone number of the customer."},"display_location":{"type":"string","example":"Austin, TX","description":"Public-safe location to display on customer profile."},"is_anonymous":{"type":"boolean","example":false,"description":"If true, the customer's display name will be the word 'Anonymous'."},"is_name_visible":{"type":"boolean","example":true,"description":"Should the customer name be displayed? If not, 'Anonymous' will be displayed.\n\nIf true then the public API will return `display_name` or a generated name based on the store settings if none provided."},"is_location_visible":{"type":"boolean","example":true,"description":"Should the customer location be displayed?\n\nIf true then the public API will return `display_location` or a generated location based on the store settings if none provided."},"is_test":{"type":"boolean","description":"Whether the customer is a test customer.","example":false},"avatar":{"description":"Photo to use as the avatar image. This will replace the existing file if one exists. This can also be specified as a remote URL and Fera will download that file and store it on it's CDN. To upload a file, use multi-part form data with the 'avatar' key and the file contents (JSON POST can't upload files this way).","type":"string","format":"binary"},"avatar_url":{"type":"string","format":"uri","example":"https://cdn.fera.ai/img/shoppers/placeholder.png","description":"Public-safe customer display picture (avatar) URL."}},"required":["external_id","email"]}}}},"multipart/form-data":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"external_id":{},"email":{"type":"string","format":"email","example":"michael.bluth@example.com","description":"Email address of the customer."},"name":{"type":"string","example":"Michael G. Bluth","description":"First, last and middle name of customer."},"display_name":{"type":"string","example":"George B.","description":"Public-safe name to display as defined in the customer's profile.\n\nIf this is not specified and the customer name is present then public API will use the store settings to generate a display name instead."},"country_code":{"type":"string","example":"US","description":"Country code where the customer is located.","maxLength":2},"region_name":{"type":"string","example":"Texas","description":"State, province or region name (not the code)."},"zip":{"type":"string","example":"78701","description":"Zip, postal or region code of the customer."},"phone_number":{"type":"string","example":"+1234567890","description":"Phone number of the customer."},"display_location":{"type":"string","example":"Austin, TX","description":"Public-safe location to display on customer profile."},"is_anonymous":{"type":"boolean","example":false,"description":"If true, the customer's display name will be the word 'Anonymous'."},"is_name_visible":{"type":"boolean","example":true,"description":"Should the customer name be displayed? If not, 'Anonymous' will be displayed.\n\nIf true then the public API will return `display_name` or a generated name based on the store settings if none provided."},"is_location_visible":{"type":"boolean","example":true,"description":"Should the customer location be displayed?\n\nIf true then the public API will return `display_location` or a generated location based on the store settings if none provided."},"is_test":{"type":"boolean","description":"Whether the customer is a test customer.","example":false},"avatar":{"description":"Photo to use as the avatar image. This will replace the existing file if one exists. This can also be specified as a remote URL and Fera will download that file and store it on it's CDN. To upload a file, use multi-part form data with the 'avatar' key and the file contents (JSON POST can't upload files this way).","type":"string","format":"binary"},"avatar_url":{"type":"string","format":"uri","example":"https://cdn.fera.ai/img/shoppers/placeholder.png","description":"Public-safe customer display picture (avatar) URL."}},"required":["external_id","email"]}}}}}}}},"/customers/{id}":{"get":{"summary":"Retrieve Customer","description":"Retrieve data for a specific customer.","operationId":"retrieve-customer","security":[{"Secret key":[]}],"tags":["Customers"],"parameters":[{"name":"id","in":"path","description":"Fera  or external ID of the customer","required":true,"example":"fcus_12ab","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"}}}},"404":{"$ref":"#/components/responses/NotFoundError"}}},"put":{"summary":"Update Customer","description":"Update data for a specific customer.","operationId":"update-customer","security":[{"Secret key":[]}],"tags":["Customers"],"parameters":[{"name":"id","in":"path","description":"ID of the customer you want to update. External ID is also accepted here","required":true,"example":"fcus_12ab","schema":{"type":"string"}}],"responses":{"202":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"}}}},"404":{"$ref":"#/components/responses/NotFoundError"},"422":{"$ref":"#/components/responses/ValidationError"}},"requestBody":{"description":"Object creation attributes.","content":{"application/json":{"schema":{"type":"object","properties":{"external_id":{},"email":{"type":"string","format":"email","example":"michael.bluth@example.com","description":"Email address of the customer."},"name":{"type":"string","example":"Michael G. Bluth","description":"First, last and middle name of customer."},"display_name":{"type":"string","example":"George B.","description":"Public-safe name to display as defined in the customer's profile.\n\nIf this is not specified and the customer name is present then public API will use the store settings to generate a display name instead."},"country_code":{"type":"string","example":"US","description":"Country code where the customer is located.","maxLength":2},"region_name":{"type":"string","example":"Texas","description":"State, province or region name (not the code)."},"zip":{"type":"string","example":"78701","description":"Zip, postal or region code of the customer."},"phone_number":{"type":"string","example":"+1234567890","description":"Phone number of the customer."},"display_location":{"type":"string","example":"Austin, TX","description":"Public-safe location to display on customer profile."},"is_anonymous":{"type":"boolean","example":false,"description":"If true, the customer's display name will be the word 'Anonymous'."},"is_name_visible":{"type":"boolean","example":true,"description":"Should the customer name be displayed? If not, 'Anonymous' will be displayed.\n\nIf true then the public API will return `display_name` or a generated name based on the store settings if none provided."},"is_location_visible":{"type":"boolean","example":true,"description":"Should the customer location be displayed?\n\nIf true then the public API will return `display_location` or a generated location based on the store settings if none provided."},"is_test":{"type":"boolean","description":"Whether the customer is a test customer.","example":false},"avatar":{"description":"Photo to use as the avatar image. This will replace the existing file if one exists. This can also be specified as a remote URL and Fera will download that file and store it on it's CDN. To upload a file, use multi-part form data with the 'avatar' key and the file contents (JSON POST can't upload files this way).","type":"string","format":"binary"},"avatar_url":{"type":"string","format":"uri","example":"https://cdn.fera.ai/img/shoppers/placeholder.png","description":"Public-safe customer display picture (avatar) URL."}},"required":["external_id","email"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"external_id":{},"email":{"type":"string","format":"email","example":"michael.bluth@example.com","description":"Email address of the customer."},"name":{"type":"string","example":"Michael G. Bluth","description":"First, last and middle name of customer."},"display_name":{"type":"string","example":"George B.","description":"Public-safe name to display as defined in the customer's profile.\n\nIf this is not specified and the customer name is present then public API will use the store settings to generate a display name instead."},"country_code":{"type":"string","example":"US","description":"Country code where the customer is located.","maxLength":2},"region_name":{"type":"string","example":"Texas","description":"State, province or region name (not the code)."},"zip":{"type":"string","example":"78701","description":"Zip, postal or region code of the customer."},"phone_number":{"type":"string","example":"+1234567890","description":"Phone number of the customer."},"display_location":{"type":"string","example":"Austin, TX","description":"Public-safe location to display on customer profile."},"is_anonymous":{"type":"boolean","example":false,"description":"If true, the customer's display name will be the word 'Anonymous'."},"is_name_visible":{"type":"boolean","example":true,"description":"Should the customer name be displayed? If not, 'Anonymous' will be displayed.\n\nIf true then the public API will return `display_name` or a generated name based on the store settings if none provided."},"is_location_visible":{"type":"boolean","example":true,"description":"Should the customer location be displayed?\n\nIf true then the public API will return `display_location` or a generated location based on the store settings if none provided."},"is_test":{"type":"boolean","description":"Whether the customer is a test customer.","example":false},"avatar":{"description":"Photo to use as the avatar image. This will replace the existing file if one exists. This can also be specified as a remote URL and Fera will download that file and store it on it's CDN. To upload a file, use multi-part form data with the 'avatar' key and the file contents (JSON POST can't upload files this way).","type":"string","format":"binary"},"avatar_url":{"type":"string","format":"uri","example":"https://cdn.fera.ai/img/shoppers/placeholder.png","description":"Public-safe customer display picture (avatar) URL."}},"required":["external_id","email"]}}}}},"delete":{"summary":"Delete Customer","description":"Delete specific customer.","operationId":"delete-customer","security":[{"Secret key":[]}],"tags":["Customers"],"parameters":[{"name":"id","in":"path","description":"ID of the customer you want to delete. External ID is also accepted here","required":true,"example":"fcus_12ab","schema":{"type":"string"}}],"responses":{"204":{"description":"Successful response"},"404":{"$ref":"#/components/responses/NotFoundError"},"405":{"$ref":"#/components/responses/MethodNotAllowedError"}}}},"/customers/{id}/reviews":{"get":{"summary":"List Customer Reviews","description":"Retrieve a list of reviews that belong to a customer, if any.","operationId":"list-customer-reviews","security":[{"Secret key":[]}],"tags":["Customers"],"parameters":[{"name":"id","in":"path","description":"Fera  or external ID of the customer","required":true,"example":"fcus_12ab","schema":{"type":"string"}},{"$ref":"#/components/parameters/pageRequestQueryParam"},{"$ref":"#/components/parameters/perPageRequestQueryParam"},{"$ref":"#/components/parameters/limitRequestQueryParam"},{"$ref":"#/components/parameters/offsetRequestQueryParam"},{"description":"Filter by Fera product ID or external product ID.\n\nExample: `fpro_123abc`","name":"product.id","in":"query","schema":{"type":"string"}},{"in":"query","description":"Filter by multiple Fera product IDs or external product IDs. Comma-separated list or array of fields accepted.\n\nExample: `fpro_1abc,fpro_2def`","name":"product.ids","schema":{"type":"string"}},{"description":"Exclude a Fera product ID or external product ID. Product groups are also excluded.\n\nExample: `fpro_123abc`","name":"exclude_product_id","in":"query","schema":{"type":"string"}},{"description":"External customer ID (usually the Wix, Shopify or other eCommerce platform customer ID).\n\nExample: `12345678`","name":"customer.external_id","in":"query","schema":{"type":"string"}},{"in":"query","description":"Filter by Fera customer ID or external customer ID.\n\nExample: `fcus_12ab`","schema":{"type":"string"},"name":"customer_id"},{"description":"Filter by Fera order ID or external order ID.\n\nExample: `ford_123`","name":"order.id","in":"query","schema":{"type":"string"}},{"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"},{"allowEmptyValue":true,"in":"query","description":"Only show content submitted by verified sources (or unverified sources).","schema":{"type":"boolean"},"name":"verified"},{"in":"query","description":"State of the resource. Resources are initially in the `pending_approval` state when submitted by customers from the storefront.","schema":{"type":"string","enum":["pending_approval","pending_update","approved","declined_approval","pending"]},"name":"state"},{"in":"query","description":"Source from where reviews can be added. Resources are when submitted by customers from the storefront,\nimported from external review app or using csv import, manual import.\n\nExample: `content_submission`","schema":{"type":"string","enum":["content_submission","manual_entry","csv_import"]},"name":"source"},{"in":"query","description":"Review Channel from where reviews are synced. e.g. amazon, facebook, trustpilot, etc.","schema":{"type":"string","enum":["facebook","amazon","trustpilot","google"]},"name":"channel_code"},{"description":"Search by any of the following columns: `id`, `product.id`, `product.external_id`, `product.sku`,\n`customer.id`, `customer.external_id`, `customer.email`, `customer.name`, `media[*].id`, etc","name":"search","in":"query","schema":{"type":"string"}},{"description":"Search for customer reviews by rating.\n\nExample: `2;4`","name":"rating","in":"query","schema":{"type":"string"}},{"description":"Only show reviews with any textual content (summary or body).\n\nExample: `true`","name":"only_with_content","in":"query","schema":{"type":"string"}},{"description":"Filter by customer email","schema":{"format":"email","type":"string"},"name":"customer.email","in":"query"},{"description":"Search for a customer by the number of media(photos or videos) they have submitted.","name":"counts.media","in":"query","schema":{"type":"string"}},{"description":"Search for customer reviews within a date range using the created_at date.\n\nExample: `2023-03-01,2023-03-15`","name":"date_created","in":"query","schema":{"type":"string"}},{"description":"Filter by reviews that have replies (or do not have replies).","name":"store_reply","in":"query","schema":{"type":"string"}},{"description":"Filter by the import that created the reviews.\n\nExample: `123`","name":"import_id","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: created_at:desc would get you created_at in descending order.","schema":{"type":"string","enum":["created_at"]}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ReviewWithoutNesting"}},"meta":{"$ref":"#/components/schemas/listMetaParam"}}}}}},"404":{"$ref":"#/components/responses/NotFoundError"}}}},"/customers/{id}/media":{"get":{"summary":"List Customer Photos & Videos","description":"Retrieve a list of media that belong to a customer, if any.","operationId":"list-customer-media","security":[{"Secret key":[]}],"tags":["Customers"],"parameters":[{"name":"id","in":"path","description":"Fera  or external ID of the customer","required":true,"example":"fcus_12ab","schema":{"type":"string"}},{"$ref":"#/components/parameters/pageRequestQueryParam"},{"$ref":"#/components/parameters/perPageRequestQueryParam"},{"$ref":"#/components/parameters/limitRequestQueryParam"},{"$ref":"#/components/parameters/offsetRequestQueryParam"},{"description":"Filter by Fera product ID or external product ID.\n\nExample: `fpro_123abc`","name":"product.id","in":"query","schema":{"type":"string"}},{"in":"query","description":"Filter by multiple Fera product IDs or external product IDs. Comma-separated list or array of fields accepted.\n\nExample: `fpro_1abc,fpro_2def`","name":"product.ids","schema":{"type":"string"}},{"description":"Exclude a Fera product ID or external product ID. Product groups are also excluded.\n\nExample: `fpro_123abc`","name":"exclude_product_id","in":"query","schema":{"type":"string"}},{"description":"External customer ID (usually the Wix, Shopify or other eCommerce platform customer ID).\n\nExample: `12345678`","name":"customer.external_id","in":"query","schema":{"type":"string"}},{"in":"query","description":"Filter by Fera customer ID or external customer ID.\n\nExample: `fcus_12ab`","schema":{"type":"string"},"name":"customer_id"},{"description":"Filter by Fera order ID or external order ID.\n\nExample: `ford_123`","name":"order.id","in":"query","schema":{"type":"string"}},{"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"},{"allowEmptyValue":true,"in":"query","description":"Only show content submitted by verified sources (or unverified sources).","schema":{"type":"boolean"},"name":"verified"},{"in":"query","description":"State of the resource. Resources are initially in the `pending_approval` state when submitted by customers from the storefront.","schema":{"type":"string","enum":["pending_approval","pending_update","approved","declined_approval","pending"]},"name":"state"},{"description":"Type of media: `photo` or `video`.\n\n  Can also be used to filter the subject at the same time. For example: `product_photo`.","name":"type","in":"query","schema":{"type":"string"}},{"description":"Review that the media is a part of (submitted along with).\n\nExample: `frev_123abc`","name":"review.id","in":"query","schema":{"type":"string"}},{"description":"Filter by the import that created the media.\n\nExample: `123`","name":"import_id","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: created_at:desc would get you created_at in descending order.","schema":{"type":"string","enum":["created_at"]}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MediaWithoutNesting"}},"meta":{"$ref":"#/components/schemas/listMetaParam"}}}}}},"404":{"$ref":"#/components/responses/NotFoundError"}}}}}}