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

# Lock vault fees

> **Manager Function**: Locks the fees accrued by the vault, preventing further accrual until the fees are released or distributed. This operation is performed by the manager to manage fee collection and distribution.



## OpenAPI

````yaml POST /vault/{address}/lock-fees
openapi: 3.0.0
info:
  title: DeFindex API
  description: API documentation for DeFindex endpoints
  version: 1.0.0
  contact: {}
  x-logo:
    url: https://links.paltalabs.io/defindex-full.svg
    backgroundColor: '#0e0e0e'
    altText: DeFindex Logo
    href: https://defindex.io
servers: []
security: []
tags: []
paths:
  /vault/{address}/lock-fees:
    post:
      tags:
        - Vault
      summary: Lock vault fees
      description: >-
        **Manager Function**: Locks the fees accrued by the vault, preventing
        further accrual until the fees are released or distributed. This
        operation is performed by the manager to manage fee collection and
        distribution.
      operationId: VaultController_lockFees
      parameters:
        - name: address
          required: true
          in: path
          description: Stellar address of the vault contract
          schema:
            example: CBNKCU3HGFKHFOF7JTGXQCNKE3G3DXS5RDBQUKQMIIECYKXPIOUGB2S3
            type: string
        - name: network
          required: true
          in: query
          description: Stellar network to execute the transaction on (testnet or mainnet)
          schema:
            enum:
              - testnet
              - mainnet
            type: string
      requestBody:
        required: true
        description: >-
          Lock fees parameters. This operation may include the new fee basis
          points to set.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LockFeesDto'
            examples:
              Lock fees with new fee bps:
                value:
                  new_fee_bps: 20
                  caller: GB7NTQG4EXB7NZEA5GNFHIHEQVTGQTZ6OWKWUD535FBEHNSEVCKZULIY
              Lock fees without changing fee bps:
                value:
                  caller: GB7NTQG4EXB7NZEA5GNFHIHEQVTGQTZ6OWKWUD535FBEHNSEVCKZULIY
      responses:
        '200':
          description: Transaction prepared successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  xdr:
                    type: string
                    description: Base64 encoded transaction XDR ready for signing
                  simulationResponse:
                    type: object
                    description: Simulation result of the transaction
                  functionName:
                    type: string
                    description: Function name for the operation
                  params:
                    type: object
                    description: Parameters used for the operation
        '400':
          description: Bad request - invalid parameters
        '403':
          description: Forbidden - caller is not authorized for this operation
components:
  schemas:
    LockFeesDto:
      type: object
      properties:
        new_fee_bps:
          type: number
          description: >-
            New fee basis points (bps) to set. If not provided, fees will not be
            changed.
          example: 100
          minimum: 0
          maximum: 10000
        caller:
          type: string
          description: >-
            Stellar address of the user initiating the lock fees operation. Must
            be a valid Stellar public key **with Manager role.**
          example: GB7NTQG4EXB7NZEA5GNFHIHEQVTGQTZ6OWKWUD535FBEHNSEVCKZULIY
      required:
        - caller

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.