---
title: "What QuickBooks would receive to create one Median account that has no QuickBooks counterpart (#3605)"
method: GET
path: "/accountant/companies/{customerId}/integrations/quickbooks/writebacks/account-create"
tags: ["Accountants"]
---

# What QuickBooks would receive to create one Median account that has no QuickBooks counterpart (#3605)

`GET /accountant/companies/{customerId}/integrations/quickbooks/writebacks/account-create`

## Request

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

The single-account create (#3061) for a new or established QuickBooks file, judged exactly as the chart push judges that one account placed top-level: it is refused unless the plan for it is `create` (an active Median account, not mapped, not held by another batch, no QuickBooks account with its number or name, and no QuickBooks default such as Accounts Receivable to map it to). The account is created top-level even when it has a Median parent. `payload` is the QuickBooks Account body (Name, AcctNum = Median code, AccountType/AccountSubType from the Median detail type) and `requestSha256` its hash; `newerRunStatus` is non-null while a QuickBooks read newer than the completed one is queued, running or failed, or `completed` when it completed during this request (preparing is then refused; retry). Read-only: it creates no batch, journal or mapping and makes no QuickBooks call. 422 QUICKBOOKS_ACCOUNT_CREATE_NOT_FOUND when the account is not an active account of this company, QUICKBOOKS_ACCOUNT_CREATE_REFUSED when Median would map or skip it instead (`reason` in the problem carries the chart push reason code), BUSINESS_RULE_VIOLATION when it would be a Bank or Credit Card account whose GL account cannot back its QuickBooks reconciliation account (the check verify runs before mapping it: the GL account is inactive, locked, non-postable or a system account, or a bank row already on it is personal, of another entity or currency, or of the other bank or card kind), QUICKBOOKS_CHART_PUSH_NO_INVENTORY before a completed QuickBooks read, QUICKBOOKS_WRITEBACK_NO_CUTOFF before a posting cutoff is set, QUICKBOOKS_LEDGER_NOT_CONNECTED when QuickBooks is not connected.

## Path parameters

- `customerId` string, uuid, required

## Query parameters

- `glAccountId` string, uuid, required

## Response `200`

The single-account create preview

- object
  - `success` true, required
  - `data` object, required
    - `sourceRunId` string, uuid, required: The completed QuickBooks read the plan was judged from
    - `newerRunStatus` 'queued' | 'running' | 'completed' | 'failed' | 'null', nullable, required: Status of a QuickBooks read newer than that one, or null; `completed` only when it completed during this request
    - `glAccountId` string, uuid, required
    - `code` string, required: The Median account code, sent as AcctNum
    - `payload` object, required: The QuickBooks Account create body
    - `requestSha256` string, required

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `422`: Missing or invalid glAccountId, an account Median would not create, a Bank or Credit Card account whose GL account cannot back its reconciliation account, no completed QuickBooks read, no cutoff, or QuickBooks not connected

## Changes

- **2026-10-22** `294f6d703846`: 1 info
  - endpoint added

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