List program points-earnings daily reports
Changed onReturns aggregated daily points-earnings statistics for the program over the given date range and resolution, optionally filtered by earning rule and card definition. Each entry sums earning operations recorded for one period, earning rule, earning item, and card definition. Periods without recorded activity are omitted. 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_date must be before end_date,
- start_date and end_date are inclusive.
Returns 400 when query validation fails. Returns 404 when the program does not exist.
A successful call records no activity.
Request
- Base URLhttps://api.voucherify.io
- Auth
- API key in header X-App-Id and API key in header X-App-Token
- or HTTP bearer
Query parameters
Sets the inclusive start of the report date range. Format YYYY-MM-DD.
Sets the inclusive end of the report date range. Format YYYY-MM-DD. Must be after start_date.
Sets the aggregation resolution. day allows at most 90 days, week at most 12 weeks, month at most 12 months, and quarter at most 4 quarters.
Filters the results. Pass a deep object, for example filters[earning_rule_id][conditions][$is]=lern_.... Fields combine through junction, which defaults to AND. Omit filters to apply no field filter.
Response
Program points-earnings daily report.
Changes
- breaking
the
/////response's property type changed fromobjectto no type for status - breaking
removed the required property
//////from the response with the status - breaking
removed the required property
//////from the response with the status - breaking
removed the required property
//////from the response with the status - breaking
removed the required property
//////from the response with the status - breaking
removed the required property
//////from the response with the status - breaking
removed the required property
//////from the response with the status - breaking
removed the required property
//////from the response with the status - breaking
removed the required property
//////from the response with the status - warning
for the
queryrequest parameterfilters, the type of propertyoneOf[PointsEarningsReportListFilters]/card_definition_id/oneOf[PointsEarningsReportFilterCardDefinitionIdConditions]/changed fromobjectto no type - info
added
subschema #2to the/////response propertyallOflist for the response status
- breaking
- warning
deleted the
pathrequest parameterprogramId - info
for the
queryrequest parameterfilters, the type was generalized fromobjectto no type
- warning