v1

latestOpenAPI 3.1.12026-07-124448163.2 KB
admin.clients

Get a client

Returns a single client by ID.

get/admin/clients/{id}

Path parameters

idstring cuid required

The ID of the item

Example:cmf41ajzv003706un4i99q19z

Response

Client

idstring cuid required

The ID of the client

namestring required

The name of the client

slugstring 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.

customIdstring nullable required

The client's custom ID can be defined by the accountant

legalNamestring nullable required

The legal name of the client

archivedAtstring date-time nullable required

The date and time the client was archived. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).

datevClientIdstring nullable required

The client's ID in DATEV

createdAtstring date-time required

The date and time of the creation for the client. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).

updatedAtstring date-time required

The date and time of the last update for the client. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).

Example response

{
  "id": "cmf41ajzv003706un4i99q19z",
  "name": "Muster GmbH",
  "slug": "muster-gmbh",
  "type": "legal_person",
  "customId": "ABC123",
  "legalName": "Muster GmbH",
  "archivedAt": "2021-01-01T00:00:00Z",
  "datevClientId": "ABC123",
  "createdAt": "2021-01-01T00:00:00Z",
  "updatedAt": "2021-01-01T00:00:00Z"
}