---
title: "Create a payroll liability account"
method: POST
path: "/payroll/setup/liability-accounts"
tags: ["Payroll"]
---

# Create a payroll liability account

`POST /payroll/setup/liability-accounts`

## Request

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

Creates a liability account for amounts held until the company pays the provider (401(k), insurance, garnishments).

## Request body

- object
  - `code` string, required
  - `name` string, required

## Response `201`

{account:{id, code, name, type}}

## Other responses

- `409`: Account code already exists.

---

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