---
title: "Hold or release a customer's QuickBooks automatic posting (#3741)"
method: POST
path: "/accountant/companies/{customerId}/integrations/quickbooks/auto-post-hold"
tags: ["Accountants"]
---

# Hold or release a customer's QuickBooks automatic posting (#3741)

`POST /accountant/companies/{customerId}/integrations/quickbooks/auto-post-hold`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/integrations/quickbooks/auto-post-hold`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Held (`held: true`): after a completed QuickBooks read Median does not post the opening entry or the activity, take QuickBooks' edits to posted objects (the change reviews stay open), turn on invoices and bills, or push bank-feed items to QuickBooks for this company; Ask My Accountant, change detection and the parity check still run. The accountant imports through the manual trial-balance and import-batch routes (draft, review, approve, post). Released (`held: false`): the next completed read posts whatever is still unposted after the cutoff. #3903: automatic sync never turns invoices and bills on for a cash-basis company (`companies.accounting_method` cash); releasing one whose AR/AP items are off returns `arApNotice` saying AR/AP stays off. Needs no QuickBooks connection or cutoff, so it can be set before the cutoff. Every call writes an audit_logs row (entity_type company) with the reason and the previous and new value. The agent service token may set the hold (`held: true`) as a high-impact operation, with its source and key id in the audit row; releasing it (`held: false`) needs a signed-in accountant and answers 403 to an API key, because releasing restarts automatic posting and push without review. Default for every company: not held. A signed-in assigned accountant can also supply the expected hold, connection and realm together. The hold changes only if all three still match. Release waits for any active source read and pending guarded change review.

## Path parameters

- `customerId` string, uuid, required

## Request body

- object
  - `held` boolean, required
  - `reason` string, required
  - `expectedHeld` boolean
  - `expectedConnectionId` string, uuid
  - `expectedRealmId` string

## Response `200`

The hold as now recorded

- object
  - `success` true, required
  - `data` object, required
    - `held` boolean, required
    - `arApNotice` object: Present on a release of a cash-basis company whose invoices and bills are off (#3903)
      - `code` 'arap_stays_off_cash_basis', required
      - `message` string, required

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: The company does not exist
- `409`: The expected hold or connection changed, or a source read or guarded change review is still active
- `422`: Validation error

## Changes

- **2026-11-25** `fd1e3974e38c`: 3 breaking, 4 info
  - the request body dependentRequired was added: when `expectedConnectionId` is present, `expectedHeld, expectedRealmId` are required
  - the request body dependentRequired was added: when `expectedHeld` is present, `expectedConnectionId, expectedRealmId` are required
  - the request body dependentRequired was added: when `expectedRealmId` is present, `expectedHeld, expectedConnectionId` are required
  - added the new optional request property `expectedConnectionId`
  - …3 more
- **2026-10-31** `1bd7b8c530fd`: 1 info
  - added the optional property `data/arApNotice` to the response with the `200` status
- **2026-10-27** `279b5a6cab1c`: 1 info
  - endpoint added

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