This endpoint is used for fetching product lists from a Merchant Store. The endpoint accepts query parameters that are validated to ensure they are of the correct data type. If the validation succeeds, a GET request is made to the API endpoint and the response is returned. If the validation fails, an error message is returned via a Promise.The fetch endpoint has been implemented in the Product List Web Component, and It's all setup to save developer's time and effort. Payload#
Response#
Usage#
To perform the action of retrieving a list of products, the developer may call the method fetch() as follows. For this method we define the query parameters as an object with a source property of categories
and a source_value property of an array [1, 2, 3]
. We then call the fetch()
method of the salla.product object and pass in the query parameters as an argument.Events#
This endpoint may trigger two events, the onProductListFetchSucceeded and onProductListFetchFailed events.onProductListFetchSucceeded#
This event is triggered when the action of retrieving a list of products is done without having any errors coming back from the backend.onProductListFetchFailed#
This event is triggered when the action of retrieving a list of products is not completed and an error has occurred. 
扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升

扫码加入交流群Modified at 2025-02-20 07:53:20