> ## Documentation Index
> Fetch the complete documentation index at: https://docs.voucherify.io/llms.txt
> Use this file to discover all available pages before exploring further.

# List member earning-rule daily reports

> Returns aggregated daily usage statistics for a specific earning rule and member over the given date range and resolution. Each entry sums successful earning-rule triggers recorded in one period. Periods without recorded activity are omitted.

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 or member does not exist, or when the earning rule does not exist or is not assigned to the program.



## OpenAPI

````yaml /openapi/loyalties-v2.json get /v2/loyalties/programs/{programId}/members/{memberId}/earning-rules/{earningRuleId}/reports/daily
openapi: 3.1.0
info:
  title: Voucherify API - Loyalty v2
  version: v2018-08-01
  description: >-
    Voucherify promotion engine REST API. Please see
    https://docs.voucherify.io/docs for more details.
  contact:
    name: Voucherify Team
    url: https://www.voucherify.io/contact-support
    email: support@voucherify.io
  termsOfService: https://www.voucherify.io/legal/subscription-agreement
  license:
    name: MIT
    url: https://github.com/voucherifyio/voucherify-js-sdk/blob/main/LICENSE
servers:
  - url: https://{cluster}.voucherify.io
    description: Base URL
    variables:
      cluster:
        default: api
        enum:
          - api
          - us1.api
          - as1.api
          - download
          - us1.download
          - as1.download
security: []
paths:
  /v2/loyalties/programs/{programId}/members/{memberId}/earning-rules/{earningRuleId}/reports/daily:
    parameters:
      - name: programId
        in: path
        required: true
        description: >-
          Unique loyalty program identifier (format: `lprg_` followed by
          hexadecimal characters).
        schema:
          type: string
          pattern: ^lprg_[a-f0-9]+$
      - name: memberId
        in: path
        required: true
        description: >-
          Unique loyalty member identifier (format: `lmbr_` followed by
          hexadecimal characters).
        schema:
          type: string
          pattern: ^lmbr_[a-f0-9]+$
      - name: earningRuleId
        in: path
        required: true
        description: >-
          Unique earning rule identifier (format: `lern_` followed by
          hexadecimal characters).
        schema:
          type: string
          pattern: ^lern_[a-f0-9]+$
    get:
      tags:
        - Programs
      summary: List member earning-rule daily reports
      description: >-
        Returns aggregated daily usage statistics for a specific earning rule
        and member over the given date range and resolution. Each entry sums
        successful earning-rule triggers recorded in one period. Periods without
        recorded activity are omitted.


        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 or member does not exist, or when the earning rule does not
        exist or is not assigned to the program.
      operationId: getMemberEarningRuleDailyReport
      parameters:
        - name: start_date
          in: query
          required: true
          description: Start of the report date range (inclusive), in `YYYY-MM-DD` format.
          schema:
            type: string
            format: date
            pattern: ^\d{4}-\d{2}-\d{2}$
        - name: end_date
          in: query
          required: true
          description: >-
            End of the report date range (inclusive), in `YYYY-MM-DD` format.
            Must be after `start_date`.
          schema:
            type: string
            format: date
            pattern: ^\d{4}-\d{2}-\d{2}$
        - name: resolution
          in: query
          required: true
          description: >-
            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.
          schema:
            type: string
            enum:
              - day
              - week
              - month
              - quarter
      responses:
        '200':
          description: Member earning-rule daily report.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/V2LoyaltiesProgramsMembersEarningRulesReportsDailyListResponseBody
              examples:
                'Member earning-rule daily report: Day resolution':
                  value:
                    data:
                      - date: '2026-07-10'
                        count: 1
                        object: earning_rule_daily_report
                      - date: '2026-07-15'
                        count: 11
                        object: earning_rule_daily_report
                      - date: '2026-07-30'
                        count: 1
                        object: earning_rule_daily_report
                      - date: '2026-08-06'
                        count: 13
                        object: earning_rule_daily_report
                    object: report
                'Member earning-rule daily report: Month resolution':
                  value:
                    data:
                      - date: '2026-06-01'
                        count: 4
                        object: earning_rule_daily_report
                      - date: '2026-07-01'
                        count: 13
                        object: earning_rule_daily_report
                      - date: '2026-08-01'
                        count: 13
                        object: earning_rule_daily_report
                    object: report
                'Member earning-rule daily report: No activity':
                  value:
                    data: []
                    object: report
        '400':
          description: >-
            Query parameters failed validation, or `start_date` is not before
            `end_date`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                'Invalid query parameters: `start_date` is required':
                  value:
                    code: 400
                    key: invalid_query_params
                    message: Invalid query params
                    details: Query must have required property 'start_date'
                    request_id: v-130eb43b3685e26454
                'Invalid query parameters: `end_date` is required':
                  value:
                    code: 400
                    key: invalid_query_params
                    message: Invalid query params
                    details: Query must have required property 'end_date'
                    request_id: v-130eb46d6c45e264b2
                'Invalid query parameters: `resolution` is required':
                  value:
                    code: 400
                    key: invalid_query_params
                    message: Invalid query params
                    details: Query must have required property 'resolution'
                    request_id: v-130eb4847405e264e3
                'Invalid query parameters: `resolution` is invalid':
                  value:
                    code: 400
                    key: invalid_query_params
                    message: Invalid query params
                    details: >-
                      Property .resolution must be equal to one of the allowed
                      values [ day, week, month, quarter ]
                    request_id: v-130eb4847405e264e4
                'Invalid query parameters: `start_date` is invalid':
                  value:
                    code: 400
                    key: invalid_query_params
                    message: Invalid query params
                    details: >-
                      Property .start_date cannot be recognized as a ISO-8601
                      compliant date
                    request_id: v-130eb43b3685e26455
                'Invalid query parameters: `end_date` is invalid':
                  value:
                    code: 400
                    key: invalid_query_params
                    message: Invalid query params
                    details: >-
                      Property .end_date cannot be recognized as a ISO-8601
                      compliant date
                    request_id: v-130eb43b3685e26459
                'Invalid query parameters: date range exceeds limit':
                  value:
                    code: 400
                    key: invalid_query_params
                    message: Invalid query params
                    details: >-
                      Query date range exceeds maximum allowed 90 days for
                      resolution 'day'
                    request_id: v-130eb43b3685e26456
                'Invalid payload: `start_date` is not before `end_date`':
                  value:
                    code: 400
                    key: invalid_payload
                    message: Invalid payload
                    details: Property 'start_date' must be before 'end_date'
                    request_id: v-130eb43b3685e26457
        '404':
          description: Resource not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Program not found:
                  value:
                    code: 404
                    key: not_found
                    message: Resource not found
                    details: Cannot find program with id lprg_28f58429f4c4bf7b2
                    request_id: v-131e61d450c264502d
                    resource_id: lprg_28f58429f4c4bf7b2
                    resource_type: program
                Member not found:
                  value:
                    code: 404
                    key: not_found
                    message: Resource not found
                    details: Cannot find member with id lmbr_128f9ee624c4ba553
                    request_id: v-131e61f4dcee09b660
                    resource_id: lmbr_128f9ee624c4ba553
                    resource_type: member
                Earning rule not found or not assigned to the program:
                  value:
                    code: 404
                    key: not_found
                    message: Resource not found
                    details: Cannot find earning_rule with id lern_128f9ee63cc4ba558
                    request_id: v-131e61ff0dc2645083
                    resource_id: lern_128f9ee63cc4ba558
                    resource_type: earning_rule
                Program ID does not match the pattern:
                  value:
                    code: 404
                    key: not_found
                    message: Resource not found
                    details: Cannot find program with id missing
                    request_id: v-131e61d450c264502f
                    resource_id: missing
                    resource_type: program
                Member ID does not match the pattern:
                  value:
                    code: 404
                    key: not_found
                    message: Resource not found
                    details: Cannot find member with id missing
                    request_id: v-131e61f4dcee09b662
                    resource_id: missing
                    resource_type: member
                Earning rule ID does not match the pattern:
                  value:
                    code: 404
                    key: not_found
                    message: Resource not found
                    details: Cannot find earning_rule with id missing
                    request_id: v-131e61ff0dc2645085
                    resource_id: missing
                    resource_type: earning_rule
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Internal server error:
                  value:
                    code: 500
                    key: api_error
                    message: >-
                      Something went wrong. Don't worry, your campaigns are
                      still safe and the Voucherify Team has been notified.
                      Check out our Help Center and forums for help, or head
                      back to home.
      security:
        - X-App-Id: []
          X-App-Token: []
        - bearerAuth: []
