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

# Get platform fee

> Returns the MW platform fee for a given USD amount based on your account's fee configuration. This is a lightweight call with no external API dependencies — suitable for real-time display as users type amounts.

**Note:** The fee is for display only. It is not deducted from the USDC transferred on-chain.



## OpenAPI

````yaml /openapi.json get /api/payouts/fee
openapi: 3.0.3
info:
  title: MW Payouts API
  version: 1.0.0
  description: >-
    The MW Payouts API lets you programmatically retrieve exchange-rate quotes,
    calculate platform fees, and submit USDC-to-fiat payout transfers on behalf
    of your account.


    All requests must be authenticated with an API key obtained from the
    **Developers** section of the dashboard. API keys are for **server-side use
    only** — never embed them in client-side code.
  contact:
    name: MW Support
    email: support@madhousewallet.com
servers:
  - url: https://business.madhousewallet.com
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Payouts
    description: USDC-to-fiat payout operations
  - name: Recipients
    description: Payout recipient management
paths:
  /api/payouts/fee:
    get:
      tags:
        - Payouts
      summary: Get platform fee
      description: >-
        Returns the MW platform fee for a given USD amount based on your
        account's fee configuration. This is a lightweight call with no external
        API dependencies — suitable for real-time display as users type amounts.


        **Note:** The fee is for display only. It is not deducted from the USDC
        transferred on-chain.
      operationId: getPayoutFee
      parameters:
        - name: amount
          in: query
          required: true
          schema:
            type: number
            minimum: 0.01
            maximum: 1000000
          description: USD amount to calculate the fee for
          example: 500
      responses:
        '200':
          description: Fee calculated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FeeResponse'
              example:
                mwFee: 7.5
                mwFeePercentage: 1.5
        '400':
          description: Invalid amount
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded (60 requests/minute per key)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    FeeResponse:
      type: object
      properties:
        mwFee:
          type: number
          description: >-
            Calculated MW platform fee in USD (display only — not deducted
            on-chain)
          example: 7.5
        mwFeePercentage:
          type: number
          description: Fee as a percentage (e.g. 1.5 means 1.5%)
          example: 1.5
      required:
        - mwFee
        - mwFeePercentage
    Error:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message
      required:
        - error
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Pass your API key as a Bearer token: `Authorization: Bearer
        mw_live_<keyId>_<secret>`

````