Skip to content

Sales Breakdown

Top 10 products and top 10 customers by completed-payment revenue in the filter window.

GET /v1/dashboard/sales/breakdown

Query Parameters

Same filters as Sales Summary: from, to, product_id, status, search.

Response

json
{
  "data": {
    "byProduct": [
      {
        "productId": "prd_xxx",
        "productName": "My Plugin",
        "revenue": 1480.00,
        "orders": 18
      }
    ],
    "byCustomer": [
      {
        "customerEmail": "[email protected]",
        "revenue": 297.00,
        "orders": 3
      }
    ]
  }
}

Example

bash
curl -X GET "https://api.packedge.dev/v1/dashboard/sales/breakdown?from=2026-06-01" \
  -H "Authorization: Bearer pk_your_api_key"