Endpoints / processIntake

processIntake

Atomarer Marketing-Webhook (Lead + Admission + Consent)

Erstellt Lead, Admission und Consent in einem Call. Bei Teilfehler Rollback (Lead soft-deleted). Empfohlen für externe Marketing-Tools statt mehrerer Einzel-Calls.

HTTP Request

POST https://dev.vitabyte.ch/v1/sales/processIntake
Auth basicAuth apiKey

Request Parameters

Parameter Pflicht Typ Beispiel / Default
lead

Lead-Daten (gleich wie intakeLead)

required object
admission

Admission-Daten (admissionDate, type, diagnosis)

optional object
consent

Consent-Daten (signedAt, ip, marketingOk)

optional object

Response Parameters

Demo

POST https://dev.vitabyte.ch/v1/sales/processIntake
Payload
{
    "lead": {
        "firstname": "Anna",
        "lastname": "Beispiel",
        "mail": "anna@example.ch",
        "source": "Marketing-Landingpage"
    },
    "admission": {
        "admissionDate": "2026-06-01",
        "type": "Vollstationär"
    },
    "consent": {
        "signedAt": "2026-05-18T14:30:00+02:00",
        "ip": "192.168.1.50",
        "marketingOk": true
    }
}
Response