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

# Org-wide customer aggregations

> Returns org-level summary cards for the Customers tab: total customer count, purchase count and total spend in the requested date range, and a gap-filled daily time-series of purchases over that range. Requires a Nevermined API key and Enterprise tier.



## OpenAPI

````yaml /api-reference/organizations-openapi.json get /organizations/{orgId}/customers/aggregations
openapi: 3.0.0
info:
  title: Nevermined Organizations API
  description: >-
    Manage a Nevermined organization programmatically — members, tiers, groups &
    budgets, treasury wallets, customers, webhooks, analytics, and
    agent-discovery surfaces.
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.sandbox.nevermined.app/api/v1
    description: Sandbox
  - url: https://api.live.nevermined.app/api/v1
    description: Live
security: []
tags:
  - name: Organizations
    x-group: General
    description: Organization settings, members & roles, and workspace context.
  - name: Organizations - Billing
    x-group: Billing
    description: Tiers, subscriptions, invoices, checkout, and the public tier catalog.
  - name: Groups
    x-group: Groups & Budgets
    description: Organization groups, per-group budgets, and shared payment methods.
  - name: Organizations - Wallets
    x-group: Wallets
    description: Custodial stablecoin treasury wallets.
  - name: Organizations - Customers
    x-group: Customers
    description: The white-label customer CRM (Enterprise).
  - name: Organizations - Analytics
    x-group: Analytics
    description: Revenue, MRR, usage, conversion, and per-member metrics.
  - name: Organizations - Webhooks
    x-group: Webhooks
    description: Outbound webhook subscriptions and deliveries.
  - name: Organizations - Activity
    x-group: Activity
    description: The organization activity feed.
  - name: Organizations - Realtime
    x-group: Realtime
    description: Realtime WebSocket secret management (Enterprise).
  - name: Invitations
    x-group: Invitations
    description: Invite people to an organization.
  - name: Organizations - Integration
    x-group: Agent Discovery
    description: >-
      Public agent-discovery surfaces (llms.txt, agentic-instructions.md,
      ai-catalog.json).
paths:
  /organizations/{orgId}/customers/aggregations:
    get:
      tags:
        - Organizations - Customers
      summary: Org-wide customer aggregations
      description: >-
        Returns org-level summary cards for the Customers tab: total customer
        count, purchase count and total spend in the requested date range, and a
        gap-filled daily time-series of purchases over that range. Requires a
        Nevermined API key and Enterprise tier.
      operationId: OrganizationCustomersController_getOrgAggregations
      parameters:
        - name: orgId
          required: true
          in: path
          description: Organization ID
          schema:
            type: string
        - name: to
          required: false
          in: query
          description: ISO-8601 end.
          schema:
            type: string
        - name: from
          required: false
          in: query
          description: ISO-8601 start.
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgCustomersAggregationsResponseDto'
        '401':
          description: Missing or invalid Nevermined API key
        '403':
          description: >-
            Caller is not an organization admin, or the org is not on the
            Enterprise tier
      security:
        - Authorization: []
components:
  schemas:
    OrgCustomersAggregationsResponseDto:
      type: object
      properties:
        customerCount:
          type: number
          description: Total customers ever seen for this org.
          example: 128
        purchaseCount:
          type: number
          description: Count of purchase transactions in range.
          example: 47
        totalSpent:
          type: string
          description: Sum of purchase prices in range, serialised as a string (bigint).
          example: '125000000'
        timeSeries:
          description: Gap-filled daily series.
          type: array
          items:
            $ref: '#/components/schemas/CustomerTimeSeriesPointDto'
        from:
          type: string
          description: Start of the requested window (ISO-8601).
          example: '2026-05-01T00:00:00.000Z'
        to:
          type: string
          description: End of the requested window (ISO-8601).
          example: '2026-05-31T23:59:59.000Z'
      required:
        - customerCount
        - purchaseCount
        - totalSpent
        - timeSeries
        - from
        - to
    CustomerTimeSeriesPointDto:
      type: object
      properties:
        date:
          type: string
          description: Bucket date in YYYY-MM-DD (UTC).
          example: '2026-05-01'
        purchases:
          type: number
          description: Number of purchases in this bucket.
          example: 5
        amount:
          type: string
          description: >-
            Sum of prices for purchases in this bucket, serialised as a string
            (bigint).
          example: '125000000'
      required:
        - date
        - purchases
        - amount
  securitySchemes:
    Authorization:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

## Related topics

- [Per-customer aggregations + drill-down series](/docs/api-reference/organizations--customers/per-customer-aggregations-+-drill-down-series.md)
- [Customers](/docs/solutions/organizations/customers.md)
- [Get an organization customer](/docs/api-reference/organizations--customers/get-an-organization-customer.md)
- [Unblock an organization customer](/docs/api-reference/organizations--customers/unblock-an-organization-customer.md)
- [Block an organization customer](/docs/api-reference/organizations--customers/block-an-organization-customer.md)
