> ## Documentation Index
> Fetch the complete documentation index at: https://requestnetwork-docs-openapi-secure-payments.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Preview the fee plan for a payment

> Calculation-only preview of the fee plan that would apply to a payment with the given amount, currency, and flow. Uses the same fee resolver as creation. Has no side effects: does not create a secure payment, payment request, or persist any snapshot.



## OpenAPI

````yaml /api-reference/openapi.v2.json post /v2/secure-payments/fees/preview
openapi: 3.0.0
info:
  title: Request Network API
  description: API for easily creating and paying Requests with Request Network.
  version: 0.13.0
  contact: {}
servers:
  - url: https://api.request.network
    description: Production server
  - url: https://api.stage.request.network
    description: Staging server
  - url: http://127.0.0.1:8080
    description: Local development server
security: []
tags:
  - name: V2/Request
    description: Core payment request operations (V2)
  - name: V2/Payments
    description: Payment search and management operations (V2)
  - name: V2/Payouts
    description: Pay a request without creating one first (V2)
  - name: V2/Payer
    description: Crypto-to-fiat payer management operations (V2)
  - name: V2/Currencies
    description: Currency operations (V2)
  - name: V2/Client IDs
    description: Client ID management (V2)
  - name: V2/Secure Payment
    description: Secure payment operations with token-based access (V2)
  - name: V2/Payee Destination
    description: Payee destination management (V2)
externalDocs:
  description: Request Network Docs
  url: https://docs.request.network/request-network-api
paths:
  /v2/secure-payments/fees/preview:
    post:
      tags:
        - V2/Secure Payment
      summary: Preview the fee plan for a payment
      description: >-
        Calculation-only preview of the fee plan that would apply to a payment
        with the given amount, currency, and flow. Uses the same fee resolver as
        creation. Has no side effects: does not create a secure payment, payment
        request, or persist any snapshot.
      operationId: SecurePaymentController_previewFees_v2
      parameters:
        - name: x-api-key
          in: header
          description: >-
            API key for authentication (optional if using Client ID, session, or
            orchestrator key)
          required: false
          schema:
            type: string
        - name: x-client-id
          in: header
          description: >-
            Client ID for frontend authentication (required when paired with
            orchestrator key)
          required: false
          schema:
            type: string
        - name: x-orchestrator-key
          in: header
          description: Orchestrator key for authentication (must be paired with Client ID)
          required: false
          schema:
            type: string
        - name: Authorization
          in: header
          description: >-
            Bearer token for session authentication (or use the session_token
            cookie). Only consulted when no x-orchestrator-key, x-api-key, or
            x-client-id header is present.
          required: false
          schema:
            type: string
        - name: Origin
          in: header
          description: >-
            Origin header (required for Client ID / orchestrator auth,
            automatically set by browser)
          required: false
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                amount:
                  type: string
                  description: >-
                    Base/displayed amount in human-readable units, as a decimal
                    string (e.g. "12.5").
                currency:
                  type: string
                  minLength: 1
                  description: >-
                    Currency symbol or currency ID (e.g. 'USDC' or
                    'USDC-mainnet'). Must resolve to a supported stablecoin.
                flow:
                  type: string
                  enum:
                    - get_paid
                    - pay
                  description: >-
                    `get_paid` for incoming payments (recipient creates link),
                    `pay` for outgoing payments (payer initiates).
                defaultFeeBearer:
                  type: string
                  enum:
                    - payer
                    - payee
                  description: >-
                    Payment-level override of the flow default. Per-fee config
                    bearer still wins.
              required:
                - amount
                - currency
                - flow
            examples:
              getPaid:
                summary: Get-paid preview (recipient bears fees by default)
                value:
                  amount: '100'
                  currency: USDC
                  flow: get_paid
              pay:
                summary: Pay preview (payer bears fees by default)
                value:
                  amount: '100'
                  currency: USDC
                  flow: pay
              withOverride:
                summary: Get-paid with payer-borne override
                value:
                  amount: '100'
                  currency: USDC
                  flow: get_paid
                  defaultFeeBearer: payer
      responses:
        '200':
          description: Fee plan preview
          content:
            application/json:
              schema:
                type: object
                properties:
                  version:
                    type: number
                    enum:
                      - 1
                  flow:
                    type: string
                    enum:
                      - get_paid
                      - pay
                  defaultFeeBearer:
                    type: string
                    enum:
                      - payer
                      - payee
                  grossAmountUsd:
                    type: string
                  netRecipientAmountUsd:
                    type: string
                  payerTotalAmountUsd:
                    type: string
                  totalFeesUsd:
                    type: string
                  payeeBorneFeesUsd:
                    type: string
                  payerBorneFeesUsd:
                    type: string
                  fees:
                    type: array
                    items:
                      type: object
                      properties:
                        type:
                          type: string
                        label:
                          type: string
                        feeBearer:
                          type: string
                          enum:
                            - payer
                            - payee
                        feeBearerSource:
                          type: string
                          enum:
                            - fee_config
                            - payment_default_override
                            - flow_default
                            - forced_fee_policy
                        percentageBps:
                          type: number
                        capUsd:
                          type: string
                          nullable: true
                        fixedAmountUsd:
                          type: string
                          nullable: true
                        calculatedAmountUsd:
                          type: string
                        destinationResolver:
                          type: string
                        destinationRef:
                          type: object
                          properties:
                            evmAddress:
                              type: string
                            tronAddress:
                              type: string
                        configSource:
                          type: string
                      required:
                        - type
                        - label
                        - feeBearer
                        - feeBearerSource
                        - percentageBps
                        - capUsd
                        - calculatedAmountUsd
                        - destinationResolver
                        - destinationRef
                        - configSource
                required:
                  - version
                  - flow
                  - defaultFeeBearer
                  - grossAmountUsd
                  - netRecipientAmountUsd
                  - payerTotalAmountUsd
                  - totalFeesUsd
                  - payeeBorneFeesUsd
                  - payerBorneFeesUsd
                  - fees
        '400':
          description: Unsupported currency or invalid combination
        '401':
          description: Unauthorized
        '429':
          description: Too Many Requests

````