This article presents possible use cases and corresponding sample flows that you can support. It provides a useful starting point as you plan your implementation.
You can retrieve and display the best-selling items from a Wix Stores catalog to site visitors. To do this, follow this flow:
Call List Available Algorithms to get the algorithmId of the "Best sellers" algorithm.
Call Get Recommendation with the algorithmId from step 1. Use the Wix Stores app ID (215238eb-22a5-4c36-9e7b-e7c08025e04e) in the algorithm object.
For each item in the return value from the Get Recommendation method, call Get Product in the Wix Stores Catalog API using the recommended item’s catalogItemId.
Use the product information in the return value and display the best-selling items on the site.