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

# Get aggregate report

> Generates an aggregated feedback report for a specified date range.

This endpoint retrieves summarized feedback data for the period between startDate and endDate.
The report format automatically adjusts based on the duration:
- For periods of 28 days or more, uses monthly report content configuration
- For shorter periods, uses weekly report content configuration



## OpenAPI

````yaml openapi/customerfeedback-v1.json GET /v1/Feedback/aggregate_report
openapi: 3.0.4
info:
  title: CustomerFeedback.Api
  version: v1
servers:
  - url: https://{host}/customerfeedback
    description: Your Lobyco environment
    variables:
      host:
        default: your-environment.lobyco.net
        description: >-
          The API host for your Lobyco environment. Replace it with the host you
          were given — this placeholder does not resolve.
security:
  - Bearer: []
paths:
  /v1/Feedback/aggregate_report:
    get:
      tags:
        - Feedback
      summary: Get aggregate report
      description: >-
        Generates an aggregated feedback report for a specified date range.


        This endpoint retrieves summarized feedback data for the period between
        startDate and endDate.

        The report format automatically adjusts based on the duration:

        - For periods of 28 days or more, uses monthly report content
        configuration

        - For shorter periods, uses weekly report content configuration
      parameters:
        - name: StartDate
          in: query
          description: Start date of the reporting period
          required: true
          schema:
            type: string
            format: date-time
        - name: EndDate
          in: query
          description: End date of the reporting period
          required: true
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: >-
                  #/components/schemas/CustomerFeedback.Api.DTO.Responses.GetAggregateReportResponse
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/CustomerFeedback.Api.DTO.Responses.GetAggregateReportResponse
            text/json:
              schema:
                $ref: >-
                  #/components/schemas/CustomerFeedback.Api.DTO.Responses.GetAggregateReportResponse
        '400':
          description: Bad Request
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
components:
  schemas:
    CustomerFeedback.Api.DTO.Responses.GetAggregateReportResponse:
      type: object
      properties:
        report:
          type: array
          items:
            $ref: >-
              #/components/schemas/CustomerFeedback.ApplicationService.CQRS.Models.AggregateReportItem
          description: >-
            Collection of aggregate report items containing feedback statistics
            grouped by store.
          nullable: true
      additionalProperties: false
      description: >-
        Represents the response containing aggregate report data for customer
        feedback.
    Microsoft.AspNetCore.Mvc.ProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
      additionalProperties: {}
    CustomerFeedback.ApplicationService.CQRS.Models.AggregateReportItem:
      type: object
      properties:
        chainName:
          type: string
          nullable: true
        storeId:
          type: string
          nullable: true
        storeName:
          type: string
          nullable: true
        avgRating:
          type: number
          format: double
        memberCount:
          type: integer
          format: int32
        count:
          type: integer
          format: int32
      additionalProperties: false
  securitySchemes:
    Bearer:
      type: apiKey
      description: >-
        Opaque Authorization header using the Bearer scheme. Example:
        "Authorization: Bearer {token}"
      name: Authorization
      in: header

````