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

# Get net revenue summary

> Returns a net revenue summary including current month, last month, and annualized figures broken down by fixed (recurring) and metered (usage-based) revenue.



## OpenAPI

````yaml /api-reference/specs/2026-04-01.json get /insights/revenue
openapi: 3.1.0
info:
  description: >-
    Alguna is the AI-native quote-to-revenue platform for B2B companies: CPQ,
    subscription and usage-based billing, invoicing, payment collection, and
    revenue recognition in one system of record. The API operates on one
    versioned agreement per customer: quotes, subscriptions and their versions,
    usage, invoices, payments, and revenue schedules read from it. Official
    SDKs: TypeScript (@alguna/sdk), Python (alguna), Go
    (github.com/alguna-io/alguna-go), Rust (alguna), and the alguna CLI
    (@alguna/cli).
  title: Alguna Public API
  version: '2026-04-01'
servers:
  - url: https://api.alguna.io
    x-fern-server-name: Production
security:
  - bearerAuth: []
tags:
  - name: Billing Events and Metrics
  - name: Checkout Sessions
  - name: Credit Notes
  - name: Credits
  - name: Customer Portal Sessions
  - name: Customers
  - name: Feedback
  - name: Insights
  - name: Integrations
  - name: Invoices
  - name: Merchants
  - name: Payments
  - name: Plans
  - name: Product Bundles
  - name: Products
  - name: Quotes
  - name: Refunds
  - name: Revenue Schedules
  - name: Subscription Changes
  - name: Subscription Versions
  - name: Subscriptions
  - name: Tags
  - name: Tax
  - name: Users
  - name: Wallet Grants
  - name: Wallets
paths:
  /insights/revenue:
    get:
      tags:
        - Insights
      summary: Get net revenue summary
      description: >-
        Returns a net revenue summary including current month, last month, and
        annualized figures broken down by fixed (recurring) and metered
        (usage-based) revenue.
      operationId: get-revenue-insights
      parameters:
        - in: header
          name: Alguna-Version
          required: true
          schema:
            enum:
              - '2026-04-01'
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NetRevenueResponse'
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/ErrorResponse'
                  - $ref: '#/components/schemas/GatewayErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Forbidden — the organization does not have access to this feature
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
        '502':
          description: >-
            Bad Gateway — sent by the infrastructure in front of the API; the
            body is not JSON. Safe to retry.
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: >-
            Service Unavailable — a dependency is temporarily unavailable. Retry
            with backoff.
        '504':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: >-
            Gateway Timeout — the request did not finish in time. Retry with
            backoff; use an idempotency key for writes.
