---
title: "Import chart accounts from rows"
method: POST
path: "/bulk/accounts/import"
tags: ["Imports"]
---

# Import chart accounts from rows

`POST /bulk/accounts/import`

## Request

- Base URL: `https://ledgerhq.pro/api/v1`
- URL: `https://ledgerhq.pro/api/v1/bulk/accounts/import`
- 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. Each row needs code, name, and type (asset/liability/equity/revenue/expense); subType and description are optional.

## Request body

- object
  - `fileName` string, required
  - `source` string
  - `rows` object[], required

## Response `200`

Import result

## 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)
