---
title: "Get program spending daily report"
method: GET
path: "/v2/loyalties/programs/{programId}/reports/spending/daily"
tags: ["Programs"]
---

# Get program spending daily report

`GET /v2/loyalties/programs/{programId}/reports/spending/daily`

<Warning>

<Badge color="yellow">BETA endpoint</Badge>

This is a work-in-progress documentation of a BETA endpoint. The parameters, fields, request and response bodies, and other data may subject to change. If you want to share feedback or improvements, contact [Voucherify support](https://www.voucherify.io/contact-support) or your Technical Account Manager.

</Warning>

Returns aggregated daily points-spending statistics for the program over the given
date range and resolution, optionally filtered by card definition.

The date range is limited per resolution:
maximum 90 days for `day`, 12 weeks for `week`, 12 months for `month`, 4 quarters
for `quarter`.

## Path parameters

- `programId` string, required

## Query parameters

- `start_date` string, date, required
- `end_date` string, date, required
- `resolution` 'day' | 'week' | 'month' | 'quarter', required
- `filters` SpendingReportListFilters — Filters for spending reports.
  - `junction` 'AND' | 'OR' — Logical junction between the field filters. Defaults to AND behavior.
  - `card_definition_id` SpendingReportFilterCardDefinitionIdConditions — ID filter conditions for card definition ids. Values must match pattern `^lcdef_[a-f0-9]+$`. `$is`/`$is_not` accept a single value (string or 1-element array); `$in`/`$not_in` accept a string or an array of 1-100 values.
    - `conditions` object, required
      - `$is` union — Matches rows whose card definition id equals the given value.
        - string
        - string[]
      - `$is_not` union — Matches rows whose card definition id does not equal the given value.
        - string
        - string[]
      - `$in` union — Matches rows whose card definition id is one of the given values.
        - string
        - string[]
      - `$not_in` union — Matches rows whose card definition id is not one of the given values.
        - string
        - string[]

## Response `200`

Program spending daily report.

- SpendingReportDailyResponse — Program spending daily report result.
  - `data` SpendingReportDailyEntry[] — Report entries, one per aggregation period and card definition.
    - `date` string, date — Date of the aggregation period (`YYYY-MM-DD`).
    - `card_definition_id` string — Identifier of the card definition (format `lcdef_...`).
    - `success` number — Number of successful spending operations in the period.
    - `success_on_reward` number — Number of successful reward purchases in the period.
    - `success_on_order` number — Number of successful order payments in the period.
    - `points` number — Total points spent in the period.
    - `points_on_rewards` number — Points spent on reward purchases in the period.
    - `points_on_order` number — Points spent on order payments in the period.
    - `amount_on_order` number — Order amount paid with points in the period.
    - `object` string — Object type marker. Always `spending_daily_report`.
  - `object` string — Object type marker. Always `report`.

## Other responses

- `400` — Validation error - request body or query parameters failed validation, or the operation is not allowed in the current resource state.
- `404` — Resource not found.
- `409` — Conflict - e.g. duplicate resource or invalid state transition.
- `500` — Internal server error.

---

[API](https://skmtc.dev/voucherifyio/apis/voucherify-api-async-actions.md) · [All operations](https://skmtc.dev/voucherifyio/apis/voucherify-api-async-actions/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/voucherifyio/voucherify-api-async-actions/revisions/4982266e0494/schema)
