> ## 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 recent feedback

> Retrieves recent feedback entries for a specific member within a specified duration.

This endpoint returns a collection of feedback items submitted by the member within
the specified number of days. Each feedback item includes predefined options if applicable.



## OpenAPI

````yaml openapi/customerfeedback-v1.json GET /v1/Feedback/recent
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/recent:
    get:
      tags:
        - Feedback
      summary: Get recent feedback
      description: >-
        Retrieves recent feedback entries for a specific member within a
        specified duration.


        This endpoint returns a collection of feedback items submitted by the
        member within

        the specified number of days. Each feedback item includes predefined
        options if applicable.
      parameters:
        - name: memberId
          in: query
          description: The unique identifier of the member whose feedback to retrieve
          required: true
          schema:
            type: string
        - name: durationInDays
          in: query
          description: The number of days to look back for feedback
          required: true
          schema:
            type: integer
            format: int32
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: >-
                  #/components/schemas/CustomerFeedback.Api.DTO.Responses.GetRecentFeedbackResponse
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/CustomerFeedback.Api.DTO.Responses.GetRecentFeedbackResponse
            text/json:
              schema:
                $ref: >-
                  #/components/schemas/CustomerFeedback.Api.DTO.Responses.GetRecentFeedbackResponse
        '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.GetRecentFeedbackResponse:
      type: object
      properties:
        feedbackItems:
          type: array
          items:
            $ref: >-
              #/components/schemas/CustomerFeedback.ApplicationService.CQRS.Models.FeedbackWithOptions
          description: Collection of feedback items with their associated options.
          nullable: true
      additionalProperties: false
      description: Response containing a collection of recent customer feedback items.
    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.FeedbackWithOptions:
      type: object
      properties:
        id:
          type: integer
          format: int64
        receiptId:
          type: string
          nullable: true
        memberId:
          type: string
          nullable: true
        chainName:
          type: string
          nullable: true
        storeName:
          type: string
          nullable: true
        rating:
          type: integer
          format: int32
        options:
          type: array
          items:
            type: string
          nullable: true
        message:
          type: string
          nullable: true
        thankYouMessage:
          type: string
          nullable: true
        state:
          $ref: >-
            #/components/schemas/CustomerFeedback.ApplicationService.CQRS.Models.FeedbackState
        modifiedDate:
          type: string
          format: date-time
        createdDate:
          type: string
          format: date-time
      additionalProperties: false
    CustomerFeedback.ApplicationService.CQRS.Models.FeedbackState:
      enum:
        - None
        - Open
        - Closed
      type: string
  securitySchemes:
    Bearer:
      type: apiKey
      description: >-
        Opaque Authorization header using the Bearer scheme. Example:
        "Authorization: Bearer {token}"
      name: Authorization
      in: header

````