getProductCatalogList

Lấy danh sách sản phẩm trong danh mục (dành cho zBusiness)

api.getProductCatalogList(payload)

Parameters

  • payload GetProductCatalogListPayload

Return

Promise<GetProductCatalogListResponse>

Types

export type GetProductCatalogListPayload = {
    catalogId: string;
    /**
     * Mặc định 100
     */
    limit?: number;
    versionCatalog?: number;
    lastProductId?: string;
    /**
     * Mặc định 0
     */
    page?: number;
};

export type GetProductCatalogListResponse = {
    items: ProductCatalogItem[];
    version: number;
    has_more: number;
};

Examples

api.getProductCatalogList({ catalogId: "catalogId1" })
    .then(console.log)
    .catch(console.error);

Last updated