getAllWishlists
Gets all customers wishlists.
It receives data from the getAllWishlists endpoint exposed by the BigCommerce API
Signature
declare function getAllWishlists(
context: BigcommerceIntegrationContext,
query?: GetAllWishlistQuery
): Promise<WishlistCollectionResponse>;Parameters
| Name | Required | Type | Description |
|---|---|---|---|
context | Required | BigcommerceIntegrationContext | |
query | Optional | GetAllWishlistQuery |
Returns
Returns a response containing the object with the created wishlist details.
Referenced Types
Examples
Getting customers wishlists
import { sdk } from '~/sdk.config.ts';
const getAllWishlistsResponse = await sdk.bigcommerce.getAllWishlists();