Available APIs
These APIs are called from your store’s pages. Each favorite type has the following APIs.- Products: get the favorite count and status, get a customer’s favorites list, add and remove favorites
- Favorite ranking: get the most-favorited products, in order
- Brands and stores: get the brand or store list (with favorite counts and status), get a customer’s favorites list, add and remove favorites, get the brand linked to a product
- Collections, pages, and articles: for each, get the favorite count and status, get a customer’s favorites list, add and remove favorites
- Favorite time-limited sales: get the products in a customer’s favorites that are in a running sale, grouped by campaign
Common behavior
- Calls are made from your store’s domain through the app proxy (App Proxy).
- Responses are JSON. APIs that return lists let you set the number of items and page through them.
- Adding and removing favorites is accepted only for the customer who is signed in to the store.