REST API: Customers and bookings
This page belongs to the REST API reference, which covers the address, authentication, scopes, pagination and errors. Every path is appended to https://api.litelog.de/api. In the examples $KEY stands for your API key; the example values are made up.
Overview
| Call | Purpose | Scope |
|---|---|---|
GET /v1/customers |
List customers (CRM master data) | customers:read |
POST /v1/customers |
Create a customer | customers:write |
GET /v1/customers/{id} |
Get one customer | customers:read |
PATCH /v1/customers/{id} |
Update a customer | customers:write |
POST /v1/customers/{id}/copy |
Copy a customer: master data, addresses and contact persons | customers:write |
GET /v1/bookings |
List bookings (holiday properties) | bookings:read |
GET /v1/occupancy |
Current staffing per property | shifts:read |
GET /v1/customers
List customer master data (filters: search, archived, type, category_id).
Scope: customers:read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
page |
query | integer | no | Default: 1; at least 1. |
pageSize |
query | integer | no | Default: 50; 1 – 100. |
search |
query | string | no | — |
archived |
query | boolean | no | — |
type |
query | string | no | Values: BUSINESS, PERSONAL. |
category_id |
query | integer | no | — |
Example call
curl "https://api.litelog.de/api/v1/customers?page=1&pageSize=50&type=BUSINESS&archived=false" \
-H "X-Api-Key: $KEY"
Example response (200)
{
"data": [
{
"customer_id": 7,
"uuid": "ff2ad9bc-3b64-45f4-92f7-8aebc29b9996",
"customer_number": "1007",
"type": "BUSINESS",
"name": "Muster Immobilien GmbH",
"first_name": null,
"last_name": null,
"gender": null,
"tax_id": null,
"vat_number": "DE123456789",
"archived": false,
"category": {
"category_id": 3,
"name": "Gewerbekunden"
},
"locations": [
{
"address": "Musterstraße 1",
"postal_code": "80331",
"city": "München",
"country": "DE",
"type": "RA"
}
],
"communication": [
{
"channel": "email",
"value": "verwaltung@example.com",
"type": "AT"
},
{
"channel": "phone",
"value": "+49 30 0000000",
"type": "AT"
}
],
"property_count": 2,
"contact_person": {
"customer_id": 8,
"name": "Sabine Beispiel"
}
}
],
"total": 1,
"page": 1,
"pageSize": 50
}
POST /v1/customers
Create a customer (type BUSINESS/PERSONAL, name or first_name/last_name, optional customer_number — omitted, the next number of the series is used —, locations, communication, contact_person = salutation/first/last name of the contact as in the portal dialog).
Scope: customers:write
Body fields (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
type |
string | yes | Values: BUSINESS, PERSONAL. |
customer_number |
string | no | — |
name |
string | no | — |
first_name |
string | no | — |
last_name |
string | no | — |
gender |
string | no | MEN, WOMEN or OTHER. The salutations Herr, Frau, Divers and Mr, Ms, Other are accepted and stored as these values; anything else answers 400. |
tax_id |
string | no | — |
vat_number |
string | no | — |
category_id |
integer | no | — |
payment_term_id |
integer | no | — |
taxes_id |
integer | no | — |
locations |
array (object) | no | — |
communication |
array (object) | no | — |
contact_person |
object | no | — |
Example call
curl -X POST "https://api.litelog.de/api/v1/customers" \
-H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
-d '{
"type": "BUSINESS",
"name": "Muster Immobilien GmbH",
"locations": [
{
"address": "Musterstraße 1",
"postal_code": "80331",
"city": "München",
"country": "DE",
"type": "RA"
}
],
"communication": [
{
"channel": "email",
"value": "verwaltung@example.com",
"type": "AT"
},
{
"channel": "phone",
"value": "+49 30 0000000",
"type": "AT"
}
],
"contact_person": {
"gender": "Frau",
"first_name": "Sabine",
"last_name": "Beispiel"
}
}'
Example response (201)
{
"data": {
"customer_id": 7,
"uuid": "ff2ad9bc-3b64-45f4-92f7-8aebc29b9996",
"customer_number": "1007",
"type": "BUSINESS",
"name": "Muster Immobilien GmbH",
"first_name": null,
"last_name": null,
"gender": null,
"tax_id": null,
"vat_number": null,
"archived": false,
"category": null,
"locations": [
{
"address": "Musterstraße 1",
"postal_code": "80331",
"city": "München",
"country": "DE",
"type": "RA"
}
],
"communication": [
{
"channel": "email",
"value": "verwaltung@example.com",
"type": "AT"
},
{
"channel": "phone",
"value": "+49 30 0000000",
"type": "AT"
}
],
"contact_person": {
"customer_id": 8,
"name": "Sabine Beispiel"
}
}
}
GET /v1/customers/{id}
Customer detail.
Scope: customers:read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | integer | yes | — |
Example call
curl "https://api.litelog.de/api/v1/customers/7" \
-H "X-Api-Key: $KEY"
Example response (200)
{
"data": {
"customer_id": 7,
"uuid": "ff2ad9bc-3b64-45f4-92f7-8aebc29b9996",
"customer_number": "1007",
"type": "BUSINESS",
"name": "Muster Immobilien GmbH",
"first_name": null,
"last_name": null,
"gender": null,
"tax_id": null,
"vat_number": "DE123456789",
"archived": false,
"category": {
"category_id": 3,
"name": "Gewerbekunden"
},
"locations": [
{
"address": "Musterstraße 1",
"postal_code": "80331",
"city": "München",
"country": "DE",
"type": "RA"
}
],
"communication": [
{
"channel": "email",
"value": "verwaltung@example.com",
"type": "AT"
},
{
"channel": "phone",
"value": "+49 30 0000000",
"type": "AT"
}
]
}
}
PATCH /v1/customers/{id}
Change a customer (partial update; the type rules apply against the stored type).
Scope: customers:write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | integer | yes | — |
Body fields (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
type |
string | no | Values: BUSINESS, PERSONAL. |
customer_number |
string | no | — |
name |
string | no | — |
first_name |
string | no | — |
last_name |
string | no | — |
gender |
string | no | MEN, WOMEN or OTHER. The salutations Herr, Frau, Divers and Mr, Ms, Other are accepted and stored as these values; anything else answers 400. |
tax_id |
string | no | — |
vat_number |
string | no | — |
category_id |
integer | no | — |
payment_term_id |
integer | no | — |
taxes_id |
integer | no | — |
locations |
array (object) | no | — |
communication |
array (object) | no | — |
Example call
curl -X PATCH "https://api.litelog.de/api/v1/customers/7" \
-H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
-d '{
"vat_number": "DE123456789",
"change_reason": "USt-IdNr. nachgetragen"
}'
Example response (200)
{
"data": {
"customer_id": 7,
"uuid": "ff2ad9bc-3b64-45f4-92f7-8aebc29b9996",
"customer_number": "1007",
"type": "BUSINESS",
"name": "Muster Immobilien GmbH",
"first_name": null,
"last_name": null,
"gender": null,
"tax_id": null,
"vat_number": "DE123456789",
"archived": false,
"category": {
"category_id": 3,
"name": "Gewerbekunden"
},
"locations": [
{
"address": "Musterstraße 1",
"postal_code": "80331",
"city": "München",
"country": "DE",
"type": "RA"
}
],
"communication": [
{
"channel": "email",
"value": "verwaltung@example.com",
"type": "AT"
},
{
"channel": "phone",
"value": "+49 30 0000000",
"type": "AT"
}
]
}
}
POST /v1/customers/{id}/copy
Copy a customer. Copied: type, name (with "(Kopie)" unless name is given; for a person on the last name), salutation, tax number, VAT id, category, payment term, tax setting, internal note, addresses (locations) and communication channels. The customer number is drawn anew from the number series. Contact persons: a contact person is a customer of its own (a person) connected to the business customer. The copy is connected to the same persons, with the same role and the same primary-contact flag; no person is created twice, archived ones stay with the original. copy.contact_persons gives the number, copy.issues[] every person that could not be connected and how many connections to other companies stay with the original. Never copied: the customer's portal access, properties, orders, documents and history. The copy is active, also when the original is archived. The original is only read.
Needs the same rights as creating; as with POST /v1/customers no change reason is needed. Customer unknown or of another company: 404.
Scope: customers:write
The key also needs the read scope customers:read: the answer carries the values of the original.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | integer | yes | The customer to copy (customer_id). |
Idempotency-Key |
header | string (uuid) | no | Idempotency key as a header, an alternative to the body field uuid. The same key with the same body answers 200 with duplicate: true and creates nothing twice. The same key with a different body answers 422 IDEMPOTENCY_KEY_PAYLOAD_MISMATCH; while the first call is still running, 409 IDEMPOTENCY_KEY_IN_PROGRESS. A call that failed releases its key. |
Body fields (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
uuid |
string (uuid) | no | Idempotency key (alternatively header Idempotency-Key). |
name |
string | no | Company name of the copy; for a person the last name (at most 100 characters there). Default: name of the original with "(Kopie)". At most 200 characters. |
Example call
curl -X POST "https://api.litelog.de/api/v1/customers/50/copy" \
-H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
-H "Idempotency-Key: 8b3d5f71-2c6e-4a9d-b1f4-7e0a9c2d6b85" \
-d '{
"name": "Autobahn Süd GmbH"
}'
Example response (201)
{
"data": {
"customer_id": 90,
"uuid": "2f6a8c4e-7b1d-4e5f-9a3c-6d0b8e2f4a17",
"customer_number": "K-0090",
"type": "BUSINESS",
"name": "Autobahn Süd GmbH",
"first_name": null,
"last_name": null,
"archived": false,
"source_customer_id": 50
},
"created": true,
"copy": {
"contact_persons": 1,
"issues": []
}
}
GET /v1/bookings
Holiday-rental bookings (scope bookings:read): arrival, departure, guests, channel and the cleaning task for the departure, without guest names. Default today plus 60 days, at most 92 days (else 422, reason: RANGE_TOO_LARGE); kind = arrivals, departures or all.
Scope: bookings:read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
page |
query | integer | no | Default: 1; at least 1. |
pageSize |
query | integer | no | Default: 50; 1 – 100. |
from |
query | string (date) | no | — |
to |
query | string (date) | no | — |
property_id |
query | integer | no | — |
status |
query | string | no | Values: active, cancelled, all. |
kind |
query | string | no | Values: arrivals, departures, all. |
Example call
curl "https://api.litelog.de/api/v1/bookings?from=2026-12-01&to=2026-12-14&property_id=124&kind=departures" \
-H "X-Api-Key: $KEY"
Example response (200)
{
"data": [
{
"check_in": "2026-12-01",
"check_out": "2026-12-05",
"check_in_time": "15:00",
"check_out_time": "10:00",
"status": "active",
"is_block": false,
"ambiguous": false,
"same_day_turnover": true,
"guests_adults": 2,
"guests_children": 1,
"channel": "airbnb",
"source": "smoobu",
"property_id": 124,
"property_name": "Haus Seeblick — Wohnung 3",
"task_uuid": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"task_completed_at": "2026-12-05"
},
{
"check_in": "2026-12-05",
"check_out": "2026-12-09",
"check_in_time": null,
"check_out_time": null,
"status": "active",
"is_block": false,
"ambiguous": false,
"same_day_turnover": false,
"guests_adults": null,
"guests_children": null,
"channel": null,
"source": "airbnb",
"property_id": 124,
"property_name": "Haus Seeblick — Wohnung 3",
"task_uuid": "d2285fab-b2d0-4a40-b0a7-44ebbc329fd0",
"task_completed_at": null
}
],
"total": 2,
"page": 1,
"pageSize": 50,
"from": "2026-12-01",
"to": "2026-12-14"
}
GET /v1/occupancy
Staffing per property right now: people present, running shifts, target and state (understaffed, staffed, no_shift) — numbers only, no names. Like target vs. actual hours it needs the right to see other people's times.
Scope: shifts:read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
property_id |
query | integer | no | — |
state |
query | string | no | Values: understaffed, staffed, no_shift. |
Example call
curl "https://api.litelog.de/api/v1/occupancy" \
-H "X-Api-Key: $KEY"
Example response (200)
{
"data": [
{
"property_id": 123,
"property_name": "Filiale Nord",
"present_count": 2,
"running_shifts": 1,
"required_count": 3,
"shift_present_count": 2,
"state": "understaffed"
},
{
"property_id": 124,
"property_name": "Haus Seeblick — Wohnung 3",
"present_count": 0,
"running_shifts": 0,
"required_count": 0,
"shift_present_count": 0,
"state": "no_shift"
}
]
}
