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

# Get fee invoice

> One fee invoice with its line items (plan commitment, overage with IU quantity and rate, payments applied). Scoped to the caller’s org — another org’s invoice number is a 404.



## OpenAPI

````yaml /v2/buyer-api-v2.yaml get /billing/fee-invoices/{invoiceNumber}
openapi: 3.0.0
info:
  title: Scope3 Buyer API
  version: 2.0.0
  description: |-
    REST API for advertisers to manage advertisers, campaigns, and reporting.

    ## Authentication

    All endpoints require a Bearer token in the Authorization header:
    ```
    Authorization: Bearer your-api-key
    ```

    ## Base URL

    `https://api.interchange.io/api/v2/buyer`

    ## For AI Agents

    AI agents can use the MCP endpoint at `/mcp/v2/buyer` with three tools:
    - `initialize`: Start an MCP session
    - `api_call`: Make REST API calls
    - `ask_about_capability`: Learn about API features
servers:
  - url: https://api.interchange.io/api/v2/buyer
    description: Production server
security: []
tags:
  - name: Account
    description: Account management, service tokens, and preferences
  - name: Advertisers
    description: Manage advertisers
  - name: Product Discovery
    description: Discover and select products
  - name: Campaigns
    description: Manage advertising campaigns
  - name: Creatives
    description: Build, manage, and sync campaign creatives via AdCP Creative Protocol
  - name: Reporting
    description: Access performance metrics
  - name: Event Sources
    description: >-
      Manage event source configurations and log conversion/marketing events for
      attribution
  - name: Property Lists
    description: Validate property lists against AAO registry
  - name: Sales Agents
    description: View and connect sales agents
  - name: Measurement
    description: Measurement sources, records, context, and freshness
  - name: Syndication
    description: Syndicate resources to ADCP agents
  - name: Tasks
    description: Track async operation status
  - name: Planning Briefs
    description: >-
      Share prospective briefs with publishers and collect their
      fit/quote/clarify/decline/book responses (gated by the
      demand-supply-signals flag).
  - name: Buyer Billing
    description: >-
      Consolidated invoicing for buyers — invoices and pending invoice items
      issued by Scope3 across the buyer customer.
  - name: MCP
    description: Model Context Protocol endpoints for AI agents
paths:
  /billing/fee-invoices/{invoiceNumber}:
    servers:
      - url: https://api.interchange.io/api/v2
        description: Production server
    get:
      tags:
        - Buyer Billing
      summary: Get fee invoice
      description: >-
        One fee invoice with its line items (plan commitment, overage with IU
        quantity and rate, payments applied). Scoped to the caller’s org —
        another org’s invoice number is a 404.
      operationId: getFeeInvoice
      parameters:
        - in: path
          name: invoiceNumber
          schema:
            description: The invoice number to fetch
            type: integer
            maximum: 9007199254740991
            minimum: 1
          required: true
          description: The invoice number to fetch
      responses:
        '200':
          description: Get fee invoice
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FeeInvoice'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    FeeInvoice:
      description: One fee invoice with its line items.
      type: object
      properties:
        invoiceNumber:
          description: Gapless sequential invoice number (platform-wide series)
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        invoiceRef:
          description: Display reference for the invoice (e.g. "FEE-000042")
          example: FEE-000042
          type: string
        cycleKey:
          description: The billing cycle the invoice covers (e.g. "2026-07")
          example: 2026-07
          type: string
        cycleStart:
          description: Cycle start (ISO 8601, UTC calendar month)
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
        cycleEnd:
          description: Cycle end, exclusive (ISO 8601)
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
        currency:
          description: ISO 4217 currency code
          example: USD
          type: string
          minLength: 3
          maxLength: 3
          pattern: ^[A-Z]{3}$
        totalMinor:
          description: >-
            Outstanding balance in minor units: amounts owed minus payments
            applied. 0 once fully settled.
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        issuedAt:
          description: When the invoice was issued (ISO 8601)
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
        paidAt:
          description: >-
            When the balance reached zero (ISO 8601), or null while any amount
            is outstanding
          nullable: true
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
        lines:
          description: >-
            Invoice line items in write order. `commitment`/`overage` lines are
            frozen at issuance; `payment_applied` lines may be appended as
            charges settle.
          type: array
          items:
            $ref: '#/components/schemas/FeeInvoiceLine'
      required:
        - invoiceNumber
        - invoiceRef
        - cycleKey
        - cycleStart
        - cycleEnd
        - currency
        - totalMinor
        - issuedAt
        - paidAt
        - lines
      additionalProperties: false
    ErrorResponse:
      description: Standard error response
      type: object
      properties:
        data:
          type: string
          nullable: true
          enum:
            - null
        error:
          $ref: '#/components/schemas/ApiError'
      required:
        - data
        - error
      additionalProperties: false
    FeeInvoiceLine:
      description: One line item on a fee invoice.
      type: object
      properties:
        lineKind:
          description: >-
            What the invoice line is: the plan commitment for the cycle, usage
            overage (IUs × rate), or a payment applied against the balance
            (negative amount).
          type: string
          enum:
            - commitment
            - overage
            - payment_applied
        description:
          description: Human-readable description of the line
          type: string
        quantity:
          description: >-
            Intelligence Units the line covers — set on overage lines, null
            otherwise
          nullable: true
          type: number
        unitRateMinor:
          description: >-
            Per-IU overage rate in minor units — set on overage lines, null
            otherwise
          nullable: true
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        amountMinor:
          description: >-
            Line amount in minor units. Positive for amounts owed (commitment,
            overage); negative for payments applied.
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        createdAt:
          description: When the line was written (ISO 8601)
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
      required:
        - lineKind
        - description
        - quantity
        - unitRateMinor
        - amountMinor
        - createdAt
      additionalProperties: false
    ApiError:
      description: Structured error object
      type: object
      properties:
        code:
          description: Machine-readable error code
          type: string
        message:
          description: Human-readable error message
          type: string
        field:
          description: Field path associated with the error
          type: string
        details:
          description: Additional error context
          type: object
          additionalProperties: {}
      required:
        - code
        - message
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or access token

````