Home > @poq/sdk-sfcc > BatchProductsClient > getProductsByIDs
Signature:
getProductsByIDs(ids: string[], expand?: string[], inventoryIds?: string[], currency?: string, locale?: string, allImages?: boolean, options?: Partial<Omit<AxiosRequestConfig<any>, 'headers'> & {
authInfo?: AuthInfo | undefined;
query: Record<string, string | string[] | undefined>;
headers: IncomingHttpHeaders & Record<string, string>;
batchSize?: number;
}>): Promise<PoqResponse<ProductResult>>;
| Parameter | Type | Description |
|---|---|---|
| ids | string[] | |
| expand | string[] | (Optional) |
| inventoryIds | string[] | (Optional) |
| currency | string | (Optional) |
| locale | string | (Optional) |
| allImages | boolean | (Optional) |
| options | Partial<Omit<AxiosRequestConfig<any>, ‘headers’> & { authInfo?: AuthInfo | undefined; query: Record<string, string | string[] | undefined>; headers: IncomingHttpHeaders & Record<string, string>; batchSize?: number; }> | (Optional) |
Returns:
Promise<PoqResponse<ProductResult>>