Dashboard Stats API product_id Filter Not Working
Status: Closed · Asked by Sven Bosau on · 0 views
The Dashboard Stats API endpoint /api/v2/getdashboardstats does not filter results by product_id. When passing a specific product ID, the API returns the same total_net_revenue as when passing "all".
This worked correctly in the past but appears to have stopped working recently (noticed on February 1, 2026).
import requests
from requests.auth import HTTPBasicAuth
# ====================================
# REPLACE WITH YOUR CREDENTIALS
# ====================================
API_KEY = "YOUR_API_KEY"
SECRET_KEY = "YOUR_SECRET_KEY"
PRODUCT_ID = "YOUR_PRODUCT_ID"
# ====================================
# API Configuration
# ====================================
stats_url = "https://payments.pabbly.com/api/v2/getdashboardstats"
headers = {"Content-Type": "application/json"}
auth = HTTPBasicAuth(API_KEY, SECRET_KEY)
# Test with specific product_id
payload_product = {
"product_id": PRODUCT_ID,
"interval": "previous_month",
}
# Test with "all"
payload_all = {
"product_id": "all",
"interval": "previous_month",
}
# Fetch stats for specific product
response_product = requests.post(stats_url, headers=headers, json=payload_product, auth=auth)
revenue_product = response_product.json().get("data", {}).get("total_net_revenue", 0)
# Fetch stats for all products
response_all = requests.post(stats_url, headers=headers, json=payload_all, auth=auth)
revenue_all = response_all.json().get("data", {}).get("total_net_revenue", 0)
# Compare results
print(f"Revenue for product '{PRODUCT_ID}': ${revenue_product}")
print(f"Revenue for 'all' products: ${revenue_all}")
if revenue_product == revenue_all:
print("\n❌ BUG: Both values are identical!")
print(" The product_id filter is being ignored.")
else:
print("\n✓ Filter working correctly - values are different.")
Hi @sven-bo,
Could you please share the Workflow URL where you have this concern?
Thanks & Regards,
Arshil Ahmad
Customer Support Associate
? Pabbly.com
?Rate your support
I'm running the API request locally, it is not a Pabbly workflow
Hi @sven-bo,
Thank you for bringing this to our attention. We have escalated the issue to our team for further review. Please allow us some time, and we will get back to you as soon as we receive an update from their end.
We appreciate your patience.
Hi @sven-bo,
This issue has been fixed by our team. Please check and let us know if you're now getting the expected results.
Looks good to me. Thanks!
Hi @sven-bo,
As your issue has been resolved, we’d appreciate it if you could share quick feedback on the support received:
https://forms.gle/GAjS4wdPYKuhnEYV9
Thank you for your time.
PS: We are closing this thread as the issue is resolved. Please feel free to reach out to us if you face any issues in the future.