List program spending summary reports
Changed onReturns all-time point-spending totals for the program, one row per card definition that has recorded spending. Filters rows with filters[card_definition_id]. Returns at most 10 rows (max number of card definitions per program), ordered by id descending. limit and order are not query parameters.
Returns 200 with an empty data array when no spending is recorded. Returns 400 when query validation fails. Returns 404 when the program does not exist.
Request
- Base URLhttps://api.voucherify.io
- URLhttps://api.voucherify.io/v2/loyalties/programs/{programId}/reports/spending/summary
- Auth
- API key in header X-App-Id and API key in header X-App-Token
- or HTTP bearer
Query parameters
Filters the results. Pass a deep object, for example filters[card_definition_id][conditions][$is]=lcdef_.... Fields combine through junction, which defaults to AND. Omit filters to apply no field filter.
Response
Program spending summary report.
Changes
- warning
for the
queryrequest parameterfilters, the type of propertycard_definition_id/oneOf[SpendingReportFilterCardDefinitionIdConditions]/changed fromobjectto no type
- warning
- breaking
for the
queryrequest parameterfilters, the type of propertycard_definition_id/oneOf[SpendingReportFilterCardDefinitionIdConditions]/was specialized from no type toobject
- breaking