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

# Get your prepaid MAG3NT fee meter balance

> Every settled DIRECT payment above your membership quota debits a flat MAG3NT fee from this prepaid balance. Debits always succeed (an already-verified on-chain payment can never be refused), so the balance can go negative up to debt_floor; past that, pay-link discovery for your DIRECT credentials is withheld until you deposit.




## OpenAPI

````yaml /openapi.yaml get /api/fees/balance
openapi: 3.1.0
info:
  title: mag3nt API
  version: '2026-07-16'
  description: >
    Payment infrastructure for AI agents. Issue virtual cards backed by
    credentials, pay for API access via x402/AP2/MPP protocols, and settle in
    USDC on Base. Also covers Native Token Rails membership and recurring
    billing agreements, ERC-20 project token registration (including B20) and
    prepaid MAG3NT fee metering for DIRECT (non-custodial) settlement, the
    credential marketplace and Credential Token (CT) markets, account-wide token
    holdings, and signed webhooks for payment and subscription lifecycle events.
  contact:
    name: mag3nt
    url: https://mag3nt.com
  license:
    name: Proprietary
    url: https://github.com/mag3nt-com/mag3nt-node/blob/main/LICENSE
servers:
  - url: https://mag3nt.com
    description: Production
  - url: https://staging.mag3nt.com
    description: Staging, Base mainnet
security:
  - ApiKeyAuth: []
tags:
  - name: Payments
    description: Universal outbound protocol payments
  - name: Cards
    description: Virtual payment card lifecycle
  - name: Keys
    description: Developer API key management
  - name: Funding
    description: Treasury deposits and balances
  - name: x402
    description: HTTP 402 payment protocol
  - name: AP2
    description: Agent-to-Agent Payment Protocol
  - name: MPP
    description: Micropayment Protocol with streaming
  - name: Pay Links
    description: Shareable payment URLs
  - name: Withdrawals
    description: Withdraw unspent funds back to wallet
  - name: Settlement
    description: On-chain settlement status
  - name: Webhooks
    description: Signed payment and subscription lifecycle notifications for sellers
  - name: Status
    description: System health and configuration
  - name: Membership
    description: Native Token Rails membership tiers, checkout, and auto-renew
  - name: Billing
    description: Recurring billing agreements funded by AP2 open mandates
  - name: Tokens
    description: >-
      Register an ERC-20 contract (including B20 tokens) for DIRECT credential
      settlement
  - name: Fees
    description: Prepaid MAG3NT fee meter for DIRECT settlement overage
  - name: Marketplace
    description: >-
      List and transfer credential businesses (proof of record) on the mag3nt
      marketplace
  - name: Credential Tokens
    description: Credential Token (CT) launch and Uniswap V4 markets
  - name: Holdings
    description: Account-wide Credential Token balances
externalDocs:
  description: mag3nt documentation
  url: https://docs.mag3nt.com
paths:
  /api/fees/balance:
    get:
      tags:
        - Fees
      summary: Get your prepaid MAG3NT fee meter balance
      description: >
        Every settled DIRECT payment above your membership quota debits a flat
        MAG3NT fee from this prepaid balance. Debits always succeed (an
        already-verified on-chain payment can never be refused), so the balance
        can go negative up to debt_floor; past that, pay-link discovery for your
        DIRECT credentials is withheld until you deposit.
      operationId: feesGetBalance
      responses:
        '200':
          description: Fee balance + recent events
          content:
            application/json:
              schema:
                type: object
                properties:
                  balance:
                    $ref: '#/components/schemas/FeeBalance'
                  events:
                    type: array
                    items:
                      $ref: '#/components/schemas/FeeEvent'
                  fee_per_settle:
                    type: number
                  debt_floor:
                    type: number
                  token:
                    type: object
                    properties:
                      address:
                        type: string
                      network:
                        type: string
                      decimals:
                        type: integer
                      symbol:
                        type: string
                        example: MAG3NT
                  treasury:
                    type: string
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    FeeBalance:
      type: object
      description: >-
        Prepaid MAG3NT balance covering the flat per-settle fee for DIRECT
        overage (spec 006).
      properties:
        balance:
          type: number
          description: >-
            Net balance in MAG3NT. Can go negative (debt) up to the debt floor;
            debits never fail an already-verified on-chain payment.
        totalDeposited:
          type: number
        totalSpent:
          type: number
    FeeEvent:
      type: object
      properties:
        id:
          type: string
          example: mfd_9f8e7d6c...
        wallet_address:
          type: string
        kind:
          type: string
          enum:
            - DEPOSIT
            - FEE
        amount:
          type: number
        source_id:
          type: string
          description: tx_hash for DEPOSIT events, settlement_id for FEE events.
        created_at:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          example: Card not found
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: API key prefixed with 'Bearer sx_live_...'

````