components:
  schemas:
    NetRevenueResponse:
      properties:
        currency:
          description: ISO 4217 currency code
          example: USD
          type: string
        fixed_revenue_last_calendar_month:
          description: Fixed revenue for the previous month
          example: '95000.00'
          type: string
        fixed_revenue_this_calendar_month:
          description: Fixed (recurring) revenue for the current month
          example: '100000.00'
          type: string
        fixed_revenue_this_calendar_month_annualized:
          description: Annualized fixed revenue based on the current month
          example: '1200000.00'
          type: string
        fixed_revenue_twelve_calendar_months_ago_annualized:
          description: Annualized fixed revenue from twelve months ago
          example: '960000.00'
          type: string
        metered_revenue_last_calendar_month:
          description: Metered revenue for the previous month
          example: '23000.00'
          type: string
        metered_revenue_this_calendar_month:
          description: Metered (usage-based) revenue for the current month
          example: '25000.00'
          type: string
        metered_revenue_this_calendar_month_annualized:
          description: Annualized metered revenue based on the current month
          example: '300000.00'
          type: string
        metered_revenue_twelve_calendar_months_ago_annualized:
          description: Annualized metered revenue from twelve months ago
          example: '240000.00'
          type: string
        net_revenue_last_calendar_month:
          description: Net revenue for the previous calendar month
          example: '118000.00'
          type: string
        net_revenue_this_calendar_month:
          description: Net revenue for the current calendar month
          example: '125000.00'
          type: string
        net_revenue_this_calendar_month_annualized:
          description: Annualized net revenue based on the current month
          example: '1500000.00'
          type: string
        net_revenue_twelve_calendar_months_ago_annualized:
          description: Annualized net revenue from twelve months ago for comparison
          example: '1200000.00'
          type: string
        one_off_fixed_revenue_last_calendar_month:
          description: >-
            Portion of last month's fixed revenue from one-off charges, already
            included in it
          example: '4000.00'
          type: string
        one_off_fixed_revenue_this_calendar_month:
          description: >-
            Portion of this month's fixed revenue from one-off charges, already
            included in it
          example: '5000.00'
          type: string
        one_off_fixed_revenue_this_calendar_month_annualized:
          description: >-
            Annualized portion of this month's fixed revenue from one-off
            charges
          example: '60000.00'
          type: string
        one_off_fixed_revenue_twelve_calendar_months_ago_annualized:
          description: Annualized one-off fixed revenue from twelve months ago
          example: '48000.00'
          type: string
        one_off_metered_revenue_last_calendar_month:
          description: >-
            Portion of last month's metered revenue from one-off charges,
            already included in it
          example: '800.00'
          type: string
        one_off_metered_revenue_this_calendar_month:
          description: >-
            Portion of this month's metered revenue from one-off charges,
            already included in it
          example: '1000.00'
          type: string
        one_off_metered_revenue_this_calendar_month_annualized:
          description: >-
            Annualized portion of this month's metered revenue from one-off
            charges
          example: '12000.00'
          type: string
        one_off_metered_revenue_twelve_calendar_months_ago_annualized:
          description: Annualized one-off metered revenue from twelve months ago
          example: '9600.00'
          type: string
      required:
        - currency
        - fixed_revenue_last_calendar_month
        - fixed_revenue_this_calendar_month
        - fixed_revenue_this_calendar_month_annualized
        - fixed_revenue_twelve_calendar_months_ago_annualized
        - metered_revenue_last_calendar_month
        - metered_revenue_this_calendar_month
        - metered_revenue_this_calendar_month_annualized
        - metered_revenue_twelve_calendar_months_ago_annualized
        - net_revenue_last_calendar_month
        - net_revenue_this_calendar_month
        - net_revenue_this_calendar_month_annualized
        - net_revenue_twelve_calendar_months_ago_annualized
        - one_off_fixed_revenue_last_calendar_month
        - one_off_fixed_revenue_this_calendar_month
        - one_off_fixed_revenue_this_calendar_month_annualized
        - one_off_fixed_revenue_twelve_calendar_months_ago_annualized
        - one_off_metered_revenue_last_calendar_month
        - one_off_metered_revenue_this_calendar_month
        - one_off_metered_revenue_this_calendar_month_annualized
        - one_off_metered_revenue_twelve_calendar_months_ago_annualized
      type: object
    ErrorResponse:
      description: The body of every error the API returns.
      properties:
        code:
          description: >-
            Machine-readable error code, such as `not_found` or
            `invoice_already_issued`. New codes may be added at any time, so
            handle a code you do not know by its HTTP status.
          type: string
        detail:
          description: Explanation of what went wrong
          type: string
        request_id:
          description: >-
            Identifies the request, as the `X-Request-Id` response header does.
            Quote it when contacting support.
          type: string
        status:
          description: HTTP status code of the response
          format: int64
          type: integer
        title:
          description: >-
            HTTP status text. Sent only by version, idempotency and
            credit-refusal errors.
          type: string
        type:
          description: Always `about:blank`. Sent only by version and idempotency errors.
          type: string
      required:
        - status
        - detail
      type: object
    GatewayErrorResponse:
      description: >-
        Returned by the API gateway when a request carries no valid API key,
        before the API handles it.
      properties:
        code:
          description: Machine-readable error code, e.g. `unauthenticated`
          type: string
        details:
          nullable: true
          type: object
        message:
          description: Explanation of what went wrong
          type: string
      required:
        - code
        - message
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: API Key
      description: API key authentication. Pass your API key as a Bearer token.
      scheme: bearer
      type: http
      x-fern-bearer:
        env: ALGUNA_API_KEY
        name: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.