---
title: "Create a client"
method: POST
path: "/admin/clients"
tags: ["admin.clients"]
---

# Create a client

`POST /admin/clients`

Creates a new client for the accountant and returns the created client.

## Request body

- ClientCreate
  - `name` string, required — The name of the client
  - `type` 'natural_person' | 'individual_enterprise' | 'legal_person', required — The type of the client. 'natural_person' for individuals, 'legal_person' for companies like UG, GmbH, AG, Ltd., Inc., etc. and 'individual_enterprise' for sole proprietorships.
  - `customId` string — The client's custom ID can be defined by the accountant
  - `address` object — The address of the client
    - `line1` string, required
    - `line2` string
    - `city` string, required
    - `postalCode` string, required
    - `countryCode` string

## Response `201`

Client created successfully

- Client
  - `id` string, cuid, required — The ID of the client
  - `name` string, required — The name of the client
  - `slug` string, required — The slug of the client
  - `type` 'natural_person' | 'individual_enterprise' | 'legal_person', required — The type of the client. 'natural_person' for individuals, 'legal_person' for companies like UG, GmbH, AG, Ltd., Inc., etc. and 'individual_enterprise' for sole proprietorships.
  - `customId` string, nullable, required — The client's custom ID can be defined by the accountant
  - `legalName` string, nullable, required — The legal name of the client
  - `archivedAt` string, date-time, nullable, required — The date and time the client was archived. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).
  - `datevClientId` string, nullable, required — The client's ID in DATEV
  - `createdAt` string, date-time, required — The date and time of the creation for the client. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).
  - `updatedAt` string, date-time, required — The date and time of the last update for the client. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).

## Other responses

- `401` — Unauthorized
- `422` — The validation error(s)
- `429` — Rate limit exceeded
- `500` — Internal server error

---

[API](https://skmtc.net/steuerboard/apis/steuerboard-api.md) · [All operations](https://skmtc.net/steuerboard/apis/steuerboard-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/steuerboard/steuerboard-api/versions/9170dd572b31/schema)
