---
title: "Record an assigned client's mail stage"
method: PUT
path: "/accountant/companies/{customerId}/mail-routing"
tags: ["Accountant Portal"]
---

# Record an assigned client's mail stage

`PUT /accountant/companies/{customerId}/mail-routing`

## Request

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

Whether the client's mail is still copied to Median or has moved (#4340; copy for the first 30 days, then the move). A person records the stage; the app never makes the move. `copy` keeps the first copy start; `move` records when and by whom. Human accountants only; hidden from the service key.

## Path parameters

- `customerId` string, uuid, required

## Request body

- object
  - `stage` 'copy' | 'move', required

## Response `200`

The client's mail stage after the change

- object
  - `success` boolean, required
  - `data` object, required
    - `companyId` string, uuid, required
    - `stage` 'copy' | 'move', required
    - `copyStartedAt` string, date-time, nullable, required
    - `movedAt` string, date-time, nullable, required
    - `movedByUserId` string, uuid, nullable, required
    - `updatedAt` string, date-time, required

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found
- `422`: The stage is not copy or move

## Changes

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

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