Products
Methods for handling products.
productSearch v1.8.0 read product search Types
Search and retrieve products.
This function supports both format_version: '2020-12'
and format_version: '2022-06'
. It will support different query params and return different formatted responses based on which format_version
you pass in.
Using format_version: '2020-12'
will limit your query params to ProductSearchParams_2020_12 and your response will be ProductSearchResponse_2020_12;
Using format_version: '2022-06'
will limit your query params to ProductSearchParams_2022_06 and your response will be ProductSearchResponse_2022_06;
- ESM
- UMD
import { productSearch } from '@rechargeapps/storefront-client';
await productSearch(session, {
limit: 25,
format_version: '2022-06',
});
await recharge.product.productSearch(session, {
limit: 25,
format_version: '2022-06',
});