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

# Get Invoice Summary

Get aggregated summary totals for partner invoices matching the specified filters. Returns counts and totals for balance, billed, and paid amounts. Accepts the same request body as the invoice search endpoint.


## OpenAPI

````yaml openapi/network-billing.yaml post /networks/billings/affiliates/summary
openapi: 3.0.3
info:
  title: Everflow Network API - Billing (Affiliate Invoices)
  description: >
    Endpoints for managing affiliate/partner invoices and payments. For billing
    workflows, see the [Partner Invoices
    guide](https://helpdesk.everflow.io/customer/processing-partner-invoices).
  version: 1.0.0
servers:
  - url: https://api.eflow.team/v1
security: []
tags:
  - name: Billing
paths:
  /networks/billings/affiliates/summary:
    post:
      tags:
        - Billing
      summary: Get Invoice Summary
      requestBody:
        content:
          application/json:
            example:
              filters:
                status: unpaid
            schema:
              type: object
              properties:
                search_terms:
                  type: array
                  description: Text search filters (same as the invoicestable endpoint).
                  items:
                    type: object
                    required:
                      - search_type
                      - value
                    properties:
                      search_type:
                        type: string
                        enum:
                          - name
                        description: The field to search on.
                      value:
                        type: string
                        description: The value to search.
                filters:
                  type: object
                  description: Filters (same as the invoicestable endpoint).
                  properties:
                    network_affiliate_ids:
                      type: array
                      items:
                        type: integer
                      description: Partner IDs to filter by.
                    network_affiliate_invoice_ids:
                      type: array
                      items:
                        type: integer
                      description: Specific invoice IDs to include.
                    account_manager_ids:
                      type: array
                      items:
                        type: integer
                      description: Account manager IDs to filter by.
                    min_start_time:
                      type: string
                      description: Start date filter (YYYY-MM-DD).
                    max_end_time:
                      type: string
                      description: End date filter (YYYY-MM-DD).
                    min_balance:
                      type: number
                      format: double
                      description: Minimum balance filter.
                    max_balance:
                      type: number
                      format: double
                      description: Maximum balance filter.
                    affiliate_invoice_status:
                      type: string
                      enum:
                        - paid
                        - unpaid
                        - deleted
                      description: Filter by invoice status.
                    is_hidden_affiliate:
                      type: string
                      enum:
                        - visible
                        - hidden
                      description: Filter by visibility to partner.
                    payment_terms:
                      type: array
                      items:
                        type: integer
                      description: Filter by payment terms (days).
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  total_count:
                    type: integer
                    description: Total number of matching invoices.
                  balance:
                    type: number
                    format: double
                    description: Total outstanding balance.
                  billed:
                    type: number
                    format: double
                    description: Total billed amount.
                  paid:
                    type: number
                    format: double
                    description: Total paid amount.
      security:
        - API Key: []
components:
  securitySchemes:
    API Key:
      description: The Everflow API key generated from the Control Center > Security.
      in: header
      name: X-Eflow-Api-Key
      type: apiKey

````