> ## 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.

# Gets member's active account statistics



## OpenAPI

````yaml openapi/website-v1.json GET /web/v1/statistics
openapi: 3.0.4
info:
  title: Integration.WebSite.Api
  version: v1
servers:
  - url: https://{host}
    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:
  /web/v1/statistics:
    get:
      tags:
        - Member
      summary: Gets member's active account statistics
      parameters:
        - name: Accept-Language
          in: header
          description: >-
            Language code for localized display names (e.g., "en", "dk").
            Default is "en".
          schema:
            type: string
            default: en
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetStatisticsResponseOfDecimal'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/LoopFoundation.Commons.Contracts.WebServiceError
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/LoopFoundation.Commons.Contracts.WebServiceError
components:
  schemas:
    GetStatisticsResponseOfDecimal:
      type: object
      properties:
        byType:
          type: array
          items:
            $ref: '#/components/schemas/GetStatisticsResponseOfDecimal_GroupedByType'
          description: >-
            Collection of savings broken down by benefit type (offers, games,
            loyalty bonuses, etc.)
          nullable: true
        byMonth:
          type: array
          items:
            $ref: '#/components/schemas/GetStatisticsResponseOfDecimal_GroupedByMonth'
          description: >-
            Collection of savings broken down by calendar month for time-based
            analysis
          nullable: true
        totalAmount:
          type: number
          description: Grand total of all savings across all benefit types and time periods
          format: double
      additionalProperties: false
      description: >-
        Response containing aggregated savings statistics broken down by type
        and time period
    LoopFoundation.Commons.Contracts.WebServiceError:
      required:
        - message
        - name
      type: object
      properties:
        name:
          minLength: 1
          type: string
        message:
          minLength: 1
          type: string
        details:
          nullable: true
      additionalProperties: false
    GetStatisticsResponseOfDecimal_GroupedByType:
      type: object
      properties:
        bonusType:
          type: string
          description: >-
            Internal benefit type code (examples: "OfferDiscount", "GameReward",
            "LoyaltyBonus")
          nullable: true
        bonusTypeDisplayName:
          type: string
          description: Human-readable benefit type name in requested language
          nullable: true
        percentage:
          type: number
          description: This type's share of total savings as percentage (0-100)
          format: double
        amount:
          type: number
          description: Total monetary amount saved through this benefit type
          format: double
      additionalProperties: false
      description: Aggregated statistics entry grouped by benefit type
    GetStatisticsResponseOfDecimal_GroupedByMonth:
      type: object
      properties:
        date:
          type: string
          description: 'First day of the month this entry represents (example: 2024-11-01)'
          format: date-time
        percentage:
          type: number
          description: This month's share of total savings as percentage (0-100)
          format: double
        amount:
          type: number
          description: Total monetary amount saved during this month
          format: double
      additionalProperties: false
      description: Aggregated statistics entry grouped by calendar month
  securitySchemes:
    Bearer:
      type: apiKey
      description: >-
        JWT Authorization header using the Bearer scheme. Example:
        "Authorization: Bearer {token}"
      name: Authorization
      in: header

````