---
title: "Client changes"
method: POST
path: "webhooks/clientChanges"
tags: ["Webhooks"]
---

# Client changes

`POST webhooks/clientChanges` (webhook)

## Payload

- union
  - object
    - `eventTimestamp` string, required — Timestamp of when the event happened
    - `action` 'CREATED', required
    - `clientId` string, required — The ID of the client
    - `workspaceId` string, nullable, required — The ID of the workspace
    - `resource` 'CLIENT', required
    - `data` object, required
      - `id` string, 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
      - `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, 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, required — The date and time of the creation for the client. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).
      - `updatedAt` string, required — The date and time of the last update for the client. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).
  - object
    - `eventTimestamp` string, required — Timestamp of when the event happened
    - `action` 'ARCHIVED', required
    - `clientId` string, required — The ID of the client
    - `workspaceId` string, nullable, required — The ID of the workspace
    - `resource` 'CLIENT', required
    - `data` object, required
      - `id` string, 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
      - `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, 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, required — The date and time of the creation for the client. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).
      - `updatedAt` string, required — The date and time of the last update for the client. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).
  - object
    - `eventTimestamp` string, required — Timestamp of when the event happened
    - `action` 'UPDATED', required
    - `clientId` string, required — The ID of the client
    - `workspaceId` string, nullable, required — The ID of the workspace
    - `resource` 'CLIENT', required
    - `data` object, required
      - `id` string, 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
      - `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, 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, required — The date and time of the creation for the client. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).
      - `updatedAt` string, required — The date and time of the last update for the client. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).
    - `previousData` object, required
      - `id` string, 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
      - `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, 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, required — The date and time of the creation for the client. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).
      - `updatedAt` string, required — The date and time of the last update for the client. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).

## Acknowledgement `200`

Webhook received

---

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