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

# Get Org Members Financial

> Get paginated financial data for organization members.

Returns financial information (lifetime spend, current budget) for all members
within the specified organization. Access is restricted to:
- Organization Admins
- Organization Owners
- OpenHands members (users with @openhands.dev emails)

Args:
    org_id: Organization ID (UUID)
    page_id: Optional pagination offset encoded as string
    limit: Maximum items per page (1-100, default 10)
    email: Optional email filter (case-insensitive partial match)
    user_id: Authenticated user ID (injected by require_financial_data_access)

Returns:
    OrgMemberFinancialPage: Paginated response with member financial data
        - items: List of members with user_id, email, lifetime_spend,
                 current_budget, and max_budget
        - current_page: Current page number (1-indexed)
        - per_page: Items per page
        - next_page_id: Offset for next page, or None if no more pages

Raises:
    HTTPException: 401 if user is not authenticated
    HTTPException: 403 if user lacks access (not admin/owner and not @openhands.dev)
    HTTPException: 400 if page_id is invalid
    HTTPException: 500 if retrieval fails



## OpenAPI

````yaml /openapi/openhands-cloud.json get /api/organizations/{org_id}/members/financial
openapi: 3.1.0
info:
  title: OpenHands
  description: 'OpenHands: Code Less, Make More'
  version: 0.0.1
servers: []
security: []
paths:
  /api/organizations/{org_id}/members/financial:
    get:
      tags:
        - Orgs
      summary: Get Org Members Financial
      description: >-
        Get paginated financial data for organization members.


        Returns financial information (lifetime spend, current budget) for all
        members

        within the specified organization. Access is restricted to:

        - Organization Admins

        - Organization Owners

        - OpenHands members (users with @openhands.dev emails)


        Args:
            org_id: Organization ID (UUID)
            page_id: Optional pagination offset encoded as string
            limit: Maximum items per page (1-100, default 10)
            email: Optional email filter (case-insensitive partial match)
            user_id: Authenticated user ID (injected by require_financial_data_access)

        Returns:
            OrgMemberFinancialPage: Paginated response with member financial data
                - items: List of members with user_id, email, lifetime_spend,
                         current_budget, and max_budget
                - current_page: Current page number (1-indexed)
                - per_page: Items per page
                - next_page_id: Offset for next page, or None if no more pages

        Raises:
            HTTPException: 401 if user is not authenticated
            HTTPException: 403 if user lacks access (not admin/owner and not @openhands.dev)
            HTTPException: 400 if page_id is invalid
            HTTPException: 500 if retrieval fails
      operationId: >-
        get_org_members_financial_api_organizations__org_id__members_financial_get
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Org Id
        - name: page_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Pagination offset encoded as string
            description: Offset for pagination (e.g., "0", "10", "20")
          description: Offset for pagination (e.g., "0", "10", "20")
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            exclusiveMinimum: 0
            title: Maximum items per page
            default: 10
        - name: email
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 255
                minLength: 1
              - type: 'null'
            title: Filter members by email (case-insensitive partial match)
        - name: X-Org-Id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Org-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgMemberFinancialPage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    OrgMemberFinancialPage:
      properties:
        items:
          items:
            $ref: '#/components/schemas/OrgMemberFinancialResponse'
          type: array
          title: Items
        current_page:
          type: integer
          title: Current Page
          default: 1
        per_page:
          type: integer
          title: Per Page
          default: 10
        next_page_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Page Id
      type: object
      required:
        - items
      title: OrgMemberFinancialPage
      description: Paginated response for organization member financial data.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    OrgMemberFinancialResponse:
      properties:
        user_id:
          type: string
          title: User Id
        email:
          anyOf:
            - type: string
            - type: 'null'
          title: Email
        lifetime_spend:
          type: number
          title: Lifetime Spend
        current_budget:
          type: number
          title: Current Budget
        max_budget:
          anyOf:
            - type: number
            - type: 'null'
          title: Max Budget
      type: object
      required:
        - user_id
        - email
        - lifetime_spend
        - current_budget
        - max_budget
      title: OrgMemberFinancialResponse
      description: Financial data for a single organization member.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-Access-Token

````