Skip to content
On this page

getProducts ​

Definition ​

Get default amount of products

Signature ​

ts
export async function getProducts(
  criteria?: ShopwareSearchParams,
  contextInstance: ShopwareApiInstance = defaultInstance,
) 

Parameters ​

NameTypeDescription
criteria
ShopwareSearchParams
search criteria for products
contextInstance
ShopwareApiInstance
instance of the api client (by default it's an Axios instance)

Usage example ​

WARNING

Example is generated automatically. Sometimes it's required to be adjusted to your needs.

Open in StackBlitz

getProducts has loaded