Skip to content

Sales Summary

Aggregated revenue and order counts for a filter window.

GET /v1/dashboard/sales/summary

Query Parameters

ParameterTypeDescription
fromstringStart date (YYYY-MM-DD); default: last 30 days
tostringEnd date, inclusive (YYYY-MM-DD)
product_idstringFilter by product ID
statusstringFilter by payment status
searchstringMatches 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"
  }
}
FieldDescription
grossRevenueSum of completed payments in the window.
netRevenueGross minus refunds.
uniqueCustomersDistinct customer emails with completed payments.
currencyYour 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"