> ## 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 invoice activity

> Invoice activity for the caller's org (status, kind, currency, amount, due/paid date). Rows project from the org's issued IU fee invoices (kind: fees) — empty until the org's first charged billing cycle closes. Dark-metered (cost_bearer=platform) usage is never billable and never appears.



## OpenAPI

````yaml /v2/storefront-api-v2.yaml get /billing/invoice-activity
openapi: 3.0.0
info:
  title: Scope3 Storefront API
  version: 2.0.0
  description: |-
    REST API for partners to manage storefronts, inventory sources, and billing.

    ## Authentication

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

    ## Base URL

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

    ## For AI Agents

    AI agents can use the MCP endpoint at `/mcp/v2/storefront` 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/storefront
    description: Production server
security: []
tags:
  - name: Account
    description: Account management, service tokens, and preferences
  - name: Storefront
    description: Manage storefront and inventory sources
  - name: Storefront Agents
    description: List and manage registered sales, signals, and outcomes agents
  - name: Storefront Activity
    description: Audit log of configuration and inventory changes on the storefront
  - name: Storefront Billing
    description: Payout bank details and billing configuration for storefronts
  - name: AI Usage
    description: Storefront AI token usage visibility by model
  - name: MCP
    description: Model Context Protocol endpoints
paths:
  /billing/invoice-activity:
    servers:
      - url: https://api.interchange.io/api/v2
        description: Production server
    get:
      tags:
        - Buyer Billing
      summary: Get invoice activity
      description: >-
        Invoice activity for the caller's org (status, kind, currency, amount,
        due/paid date). Rows project from the org's issued IU fee invoices
        (kind: fees) — empty until the org's first charged billing cycle closes.
        Dark-metered (cost_bearer=platform) usage is never billable and never
        appears.
      operationId: getInvoiceActivity
      responses:
        '200':
          description: Get invoice activity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvoiceActivityResponse'
        '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:
    InvoiceActivityResponse:
      description: >-
        Invoice activity for the caller’s org, newest first. Empty until the
        first billing period closes.
      type: object
      properties:
        rows:
          type: array
          items:
            $ref: '#/components/schemas/InvoiceActivityRow'
      required:
        - rows
      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
    InvoiceActivityRow:
      description: One row of invoice activity for a buyer (or seller) org.
      type: object
      properties:
        status:
          description: Status of one invoice activity row
          type: string
          enum:
            - open
            - accruing
            - paid
            - overdue
        ref:
          description: Short reference/number for this activity row, when assigned
          type: string
        label:
          description: Human-readable description of the invoice activity row
          type: string
        kind:
          description: >-
            What the invoice line is for: media spend, platform fees, metered AI
            usage, or a credit-line purchase
          type: string
          enum:
            - media
            - fees
            - usage
            - credit_purchase
        currency:
          description: ISO 4217 currency code
          example: USD
          type: string
          minLength: 3
          maxLength: 3
          pattern: ^[A-Z]{3}$
        amountMinor:
          description: Invoice amount in minor units (e.g. cents for USD)
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        dueAt:
          description: Payment due date (ISO 8601), when the row is a formal invoice
          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 invoice was paid (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))$
        invoiceRef:
          description: Reference to the underlying invoice document, when one exists
          type: string
        meta:
          description: Additional row-kind-specific metadata
          type: object
          properties:
            activityKey:
              description: Internal key correlating this row to its source activity
              type: string
            iuQuantity:
              description: >-
                Inventory-unit quantity backing a usage row, when `kind` is
                "usage". Usage rows appear only after the IU rate-card is
                ratified (AI-3027) and always exclude cost_bearer=platform (dark
                meter) events.
              type: number
          additionalProperties: false
      required:
        - status
        - label
        - kind
        - currency
        - amountMinor
      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

````