---
updatedAt: 2025-02-12T22:56:09.000Z
agentTools:
  projectIndex: https://platform.toq.io/llms.txt
---

# Transaction fee

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "Endpoints to manage client fees",
    "version": "v1.0.0",
    "title": "Fees",
    "license": {
      "name": "license"
    }
  },
  "paths": {
    "/customers/{customerId}/clients/{clientId}/transactions/fees": {
      "servers": [
        {
          "url": "https://api.sandbox.toq.io/billing",
          "description": "Simulation environment"
        },
        {
          "url": "https://api.toq.io/billing",
          "description": "Production environment"
        }
      ],
      "post": {
        "tags": [
          "Fees"
        ],
        "summary": "Transaction fee",
        "operationId": "TransactionFeeUsingPOST",
        "parameters": [
          {
            "name": "customerId",
            "in": "path",
            "description": "customerId",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "clientId",
            "in": "path",
            "description": "clientId",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "provider",
            "in": "query",
            "description": "Banking provider of the source account, allowed value: RAILSBANK, MODULR, LOOMIS, CLEARBANK, CURRENCYCLOUD",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Transaction fees",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "amount",
                  "bankPaymentScheme",
                  "beneficiaryAccountId",
                  "currency",
                  "sourceAccountId"
                ],
                "properties": {
                  "amount": {
                    "type": "number",
                    "format": "double"
                  },
                  "bankPaymentScheme": {
                    "type": "string",
                    "example": "INTERLEDGER"
                  },
                  "beneficiaryAccountId": {
                    "type": "string"
                  },
                  "currency": {
                    "type": "string",
                    "example": "GBP"
                  },
                  "sourceAccountId": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "type": "number",
                  "format": "double"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "deprecated": false,
        "security": [
          {
            "clientCredentials": []
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.sandbox.toq.io/billing/api",
      "description": "Simulation environment"
    },
    {
      "url": "https://api.toq.io/billing/api",
      "description": "Production environment"
    }
  ],
  "components": {
    "securitySchemes": {
      "clientCredentials": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://api.toq.io/iam/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```