---
title: "Set the client's preparer and reviewer (firm admin)"
method: PUT
path: "/accountant/companies/{customerId}/close-duties"
tags: ["Month-End Close"]
---

# Set the client's preparer and reviewer (firm admin)

`PUT /accountant/companies/{customerId}/close-duties`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/close-duties`
- Auth: HTTP bearer

Firm admin only (403 `ACCOUNTANT_ROLE_REQUIRED` otherwise). The designated signed-in firm accountant may take both duties personally for a client in their verified firm scope. Other assignees need an active client assignment (422 `CLOSE_DUTIES_NOT_ASSIGNED`) and must hold distinct duties (422 `CLOSE_DUTIES_SAME_PERSON`). A field left out keeps its value; null clears it. Once a client has a reviewer, only that reviewer or the firm admin signs, closes, re-closes, sends the package and reopens (403 `close_client_reviewer_required`). Refused for every API key.

## Path parameters

- `customerId` string, uuid, required

## Request body

- object
  - `preparerUserId` string, uuid, nullable
  - `reviewerUserId` string, uuid, nullable

## Response `200`

The client's duties after the change

- object
  - `success` boolean
  - `data` ClientCloseDuties
    - `preparerUserId` string, uuid, nullable, required
    - `reviewerUserId` string, uuid, nullable, required
    - `preparer` CloseDutyPerson, nullable, required: #4700 (p13 Setup): the duty's person by name (their accountant profile; null without one), the accountant id the firm team read keys on, and when they were assigned. Null when the duty is not set.
      - `userId` string, uuid, required
      - `accountantId` string, uuid, nullable, required
      - `name` string, nullable, required
      - `assignedAt` string, date-time, required
    - `reviewer` CloseDutyPerson, nullable, required: #4700 (p13 Setup): the duty's person by name (their accountant profile; null without one), the accountant id the firm team read keys on, and when they were assigned. Null when the duty is not set.
      - `userId` string, uuid, required
      - `accountantId` string, uuid, nullable, required
      - `name` string, nullable, required
      - `assignedAt` string, date-time, required

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `409`: The assignments changed concurrently. Reload before retrying.
- `422`: Request failed validation

## Changes

- **2026-12-03** `ab919e163d79`: 1 info
  - added the non-success response with the status `409`
- **2026-11-26** `4a2098becaf9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/companies/:customerId/close-duties/put.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)
