> ## 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 program daily tasks summary reports

> Returns all-time counts of nightly tasks the job has already finished for the program.

The response contains one row when activity was recorded, and an empty `data` array otherwise. This method has no query parameters or filters.

Does not list what is scheduled. Pending points, activation dates, and expiration dates that are still waiting do not appear. A count is stored on the date the job finishes the task. Tasks finished before this report existed are not included.

Distinct from **List program daily task reports**, which returns the same counters per date period.

Returns `404` when the program does not exist.

A successful call records no activity.



## OpenAPI

````yaml /openapi/loyalties-v2.json get /v2/loyalties/programs/{programId}/reports/daily-tasks/summary
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}/reports/daily-tasks/summary:
    parameters:
      - name: programId
        in: path
        required: true
        description: Identifies the loyalty program. Format `lprg_[a-f0-9]+`.
        schema:
          type: string
          pattern: ^lprg_[a-f0-9]+$
    get:
      tags:
        - Programs
      summary: List program daily tasks summary reports
      description: >-
        Returns all-time counts of nightly tasks the job has already finished
        for the program.


        The response contains one row when activity was recorded, and an empty
        `data` array otherwise. This method has no query parameters or filters.


        Does not list what is scheduled. Pending points, activation dates, and
        expiration dates that are still waiting do not appear. A count is stored
        on the date the job finishes the task. Tasks finished before this report
        existed are not included.


        Distinct from **List program daily task reports**, which returns the
        same counters per date period.


        Returns `404` when the program does not exist.


        A successful call records no activity.
      operationId: listProgramDailyTasksSummaryReports
      responses:
        '200':
          description: Program daily tasks summary report.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/LoyaltiesProgramsReportsDailyTasksSummaryListResponseBody
              examples:
                Summary daily tasks report:
                  value:
                    data:
                      - id: lpdts_12d8b27ab4e0fcb6e1
                        points_expirations: 5
                        points_activations: 1
                        points_cancellations: 1
                        tier_recalculations: 1
                        object: program_daily_tasks_summary_report
                    object: report
                Empty daily tasks summary report:
                  value:
                    data: []
                    object: report
        '404':
          description: Program 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_128f58429fc4bf7b2
                    request_id: v-131e4b76ad2e099010
                    resource_id: lprg_128f58429fc4bf7b2
                    resource_type: program
                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-131e4b76ad2e099011
                    resource_id: missing
                    resource_type: program
        '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:
    LoyaltiesProgramsReportsDailyTasksSummaryListResponseBody:
      title: Loyalties Programs Reports Daily Tasks Summary List Response Body
      type: object
      description: >-
        Response body schema for **GET**
        `/v2/loyalties/programs/{programId}/reports/daily-tasks/summary`.
      allOf:
        - $ref: '#/components/schemas/DailyTasksReportSummaryResponse'
    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.
    DailyTasksReportSummaryResponse:
      type: object
      description: Program daily tasks summary report result.
      properties:
        data:
          type: array
          description: >-
            List of all-time counts of nightly tasks that have been already
            finished for the program. Contains one row when activity was
            recorded, ordered by `id` descending. Counters with no finished
            tasks are 0. Scheduled activations and expirations are not included.
          items:
            $ref: '#/components/schemas/ProgramDailyTasksSummaryReport'
        object:
          type: string
          const: report
          description: Object type marker. Always `report`.
      required:
        - data
        - object
    ProgramDailyTasksSummaryReport:
      type: object
      description: >-
        All-time counts of nightly tasks the job has already finished for the
        program. Counters with no finished tasks are 0. Scheduled activations
        and expirations are not included.
      properties:
        id:
          type: string
          pattern: ^lpdts_[a-f0-9]+$
          description: Identifies the summary row. Format `lpdts_[a-f0-9]+`.
        points_expirations:
          type: number
          minimum: 0
          description: >-
            Counts point expirations the nightly job has already finished. A
            future expiration date is not included.
        points_activations:
          type: number
          minimum: 0
          description: >-
            Counts pending-point activations the nightly job has already
            finished. Pending points that are still waiting are not included.
        points_cancellations:
          type: number
          minimum: 0
          description: >-
            Counts `EVENT_BASED` pending-point cancellations the nightly job has
            completed.
        tier_recalculations:
          type: number
          minimum: 0
          description: >-
            Counts cards the nightly job recalculated that produced at least one
            tier transaction.
        object:
          type: string
          const: program_daily_tasks_summary_report
          description: Object type marker. Always `program_daily_tasks_summary_report`.
      required:
        - id
        - points_expirations
        - points_activations
        - points_cancellations
        - tier_recalculations
        - 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.