Appearance
Sales Summary
Aggregated revenue and order counts for a filter window.
GET /v1/dashboard/sales/summaryQuery Parameters
| Parameter | Type | Description |
|---|---|---|
from | string | Start date (YYYY-MM-DD); default: last 30 days |
to | string | End date, inclusive (YYYY-MM-DD) |
product_id | string | Filter by product ID |
status | string | Filter by payment status |
search | string | Matches customer email, license key, or product name |
Response
json
{
"data": {
"grossRevenue": 1890.00,
"netRevenue": 1791.00,
"refunds": 99.00,
"orderCount": 24,
"refundCount": 1,
"failedCount": 2,
"uniqueCustomers": 21,
"avgOrderValue": 78.75,
"currency": "USD"
}
}| Field | Description |
|---|---|
grossRevenue | Sum of completed payments in the window. |
netRevenue | Gross minus refunds. |
uniqueCustomers | Distinct customer emails with completed payments. |
currency | Your account's dominant currency — money sums are pinned to it so mixed currencies are never added together. |
Example
bash
curl -X GET "https://api.packedge.dev/v1/dashboard/sales/summary?from=2026-06-01&to=2026-06-30" \
-H "Authorization: Bearer pk_your_api_key"