get:
  tags:
    - Statistics
  summary: Get sales summary statistics
  description: |
    Returns an overview of the revenue for different time periods.
  operationId: statsSalesSummary
  responses:
    '200':
      description: Successful operation
      content:
        application/json:
          schema:
            type: object
            properties:
              data:
                type: object
                properties:
                  for:
                    type: object
                    properties:
                      all:
                        type: object
                        description: Statistics for all time
                        properties:
                          from:
                            type: string
                            format: date
                            description: Start date of the period
                          to:
                            type: string
                            format: date
                            description: End date of the period
                          amounts:
                            type: object
                            description: Revenue amounts by currency
                            additionalProperties:
                              type: object
                              properties:
                                vendor_share_amount:
                                  type: number
                                  description: Payout amount as vendor
                                vendor_brutto_amount:
                                  type: number
                                  description: Gross amount as vendor
                                vendor_netto_amount:
                                  type: number
                                  description: Net amount as vendor
                                affiliate_share_amount:
                                  type: number
                                  description: Payout amount as affiliate
                                affiliate_brutto_amount:
                                  type: number
                                  description: Gross amount as affiliate
                                affiliate_netto_amount:
                                  type: number
                                  description: Net amount as affiliate
                                other_share_amount:
                                  type: number
                                  description: Payout amount in other roles
                                other_brutto_amount:
                                  type: number
                                  description: Gross amount in other roles
                                other_netto_amount:
                                  type: number
                                  description: Net amount in other roles
                                total_share_amount:
                                  type: number
                                  description: Total payout amount
                                total_brutto_amount:
                                  type: number
                                  description: Total gross amount
                                total_netto_amount:
                                  type: number
                                  description: Total net amount
                          precentages:
                            type: object
                            description: Percentages relative to reference values
                          references:
                            type: object
                            description: Reference values for comparison
                      year:
                        type: object
                        description: Statistics for the current year
                      quarter:
                        type: object
                        description: Statistics for the current quarter
                      month:
                        type: object
                        description: Statistics for the current month
                      week:
                        type: object
                        description: Statistics for the current week
                      day:
                        type: object
                        description: Statistics for the current day
                  call_duration_ms:
                    type: object
                    description: Performance metrics for the API call
                    properties:
                      amount_for_all:
                        type: number
                        description: Time taken to calculate all-time statistics
                      amount_for_year:
                        type: number
                        description: Time taken to calculate year statistics
                      amount_for_quarter:
                        type: number
                        description: Time taken to calculate quarter statistics
                      amount_for_month:
                        type: number
                        description: Time taken to calculate month statistics
                      amount_for_week:
                        type: number
                        description: Time taken to calculate week statistics
                      amount_for_day:
                        type: number
                        description: Time taken to calculate day statistics
                      percentages:
                        type: number
                        description: Time taken to calculate percentages
                      total_call:
                        type: number
                        description: Total API call duration
  security:
    - ApiKeyAuth: []
