---
title: "Calculate fees for a transaction that is missing them. Use force=true to recalculate (deletes existing PENDING fees first)."
method: POST
path: "/api/v1/admin/transactions/{transactionId}/calculate-fees"
tags: ["Transactions", "Admin"]
---

# Calculate fees for a transaction that is missing them. Use force=true to recalculate (deletes existing PENDING fees first).

`POST /api/v1/admin/transactions/{transactionId}/calculate-fees`

## Request

- Base URL: `https://core.quidkey.com`
- URL: `https://core.quidkey.com/api/v1/admin/transactions/{transactionId}/calculate-fees`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/banqzinc/apis/quidkey-api/docs/api/v1/admin/transactions/:transactionId/calculate-fees/post.ts> (a function with typed inputs; its response is checked against the schema)

Calculate fees for a transaction that is missing them. Use force=true to recalculate (deletes existing PENDING fees first).

## Path parameters

- `transactionId` string, uuid, required: Transaction ID

## Request body

- object
  - `force` boolean: Delete existing PENDING fees and recalculate. Fails if any fees are invoiced or settled.

## Response `200`

Success

- object
  - `success` boolean, required
  - `data` object, required
    - `transaction_id` string, uuid, required
    - `transaction_number` string, required
    - `fees_calculated` number, required
    - `fees` object[], required
      - `id` string, uuid, required
      - `type` string, required
      - `amount` number, required: Fee amount in decimal
      - `currency` string, required
      - `rate_type` string, required
      - `rate_value` number, required
      - `notes` string, nullable, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Response
- `422`: Response

## Changes

- **2026-06-17** `b372e7d5563d`: 1 info
  - endpoint added
- **2025-11-02** `919eb7a392aa`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/banqzinc/apis/quidkey-api/changes/api/v1/admin/transactions/:transactionId/calculate-fees/post.md)

---

[API](https://skmtc.dev/banqzinc/apis/quidkey-api.md) - [All operations](https://skmtc.dev/banqzinc/apis/quidkey-api/llms.txt) - [OpenAPI document](https://skmtc.dev/banqzinc/apis/quidkey-api/revisions/f86d2bdbcb08?raw)
