Fdk Products Api PageNo Attribute Not Working

Hi, I was trying out the theme based fdk client (this.$apiSDK) when I found out that getProducts api do not properly use PageNo attributes. Ideally it should return different pages, but it is returning pageNo : 1, every time. For double checking, I also checked getCollections api where it is working fine. Attaching Screenshot and code for clarity.


        this.$apiSDK.catalog.getProducts({pageSize : 5, pageNo : 1}).then((resp) => {
            console.log('products with pageSize:5, pageNo:1, ',resp.items.map(it => it.slug));
        });

        this.$apiSDK.catalog.getProducts({pageSize : 5, pageNo : 2}).then((resp) => {
            console.log('products with pageSize:5, pageNo:2, ',resp.items.map(it => it.slug));
        });

        this.$apiSDK.catalog.getProducts({pageSize : 5, pageNo : 3}).then((resp) => {
            console.log('products with pageSize:5, pageNo:3, ',resp.items.map(it => it.slug));
        });

        this.$apiSDK.catalog.getCollections({pageSize : 5, pageNo : 1}).then((resp) => {
            console.log('collections with pageSize:5, pageNo:1, ',resp.items.map(it => it.slug));
        });

        this.$apiSDK.catalog.getCollections({pageSize : 5, pageNo : 2}).then((resp) => {
            console.log('collections with pageSize:5, pageNo:2, ',resp.items.map(it => it.slug));
        });

Hi @aakash140799_1

Can you try with passing 1 or more parameters to getProducts SDK method?

You can refer : Get all the products | Fynd Partners Help Center

It seems that getCollections method is working. For more information about getCollections SDK mehod
You can refer : List all the collections | Fynd Partners Help Center

After using the pageType : ‘number’ attribute, it is working fine.