---
title: "Stop Penny at one client"
method: POST
path: "/accountant/companies/{customerId}/agent/stop"
tags: ["Accountant Portal"]
---

# Stop Penny at one client

`POST /accountant/companies/{customerId}/agent/stop`

## Request

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

Migration 641 (wireframes pages 15 and 19). `stop`: any accountant assigned to the customer, or a super-admin (403 AGENT_STOP_NEEDS_ASSIGNMENT otherwise). `resume`: the assigned accountant who made the active stop (J-714), an assigned accountant whose firm role is reviewer, or a super-admin (403 AGENT_RESUME_NEEDS_REVIEWER otherwise); a resume clears only that stop, never the customer's own switch or the firm-wide stop. A stop while someone else's stop is in force answers 409 AGENT_ALREADY_STOPPED_HERE, naming them; resuming while running records nothing. Both need a reason and leave an append-only event with who, when and why. While stopped, every agent call for the customer answers 409 AGENT_KILLED and the settings read says killSwitch true. Stopping while stopped records nothing. Both service keys get 404. Only a super-admin stops Penny everywhere (`/accountant/penny/stop`).

## Path parameters

- `customerId` string, uuid, required

## Request body

- object
  - `reason` string, required

## Response `200`

Success envelope

- object
  - `success` boolean, required
  - `data` AgentClientStop, required
    - `stoppedHere` boolean, required
    - `by` object, nullable, required
      - `userId` string, uuid, required
      - `name` string, nullable, required
    - `at` string, date-time, nullable, required
    - `reason` string, nullable, required

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found
- `409`: Request conflicts with the durable onboarding state
- `422`: Request failed validation

## Changes

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

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