curl --request GET \
--url https://{cluster}.voucherify.io/v2/loyalties/programs/{programId}/reports/rewards/spendings/daily \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'List program rewards spendings daily reports
Returns aggregated points spent on reward purchases for the program over the given date range and resolution. Each row covers one reward, reward cost, reward spending, card definition, and period with an approved point spend. Periods without an approved point spend are omitted. Optionally filters by reward, cost, spending, and card definition. A filter that matches no rows returns an empty data array.
The date range is limited per resolution:
- 90 days for
day, - 12 weeks for
week, - 12 months for
month, - 4 quarters for
quarter, start_datemust be beforeend_date,start_dateandend_dateare inclusive.
Returns 400 when query validation fails. Returns 404 when the program does not exist.
curl --request GET \
--url https://{cluster}.voucherify.io/v2/loyalties/programs/{programId}/reports/rewards/spendings/daily \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'Authorizations
Path Parameters
Identifies the loyalty program (lprg_ followed by hexadecimal characters).
Query Parameters
Sets the inclusive start of the report date range, in YYYY-MM-DD format.
^\d{4}-\d{2}-\d{2}$Sets the inclusive end of the report date range, in YYYY-MM-DD format. Requires start_date to be before end_date.
^\d{4}-\d{2}-\d{2}$Sets the aggregation resolution. Allows at most 90 days for day, 12 weeks for week, 12 months for month, and 4 quarters for quarter.
day, week, month, quarter Filters rows by field conditions, e.g. filters[reward_id][conditions][$is]=lrew_....
Filters for program rewards spendings reports.
Show child attributes
Show child attributes
Response
Program rewards spendings daily report.
Response body schema for GET /v2/loyalties/programs/{programId}/reports/rewards/spendings/daily.
List of report entries, one per reward, cost, spending, card definition, and aggregation period with an approved point spend, ordered by date ascending. Empty when no approved point spend was recorded in the range.
Show child attributes
Show child attributes
Object type marker. Always report.
"report"
