This documentation provides a reference to the sdk.store.product
set of methods used to send requests to Medusa's Store API routes.
This method retrieves a list of products. It sends a request to the List Products API route.
Related guides:
To retrieve the list of products:
To configure the pagination, pass the limit
and offset
query parameters.
For example, to retrieve only 10 items and skip 10 items:
Using the fields
query parameter, you can specify the fields and relations to retrieve
in each product:
Learn more about the fields
property in the API reference.
Promise
Promise<StoreProductListResponse>This method is used to retrieve a product by its ID. It sends a request to the Get Product API route.
Related guides:
To retrieve a product by its ID:
To specify the fields and relations to retrieve:
Learn more about the fields
property in the API reference.
id
stringPromise
Promise<StoreProductResponse>