ProductStats store the statistic records for the 'Customers who viewed this product bought' widget

GET
Get product stats record by conditions

_cnd[limit]
array 
Sets the offset (first item) and the limit (second item)
_cnd[orderBy]
array 
Sets sorting order field
default Success <XLite\Module\CDev\ProductAdvisor\Model\ProductStats>[] array
Sample response
[{"stat_id":21,"viewed_product":{"featuredProducts":"<XLite\\Module\\CDev\\FeaturedProducts\\Model\\FeaturedProduct>[] array","attachments":"<XLite\\Module\\CDev\\FileAttachments\\Model\\Product\\Attachment>[] array","ogMeta":"string","useCustomOG":"boolean","marketPrice":"string","pinCodesEnabled":"boolean","autoPinCodes":"boolean","pinCodes":"<XLite\\Module\\CDev\\PINCodes\\Model\\PinCode>[] array","views_stats":"<XLite\\Module\\CDev\\ProductAdvisor\\Model\\ProductStats>[] array","purchase_stats":"<XLite\\Module\\CDev\\ProductAdvisor\\Model\\ProductStats>[] array","participateSale":"boolean","discountType":"string","salePriceValue":"string","xcPendingBulkEdit":"boolean","tabs":"<XLite\\Module\\XC\\CustomProductTabs\\Model\\Product\\Tab>[] array","isCustomerAttachmentsAvailable":"boolean","isCustomerAttachmentsRequired":"boolean","facebookMarketingEnabled":"boolean","freeShip":"boolean","freightFixedFee":"string","useAsSegmentCondition":"boolean","exported_pb":"boolean","gpc":"string","gtin":"string","hs_code":"string","mpn":"string","model_number":"string","stock_number":"string","hazmat":"boolean","chemicals":"boolean","pesticide":"boolean","aerosol":"boolean","rppc":"boolean","non_spillable":"boolean","fuel":"boolean","ormd":"boolean","battery":"string","product_condition":"string","country_of_origin":"<XLite\\Model\\Country>","restrictions":"<XLite\\Module\\XC\\PitneyBowes\\Model\\ProductRestriction>[] array","tags":"<XLite\\Module\\XC\\ProductTags\\Model\\Tag>[] array","variants":"<XLite\\Module\\XC\\ProductVariants\\Model\\ProductVariant>[] array","variantsAttributes":"<XLite\\Model\\Attribute>[] array","wholesalePrices":"<XLite\\Module\\CDev\\Wholesale\\Model\\WholesalePrice>[] array","reviews":"<XLite\\Module\\XC\\Reviews\\Model\\Review>[] array","upsellingProducts":"<XLite\\Module\\XC\\Upselling\\Model\\UpsellingProduct>[] array","upsellingParentProducts":"<XLite\\Module\\XC\\Upselling\\Model\\UpsellingProduct>[] array","product_id":"integer","price":"string","sku":"string","enabled":"boolean","weight":"string","useSeparateBox":"boolean","boxWidth":"string","boxLength":"string","boxHeight":"string","itemsPerBox":"integer","free_shipping":"boolean","taxable":"boolean","javascript":"string","arrivalDate":"integer","date":"integer","updateDate":"integer","needProcess":"boolean","categoryProducts":"<XLite\\Model\\CategoryProducts>[] array","order_items":"<XLite\\Model\\OrderItem>[] array","images":"<XLite\\Model\\Image\\Product\\Image>[] array","inventoryEnabled":"boolean","amount":"integer","lowLimitEnabledCustomer":"boolean","lowLimitEnabled":"boolean","lowLimitAmount":"integer","productClass":"<XLite\\Model\\ProductClass>","taxClass":"<XLite\\Model\\TaxClass>","attributes":"<XLite\\Model\\Attribute>[] array","attributeValueC":"<XLite\\Model\\AttributeValue\\AttributeValueCheckbox>[] array","attributeValueT":"<XLite\\Model\\AttributeValue\\AttributeValueText>[] array","attributeValueS":"<XLite\\Model\\AttributeValue\\AttributeValueSelect>[] array","attrSepTab":"boolean","quickData":"<XLite\\Model\\QuickData>[] array","memberships":"<XLite\\Model\\Membership>[] array","cleanURLs":"<XLite\\Model\\CleanURL>[] array","metaDescType":"string","sales":"integer","xcPendingExport":"boolean"},"bought_product":{"featuredProducts":"<XLite\\Module\\CDev\\FeaturedProducts\\Model\\FeaturedProduct>[] array","attachments":"<XLite\\Module\\CDev\\FileAttachments\\Model\\Product\\Attachment>[] array","ogMeta":"string","useCustomOG":"boolean","marketPrice":"string","pinCodesEnabled":"boolean","autoPinCodes":"boolean","pinCodes":"<XLite\\Module\\CDev\\PINCodes\\Model\\PinCode>[] array","views_stats":"<XLite\\Module\\CDev\\ProductAdvisor\\Model\\ProductStats>[] array","purchase_stats":"<XLite\\Module\\CDev\\ProductAdvisor\\Model\\ProductStats>[] array","participateSale":"boolean","discountType":"string","salePriceValue":"string","xcPendingBulkEdit":"boolean","tabs":"<XLite\\Module\\XC\\CustomProductTabs\\Model\\Product\\Tab>[] array","isCustomerAttachmentsAvailable":"boolean","isCustomerAttachmentsRequired":"boolean","facebookMarketingEnabled":"boolean","freeShip":"boolean","freightFixedFee":"string","useAsSegmentCondition":"boolean","exported_pb":"boolean","gpc":"string","gtin":"string","hs_code":"string","mpn":"string","model_number":"string","stock_number":"string","hazmat":"boolean","chemicals":"boolean","pesticide":"boolean","aerosol":"boolean","rppc":"boolean","non_spillable":"boolean","fuel":"boolean","ormd":"boolean","battery":"string","product_condition":"string","country_of_origin":"<XLite\\Model\\Country>","restrictions":"<XLite\\Module\\XC\\PitneyBowes\\Model\\ProductRestriction>[] array","tags":"<XLite\\Module\\XC\\ProductTags\\Model\\Tag>[] array","variants":"<XLite\\Module\\XC\\ProductVariants\\Model\\ProductVariant>[] array","variantsAttributes":"<XLite\\Model\\Attribute>[] array","wholesalePrices":"<XLite\\Module\\CDev\\Wholesale\\Model\\WholesalePrice>[] array","reviews":"<XLite\\Module\\XC\\Reviews\\Model\\Review>[] array","upsellingProducts":"<XLite\\Module\\XC\\Upselling\\Model\\UpsellingProduct>[] array","upsellingParentProducts":"<XLite\\Module\\XC\\Upselling\\Model\\UpsellingProduct>[] array","product_id":"integer","price":"string","sku":"string","enabled":"boolean","weight":"string","useSeparateBox":"boolean","boxWidth":"string","boxLength":"string","boxHeight":"string","itemsPerBox":"integer","free_shipping":"boolean","taxable":"boolean","javascript":"string","arrivalDate":"integer","date":"integer","updateDate":"integer","needProcess":"boolean","categoryProducts":"<XLite\\Model\\CategoryProducts>[] array","order_items":"<XLite\\Model\\OrderItem>[] array","images":"<XLite\\Model\\Image\\Product\\Image>[] array","inventoryEnabled":"boolean","amount":"integer","lowLimitEnabledCustomer":"boolean","lowLimitEnabled":"boolean","lowLimitAmount":"integer","productClass":"<XLite\\Model\\ProductClass>","taxClass":"<XLite\\Model\\TaxClass>","attributes":"<XLite\\Model\\Attribute>[] array","attributeValueC":"<XLite\\Model\\AttributeValue\\AttributeValueCheckbox>[] array","attributeValueT":"<XLite\\Model\\AttributeValue\\AttributeValueText>[] array","attributeValueS":"<XLite\\Model\\AttributeValue\\AttributeValueSelect>[] array","attrSepTab":"boolean","quickData":"<XLite\\Model\\QuickData>[] array","memberships":"<XLite\\Model\\Membership>[] array","cleanURLs":"<XLite\\Model\\CleanURL>[] array","metaDescType":"string","sales":"integer","xcPendingExport":"boolean"},"count":39}]

