Product sales

ps_get_product_sales

Read-onlyContent & SEO and Catalog · writes right awayWorks in TellMyShop FreeVisible right after install

Shows which products sell best and how much they earned, without customer data.

TellMyShop Free: Yes. This tool is in TellMyShop Free, which costs nothing. It only reads your store and never changes anything.

Ask Claude

„Which 20 products sold best in September, compared with August? Start the description work with those.”

Example answer

1. Sofa Oslo 3-seat: 14 units, 28,443 PLN net (+22% vs August). 2. Corner sofa Bergen: 9 units ...

Technical details

Best-selling products in a period: units, net and gross revenue in the shop's default currency (other currencies converted at the rate stored in the order), number of orders, optional comparison with the previous period of the same length. Only valid (paid) order states, no customer data.

Parameters

NameTypeRequiredDescription
date_fromstring (YYYY-MM-DD)noStart of the period (default 90 days before the end), YYYY-MM-DD.
date_tostring (YYYY-MM-DD)noEnd of the period (default today; max 366 days after the start), YYYY-MM-DD.
daysintegernoLast N days up to date_to (1-366), instead of date_from.
category_idintegernoOnly products of this category (with subcategories).
compare_previousbooleannoCompare with the previous period of the same length. Default false.
group_byenum: product | combinationnoGroup by product or by combination. Default product.
sortenum: quantity | revenuenoSort by units or by net revenue. Default revenue.
shop_idintegernoShop ID in a multistore installation. Defaults to the shop in the connector address. IDs are listed by ps_get_shop_info.
limitintegernoMaximum rows (default 50, max 200).
offsetintegernoRows to skip, for paging (default 0).

Limits

Both dates are optional: date_to defaults to today, date_from to 90 days before the end. Period max 366 days. Max 200 rows per call. Totals rounded to 2 decimal places. No customer data in the result.

Related tools

Use cases with this tool

Last updated: 2026-10-11