69be73b5cff0

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-101025471.3 MB
Programs

Get program earning-rules daily report

<Info>

<Badge color="gray">Documentation in progress</Badge>

This documentation is in progress. The parameters, fields, request and response bodies, and other data may be subject to change. If you need more information or you want to share feedback, contact Voucherify support or your Technical Account Manager.

</Info>

Returns aggregated daily earning-rule evaluation statistics for the program over the given date range and resolution, optionally filtered by earning rule. Includes success and failure counts with a failures breakdown.

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

get/v2/loyalties/programs/{programId}/reports/earning-rules/daily

Path parameters

programIdstring required

Unique loyalty program identifier (format: lprg_ followed by hexadecimal characters).

Query parameters

start_datestring date required

Start of the report date range (inclusive), in YYYY-MM-DD format.

end_datestring date required

End of the report date range, in YYYY-MM-DD format. Must be after start_date.

resolution'day' | 'week' | 'month' | 'quarter' required

Aggregation resolution of the report. The allowed date range depends on the resolution: day — max 90 days, week — max 12 weeks, month — max 12 months, quarter — max 4 quarters.

junction'AND' | 'OR' nullable

Logical junction between the field filters. Defaults to AND behavior.

Field filters. Each field accepts a conditions object with condition operators.

Response

Program earning-rules daily report.

object'report'

Object type marker. Always report.