---
title: "Run FX revaluation for an assigned QA test company"
method: POST
path: "/accountant/companies/{customerId}/gl-periods/{periodId}/fx-revaluation"
tags: ["GL Periods"]
---

# Run FX revaluation for an assigned QA test company

`POST /accountant/companies/{customerId}/gl-periods/{periodId}/fx-revaluation`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/gl-periods/{periodId}/fx-revaluation`
- Auth: HTTP bearer

## Response `200`

Revaluation completed

- FxRevaluationResultResponse
  - `success` boolean
  - `data` FxRevaluationResult
    - `runId` string, uuid, required
    - `companyId` string, uuid, required
    - `periodId` string, uuid, required
    - `status` 'in_progress' | 'completed', required
    - `idempotent` boolean, required
    - `positionsRevalued` integer, required
    - `netUnrealizedFxCents` integer, required
    - `journalEntryIds` string[], required

## Other responses

- `202`: Identical run already in progress
- `403`: Insufficient permissions or not a company member
- `404`: Hidden outside the QA test-company boundary
- `409`: Changed inputs require controlled restatement
- `422`: A required accounting authority is missing, stale, or locked

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) · [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) · [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/20090ea32b0d?raw)
