Endpoints
Common endpoints for accessing data through the Storefront REST API
Introduction
All endpoints are relative to our base URL:
Substitutions Reference
Throughout this article you will see substitutions enclosed in {}
for example {okendo_user_id}
. Replace these (including the curly brackets) with the corresponding value:
okendo_user_id
: Your Okendo User ID. You can get this information from the Okendo section in the integration settings of the Okendo app.
product_id
: A Shopify Product ID.
group_id
: An Okendo Group ID or a Shopify Collection ID.
List Reviews
Retrieve a list of published reviews relating to a specific resource.
By Product
By Store
By Group
Query Params
limit
: Integer between 1 and 25. Default 25.
orderBy
: One of: date desc
, date asc
, rating desc
, rating asc
, helpful desc
, helpful asc
, has_media desc
. Default: date desc
.
locale
: One of the locale query param values below (e.g. locale=es
):
Using the locale param requires translation settings to be configured in Okendo Admin.
Review Translations are currently ONLY supported for reviews who's languages were automatically detected and the time of creation/import.
See: https://support.okendo.io/en/articles/9684374-enabling-review-translation-for-multiple-languages
for configuration before use. The translations settings for your review widgets should be configured to "On Load" in your Okendo settings.
locale query param | Language |
---|---|
| Chinese (Traditional) |
| Danish |
| Dutch |
| English |
| French |
| German - Formal |
| German - Informal |
| Indonesian |
| Italian |
| Japanese |
| Korean |
| Polish |
| Portuguese |
| Russian |
| Spanish |
| Swedish |
| Thai |
| Vietnamese |
Example
List the most recent 10 reviews the store has received:
Get Review Aggregate
Get an aggregate of all the data related to published reviews for a specific resource.
By Product
By Store
By Group
List Review Media
Retrieve a list of published media attached to reviews relating to a specific resource. Ordered by most recent first.
By Product
By Store
By Group
Query Params
limit
: Integer between 1 and 25. Default 25.
List Questions & Answers
Retrieve a list of published questions (and corresponding answers) relating to a specific resource. Ordered by most recent first.
By Product
By Store
By Group
Query Params
limit
: Integer between 1 and 25. Default 25.
Last updated