---
title: "Preview a generic chart-of-accounts import"
method: POST
path: "/bulk/accounts/preview"
tags: ["Imports"]
---

# Preview a generic chart-of-accounts import

`POST /bulk/accounts/preview`

## Request

- Base URL: `https://ledgerhq.pro/api/v1`
- URL: `https://ledgerhq.pro/api/v1/bulk/accounts/preview`
- Auth: one of:
  - HTTP bearer and API key in header `x-organization-id`
  - HTTP bearer and API key in header `x-organization-id`

Row-based account import preview. Rows are JSON objects using the /bulk/import-template column names (aliases from the chosen source are normalized).

## Request body

- object
  - `fileName` string, required
  - `source` 'quickbooks' | 'xero' | 'freshbooks' | 'wave' | 'custom'
  - `rows` object[], required

## Response `200`

Import preview

## Other responses

- `default`: Error response

---

[API](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api.md) · [All operations](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/revisions/9a8269f0a586?raw)
