---
title: "Confirm the return was filed and permanently lock the requested months"
method: POST
path: "/companies/{companyId}/gl-periods/filing-lock-requests/{requestId}/approve"
tags: ["GL Periods"]
---

# Confirm the return was filed and permanently lock the requested months

`POST /companies/{companyId}/gl-periods/filing-lock-requests/{requestId}/approve`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/companies/{companyId}/gl-periods/filing-lock-requests/{requestId}/approve`
- Auth: HTTP bearer

A signed-in client owner or admin other than the requester approves
the exact months. The request and all month locks commit together.
The client reports that the return has been filed. A change to the
closed periods or their posted ledger requires a new request.

## Path parameters

- `companyId` string, uuid, required
- `requestId` string, uuid, required

## Request body

- object
  - `confirmFiled` true, required

## Response `200`

Approved and filing locked

- FilingLockRequestResponse
  - `success` true, required
  - `data` FilingLockRequest, required
    - `id` string, uuid, required
    - `ownerUserId` string, uuid, required
    - `periods` object[], required
      - `id` string, uuid, required
      - `startDate` string, date, required
      - `endDate` string, date, required
    - `requestedAt` string, date-time, required
    - `approvedAt` string, date-time, nullable, required
    - `stale` boolean, required: The pending request no longer matches the current periods.

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found
- `409`: The request no longer matches the current periods or posted ledger
- `422`: Validation error

## Changes

- **2026-11-26** `4a2098becaf9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/companies/:companyId/gl-periods/filing-lock-requests/:requestId/approve/post.md)

---

[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/4f4c2d34276b?raw)
