---
title: "Import customers"
method: POST
path: "/bulk/contacts/import"
tags: ["Imports"]
---

# Import customers

`POST /bulk/contacts/import`

## Request

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

Import contacts from a raw QuickBooks Customer Contact List CSV (csvContent) or pre-mapped rows. Existing customers, such as those a QuickBooks journal import added, get only their blank email, phone, tax number, addresses, and notes filled; existing values are never overwritten. Run after the chart of accounts and journal import and before /bulk/invoices/import so open invoices can resolve their customers.

## Request body

- object
  - `fileName` string, required
  - `csvContent` string: Raw QBO Customer Contact List CSV export, unchanged
  - `rows` object[]: Alternative to csvContent: pre-mapped rows (name, email, phone, type, taxNumber, billing address fields)

## Response `201`

Import job 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)
