---
title: "Materialize QuickBooks Online history into Median as J7 context only"
method: POST
path: "/accountant/companies/{customerId}/integrations/quickbooks/history-import"
tags: ["Accountant Portal"]
---

# Materialize QuickBooks Online history into Median as J7 context only

`POST /accountant/companies/{customerId}/integrations/quickbooks/history-import`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/integrations/quickbooks/history-import`
- Auth: HTTP bearer

Incrementally and idempotently materializes QuickBooks Online vendors, closing date, and posted bank/card transactions into Median as context-only rows (never precedent, 0 journal entries created, 0 outbound QuickBooks writes). Supports dryRun preview and duplicate detection.

## Path parameters

- `customerId` string, uuid, required

## Request body

- object
  - `dryRun` boolean
  - `includePreCutoff` boolean
  - `includeBeforeBookCloseDate` boolean
  - `dateFrom` string, date
  - `dateTo` string, date
  - `maxRowsPerBatch` integer
  - `confirmPlanSha256` string

## Response `200`

QBO history materialization summary

- object
  - `data` object, required

## Changes

- **2026-11-28** `703118e3ba84`: 1 info
  - endpoint added

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