GET
Retrieve product stats record by id

id
integer Required
Id value of the ProductStats object
default Success <XLite\Module\CDev\ProductAdvisor\Model\ProductStats>
Sample response
{"stat_id":21,"viewed_product":{"featuredProducts":"<XLite\\Module\\CDev\\FeaturedProducts\\Model\\FeaturedProduct>[] array","attachments":"<XLite\\Module\\CDev\\FileAttachments\\Model\\Product\\Attachment>[] array","ogMeta":"string","useCustomOG":"boolean","marketPrice":"string","pinCodesEnabled":"boolean","autoPinCodes":"boolean","pinCodes":"<XLite\\Module\\CDev\\PINCodes\\Model\\PinCode>[] array","views_stats":"<XLite\\Module\\CDev\\ProductAdvisor\\Model\\ProductStats>[] array","purchase_stats":"<XLite\\Module\\CDev\\ProductAdvisor\\Model\\ProductStats>[] array","participateSale":"boolean","discountType":"string","salePriceValue":"string","xcPendingBulkEdit":"boolean","tabs":"<XLite\\Module\\XC\\CustomProductTabs\\Model\\Product\\Tab>[] array","isCustomerAttachmentsAvailable":"boolean","isCustomerAttachmentsRequired":"boolean","facebookMarketingEnabled":"boolean","freeShip":"boolean","freightFixedFee":"string","useAsSegmentCondition":"boolean","exported_pb":"boolean","gpc":"string","gtin":"string","hs_code":"string","mpn":"string","model_number":"string","stock_number":"string","hazmat":"boolean","chemicals":"boolean","pesticide":"boolean","aerosol":"boolean","rppc":"boolean","non_spillable":"boolean","fuel":"boolean","ormd":"boolean","battery":"string","product_condition":"string","country_of_origin":"<XLite\\Model\\Country>","restrictions":"<XLite\\Module\\XC\\PitneyBowes\\Model\\ProductRestriction>[] array","tags":"<XLite\\Module\\XC\\ProductTags\\Model\\Tag>[] array","variants":"<XLite\\Module\\XC\\ProductVariants\\Model\\ProductVariant>[] array","variantsAttributes":"<XLite\\Model\\Attribute>[] array","wholesalePrices":"<XLite\\Module\\CDev\\Wholesale\\Model\\WholesalePrice>[] array","reviews":"<XLite\\Module\\XC\\Reviews\\Model\\Review>[] array","upsellingProducts":"<XLite\\Module\\XC\\Upselling\\Model\\UpsellingProduct>[] array","upsellingParentProducts":"<XLite\\Module\\XC\\Upselling\\Model\\UpsellingProduct>[] array","product_id":"integer","price":"string","sku":"string","enabled":"boolean","weight":"string","useSeparateBox":"boolean","boxWidth":"string","boxLength":"string","boxHeight":"string","itemsPerBox":"integer","free_shipping":"boolean","taxable":"boolean","javascript":"string","arrivalDate":"integer","date":"integer","updateDate":"integer","needProcess":"boolean","categoryProducts":"<XLite\\Model\\CategoryProducts>[] array","order_items":"<XLite\\Model\\OrderItem>[] array","images":"<XLite\\Model\\Image\\Product\\Image>[] array","inventoryEnabled":"boolean","amount":"integer","lowLimitEnabledCustomer":"boolean","lowLimitEnabled":"boolean","lowLimitAmount":"integer","productClass":"<XLite\\Model\\ProductClass>","taxClass":"<XLite\\Model\\TaxClass>","attributes":"<XLite\\Model\\Attribute>[] array","attributeValueC":"<XLite\\Model\\AttributeValue\\AttributeValueCheckbox>[] array","attributeValueT":"<XLite\\Model\\AttributeValue\\AttributeValueText>[] array","attributeValueS":"<XLite\\Model\\AttributeValue\\AttributeValueSelect>[] array","attrSepTab":"boolean","quickData":"<XLite\\Model\\QuickData>[] array","memberships":"<XLite\\Model\\Membership>[] array","cleanURLs":"<XLite\\Model\\CleanURL>[] array","metaDescType":"string","sales":"integer","xcPendingExport":"boolean"},"bought_product":{"featuredProducts":"<XLite\\Module\\CDev\\FeaturedProducts\\Model\\FeaturedProduct>[] array","attachments":"<XLite\\Module\\CDev\\FileAttachments\\Model\\Product\\Attachment>[] array","ogMeta":"string","useCustomOG":"boolean","marketPrice":"string","pinCodesEnabled":"boolean","autoPinCodes":"boolean","pinCodes":"<XLite\\Module\\CDev\\PINCodes\\Model\\PinCode>[] array","views_stats":"<XLite\\Module\\CDev\\ProductAdvisor\\Model\\ProductStats>[] array","purchase_stats":"<XLite\\Module\\CDev\\ProductAdvisor\\Model\\ProductStats>[] array","participateSale":"boolean","discountType":"string","salePriceValue":"string","xcPendingBulkEdit":"boolean","tabs":"<XLite\\Module\\XC\\CustomProductTabs\\Model\\Product\\Tab>[] array","isCustomerAttachmentsAvailable":"boolean","isCustomerAttachmentsRequired":"boolean","facebookMarketingEnabled":"boolean","freeShip":"boolean","freightFixedFee":"string","useAsSegmentCondition":"boolean","exported_pb":"boolean","gpc":"string","gtin":"string","hs_code":"string","mpn":"string","model_number":"string","stock_number":"string","hazmat":"boolean","chemicals":"boolean","pesticide":"boolean","aerosol":"boolean","rppc":"boolean","non_spillable":"boolean","fuel":"boolean","ormd":"boolean","battery":"string","product_condition":"string","country_of_origin":"<XLite\\Model\\Country>","restrictions":"<XLite\\Module\\XC\\PitneyBowes\\Model\\ProductRestriction>[] array","tags":"<XLite\\Module\\XC\\ProductTags\\Model\\Tag>[] array","variants":"<XLite\\Module\\XC\\ProductVariants\\Model\\ProductVariant>[] array","variantsAttributes":"<XLite\\Model\\Attribute>[] array","wholesalePrices":"<XLite\\Module\\CDev\\Wholesale\\Model\\WholesalePrice>[] array","reviews":"<XLite\\Module\\XC\\Reviews\\Model\\Review>[] array","upsellingProducts":"<XLite\\Module\\XC\\Upselling\\Model\\UpsellingProduct>[] array","upsellingParentProducts":"<XLite\\Module\\XC\\Upselling\\Model\\UpsellingProduct>[] array","product_id":"integer","price":"string","sku":"string","enabled":"boolean","weight":"string","useSeparateBox":"boolean","boxWidth":"string","boxLength":"string","boxHeight":"string","itemsPerBox":"integer","free_shipping":"boolean","taxable":"boolean","javascript":"string","arrivalDate":"integer","date":"integer","updateDate":"integer","needProcess":"boolean","categoryProducts":"<XLite\\Model\\CategoryProducts>[] array","order_items":"<XLite\\Model\\OrderItem>[] array","images":"<XLite\\Model\\Image\\Product\\Image>[] array","inventoryEnabled":"boolean","amount":"integer","lowLimitEnabledCustomer":"boolean","lowLimitEnabled":"boolean","lowLimitAmount":"integer","productClass":"<XLite\\Model\\ProductClass>","taxClass":"<XLite\\Model\\TaxClass>","attributes":"<XLite\\Model\\Attribute>[] array","attributeValueC":"<XLite\\Model\\AttributeValue\\AttributeValueCheckbox>[] array","attributeValueT":"<XLite\\Model\\AttributeValue\\AttributeValueText>[] array","attributeValueS":"<XLite\\Model\\AttributeValue\\AttributeValueSelect>[] array","attrSepTab":"boolean","quickData":"<XLite\\Model\\QuickData>[] array","memberships":"<XLite\\Model\\Membership>[] array","cleanURLs":"<XLite\\Model\\CleanURL>[] array","metaDescType":"string","sales":"integer","xcPendingExport":"boolean"},"count":39}
stat_id
integer
Unique ID
viewed_product
bought_product
count
integer
Count of bought products