> ## 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 revenue schedule for a customer

> Returns the aggregated revenue schedule for all of a customer's subscriptions and ad-hoc invoices.



## OpenAPI

````yaml /api-reference/v2/specs/2026-04-01.json get /revenue-schedules/customer/{id}
openapi: 3.1.0
info:
  title: Alguna Public API
  version: '2026-04-01'
servers:
  - url: https://api.alguna.io
security:
  - bearerAuth: []
tags:
  - name: Billing Events and Metrics
  - name: Credit Notes
  - name: Credits
  - name: Customer Portal Sessions
  - name: Customers
  - name: Insights
  - name: Invoices
  - name: Payments
  - name: Plans
  - name: Product Bundles
  - name: Products
  - name: Refunds
  - name: Revenue Schedules
  - name: Subscription Changes
  - name: Subscription Versions
  - name: Subscriptions
  - name: Wallet Grants
  - name: Wallets
paths:
  /revenue-schedules/customer/{id}:
    get:
      tags:
        - Revenue Schedules
      summary: Get revenue schedule for a customer
      description: >-
        Returns the aggregated revenue schedule for all of a customer's
        subscriptions and ad-hoc invoices.
      operationId: get-revenue-schedule-by-customer
      parameters:
        - in: header
          name: Alguna-Version
          required: true
          schema:
            enum:
              - '2026-04-01'
            type: string
        - in: path
          name: id
          required: true
          schema:
            description: Unique identifier for the customer
            type: string
        - in: query
          name: currency
          required: true
          schema:
            description: >-
              Target currency for conversion. Uses the entity's default if not
              specified.
            example: USD
            type: string
        - in: query
          name: interval
          required: true
          schema:
            description: Time interval for schedule entries
            enum:
              - daily
              - monthly
            example: monthly
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RevenueScheduleReportResponse'
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '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
components:
  schemas:
    RevenueScheduleReportResponse:
      properties:
        currency:
          description: ISO 4217 currency code
          example: USD
          type: string
        end_date:
          description: End date of the schedule
          example: '2027-01-01T00:00:00Z'
          format: date-time
          type: string
        entries:
          description: Chronologically ordered schedule entries
          items:
            $ref: '#/components/schemas/RevenueScheduleEntryResponse'
          type: array
        interval:
          description: Time interval of entries
          enum:
            - daily
            - monthly
          example: monthly
          type: string
        start_date:
          description: Start date of the schedule
          example: '2026-01-01T00:00:00Z'
          format: date-time
          type: string
      required:
        - currency
        - end_date
        - entries
        - interval
        - start_date
      type: object
    ErrorResponse:
      properties:
        detail:
          type: string
        status:
          format: int64
          type: integer
      required:
        - status
        - detail
      type: object
    RevenueScheduleEntryResponse:
      properties:
        end_date:
          description: End date of the entry period
          example: '2026-02-01T00:00:00Z'
          format: date-time
          type: string
        new_contract_asset:
          description: Change in contract asset (unbilled revenue) for this period
          example: '3000.00'
          type: string
        new_deferred_revenue:
          description: Change in deferred revenue for this period
          example: '-5000.00'
          type: string
        new_fixed_revenue:
          description: Change in fixed revenue for this period
          example: '5000.00'
          type: string
        new_metered_revenue:
          description: Change in metered revenue for this period
          example: '1200.00'
          type: string
        new_one_off_revenue:
          description: Change in one-off revenue for this period
          example: '500.00'
          type: string
        new_recognized_revenue:
          description: Change in recognized revenue (fixed + metered) for this period
          example: '6200.00'
          type: string
        start_date:
          description: Start date of the entry period
          example: '2026-01-01T00:00:00Z'
          format: date-time
          type: string
        total_contract_asset:
          description: Cumulative contract asset
          example: '15000.00'
          type: string
        total_deferred_revenue:
          description: Cumulative deferred revenue
          example: '25000.00'
          type: string
        total_fixed_revenue:
          description: Cumulative fixed revenue
          example: '30000.00'
          type: string
        total_metered_revenue:
          description: Cumulative metered revenue
          example: '7200.00'
          type: string
        total_one_off_revenue:
          description: Cumulative one-off revenue
          example: '2000.00'
          type: string
        total_recognized_revenue:
          description: Cumulative recognized revenue
          example: '37200.00'
          type: string
      required:
        - end_date
        - new_contract_asset
        - new_deferred_revenue
        - new_fixed_revenue
        - new_metered_revenue
        - new_one_off_revenue
        - new_recognized_revenue
        - start_date
        - total_contract_asset
        - total_deferred_revenue
        - total_fixed_revenue
        - total_metered_revenue
        - total_one_off_revenue
        - total_recognized_revenue
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: API Key
      description: API key authentication. Pass your API key as a Bearer token.
      scheme: bearer
      type: http

````