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

# Retrieve a fee

> Retrieve a fee by ID, including its variants.



## OpenAPI

````yaml /openapi.json get /fees/{fee_id}
openapi: 3.1.0
info:
  title: Sophic Engine API
  version: 0.1.0
servers:
  - url: https://api.engine.usesophic.com
security: []
tags:
  - description: Retrieve accounts, statements, and account documents.
    name: accounts
    x-group: Accounts
  - description: Read the audit trail of platform activity.
    name: activity
    x-group: Activity
  - description: Obtain OAuth access tokens for the Engine API.
    name: auth
    x-group: Authentication
  - description: Inspect the authenticated user or service actor.
    name: identity
    x-group: Identity
  - description: Retrieve fee schedules and billing information.
    name: billing
    x-group: Billing
  - description: Browse instruments and tradable products.
    name: catalog
    x-group: Catalog
  - description: Track onboarding applications through completion.
    name: onboarding
    x-group: Onboarding
  - description: Manage customer records and related person data.
    name: customers
    x-group: Customers
  - description: List platform events and inspect individual occurrences.
    name: events
    x-group: Events
  - description: Read positions, transactions, and account holdings.
    name: holdings
    x-group: Holdings
  - description: Retrieve legal agreements and required disclosures.
    name: legal-documents
    x-group: Legal Documents
  - description: Access prices and market data for instruments.
    name: market-data
    x-group: Market Data
  - description: Manage deposits, withdrawals, and funding accounts.
    name: payments
    x-group: Payments
  - description: Retrieve returns, earnings, and performance metrics.
    name: performance
    x-group: Performance
  - description: Place and manage orders, quotes, and trades.
    name: trading
    x-group: Trading
  - description: Read position and account valuations over time.
    name: valuation
    x-group: Valuation
  - description: Configure webhook endpoints and inspect deliveries.
    name: webhooks
    x-group: Webhooks
  - description: Upload files and retrieve stored documents.
    name: files
    x-group: Files
paths:
  /fees/{fee_id}:
    get:
      tags:
        - billing
      summary: Retrieve a fee
      description: Retrieve a fee by ID, including its variants.
      operationId: retrieve_fee_fees__fee_id__get
      parameters:
        - in: path
          name: fee_id
          required: true
          schema:
            title: Fee Id
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Fee'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Bad Request
      security:
        - HTTPBearer: []
components:
  schemas:
    Fee:
      properties:
        alias:
          description: Stable alias of the fee.
          title: Alias
          type: string
        chargeable_currencies:
          additionalProperties:
            $ref: '#/components/schemas/FeeChargeableCurrency'
          description: Fee amounts by chargeable currency.
          title: Chargeable Currencies
          type: object
        created_at:
          description: >-
            The timestamp (in
            [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html)
            format) of when the resource was created.
          format: date-time
          title: Created At
          type: string
        description:
          anyOf:
            - type: string
            - type: 'null'
          description: Description of the fee.
          title: Description
        display_name:
          description: Display name of the fee.
          title: Display Name
          type: string
        fee_type:
          allOf:
            - $ref: '#/components/schemas/FeeType'
          description: Type of fee.
        id:
          description: Unique resource identifier.
          title: Id
          type: string
        modified_at:
          description: >-
            The timestamp (in
            [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html)
            format) of when the resource was last modified.
          format: date-time
          title: Modified At
          type: string
        name:
          description: Internal name of the fee.
          title: Name
          type: string
        tax_rate:
          anyOf:
            - type: string
            - type: 'null'
          description: Tax rate applied to the fee.
          examples:
            - '0.20'
          title: Tax Rate
        transaction_type:
          anyOf:
            - type: string
            - type: 'null'
          description: Transaction type to which the fee applies.
          title: Transaction Type
        variants:
          description: Scoped variants of this fee.
          items:
            $ref: '#/components/schemas/FeeVariant'
          title: Variants
          type: array
      required:
        - created_at
        - modified_at
        - id
        - name
        - display_name
        - alias
        - description
        - tax_rate
        - fee_type
        - transaction_type
        - chargeable_currencies
        - variants
      title: Fee
      type: object
    Error:
      properties:
        code:
          description: A machine-readable error code.
          title: Code
          type: string
        context:
          additionalProperties:
            anyOf:
              - type: string
              - type: integer
          description: An optional object for adding extra context to the error.
          title: Context
          type: object
          x-remove-null-from-type-union: true
        detail:
          description: A human-readable description of the error.
          title: Detail
          type: string
        docs:
          description: A URL to documentation about this error code.
          title: Docs
          type: string
          x-remove-null-from-type-union: true
        params:
          description: An optional list of params that failed validation.
          items:
            $ref: '#/components/schemas/InvalidParam'
          title: Params
          type: array
          x-remove-null-from-type-union: true
      required:
        - detail
        - code
      title: Error
      type: object
    FeeChargeableCurrency:
      properties:
        unit_amount:
          description: Fee amount charged in this currency.
          examples:
            - '2.50'
          title: Unit Amount
          type: string
      required:
        - unit_amount
      title: FeeChargeableCurrency
      type: object
    FeeType:
      enum:
        - transaction
        - recurring
      properties: {}
      title: FeeType
      type: string
    FeeVariant:
      description: An immutable scoped slice of a fee.
      properties:
        created_at:
          description: >-
            The timestamp (in
            [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html)
            format) of when the resource was created.
          format: date-time
          title: Created At
          type: string
        description:
          anyOf:
            - type: string
            - type: 'null'
          description: Authoring note; never used in matching.
          title: Description
        fee:
          description: The fee this variant scopes.
          title: Fee
          type: string
        id:
          description: Unique resource identifier.
          title: Id
          type: string
        instrument:
          anyOf:
            - type: string
            - type: 'null'
          description: Instrument-id scope.
          title: Instrument
        instrument_type:
          anyOf:
            - type: string
            - type: 'null'
          description: Instrument-type scope.
          title: Instrument Type
        modified_at:
          description: >-
            The timestamp (in
            [ISO-8601](https://www.iso.org/iso-8601-date-and-time-format.html)
            format) of when the resource was last modified.
          format: date-time
          title: Modified At
          type: string
        portfolio_type:
          anyOf:
            - type: string
            - type: 'null'
          description: Forward-looking portfolio-type scope key.
          title: Portfolio Type
        transaction_type:
          anyOf:
            - type: string
            - type: 'null'
          description: Triggering transaction type (transaction fees only).
          title: Transaction Type
      required:
        - created_at
        - modified_at
        - id
        - fee
      title: FeeVariant
      type: object
    InvalidParam:
      properties:
        code:
          description: A machine-readable error code.
          title: Code
          type: string
        detail:
          description: Human-readable detail for error.
          title: Detail
          type: string
        path:
          description: Path to the field name (or index if a list) that errored.
          items:
            anyOf:
              - type: integer
              - type: string
          title: Path
          type: array
      required:
        - path
        - detail
        - code
      title: InvalidParam
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http

````