components:
  schemas:
    V2LoyaltiesProgramsMembersEarningRulesReportsDailyListResponseBody:
      title: >-
        V2 Loyalties Programs Members Earning Rules Reports Daily List Response
        Body
      type: object
      description: >-
        Response body schema for **GET**
        `/v2/loyalties/programs/{programId}/members/{memberId}/earning-rules/{earningRuleId}/reports/daily`.
      allOf:
        - $ref: '#/components/schemas/EarningRuleDailyReportResponse'
    ErrorResponse:
      type: object
      description: Standard error response returned by all Loyalty v2 endpoints.
      properties:
        code:
          type: integer
          description: HTTP status code of the error.
        key:
          type: string
          description: Machine-readable error key.
        message:
          type: string
          description: Human-readable error message.
        details:
          type: string
          description: Additional details about the error.
        request_id:
          type: string
          description: Unique identifier of the request that produced the error.
        resource_id:
          type: string
          description: Unique identifier of the resource that produced the error.
        resource_type:
          type: string
          description: Type of the resource that produced the error.
    EarningRuleDailyReportResponse:
      type: object
      description: Member earning-rule daily report result.
      properties:
        data:
          type: array
          description: >-
            List of report entries, one per aggregation period with recorded
            activity, ordered by `date` ascending. Empty when no activity was
            recorded in the range.
          items:
            $ref: '#/components/schemas/EarningRuleDailyReportEntry'
        object:
          type: string
          const: report
          description: Object type marker. Always `report`.
      required:
        - data
        - object
    EarningRuleDailyReportEntry:
      type: object
      description: >-
        Aggregated daily earning-rule usage statistics for one member and
        earning rule in one period. Numeric fields default to 0.
      properties:
        date:
          type: string
          format: date
          description: >-
            Identifies the start of the truncated aggregation period
            (`YYYY-MM-DD`). For `week` this is Monday. For `month` this is the
            first day. For `quarter` this is the quarter start.
        count:
          type: number
          description: >-
            Counts successful earning-rule triggers for the member in the
            period. A trigger rejected by its limit check is not included.
        object:
          type: string
          const: earning_rule_daily_report
          description: Object type marker. Always `earning_rule_daily_report`.
      required:
        - date
        - count
        - object
  securitySchemes:
    X-App-Id:
      type: apiKey
      name: X-App-Id
      in: header
    X-App-Token:
      type: apiKey
      name: X-App-Token
      in: header
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.