Product sales
What one product sold in the last 30 days: units, revenue, and the most recent order lines as charged.
- Counts paid orders only;
unitsandrevenue_centscover every such line in the window, andlineslists the 20 most recent. - Each line keeps the price it was charged at, never the product's price today.
- A malformed UUID answers 400 validation_failed before resource access; a well-formed unknown UUID or one outside your workspace answers 404.
curl -X GET "https://app.blueticked.com/api/v1/commerce/products/{id}/sales" \
-H "Authorization: Bearer $BLUETICKED_API_KEY"{
"ok": true,
"window_days": 30,
"units": 3,
"revenue_cents": 40700,
"lines": [
{
"order_id": "0446a464-20d9-4fcb-9e27-2ed069386cf7",
"reference": "BT-7Q2K9",
"number": 1043,
"paid_at": "2026-09-30T08:00:00.000Z",
"quantity": 1,
"variant_name": "Large",
"unit_price_cents": 18900
}
]
}