Endpoints / createCustomer

createCustomer

Patient anlegen

Direkter Patient-Insert (umgeht Lead-Pipeline). Für interne Tools — externe Marketing-Webhooks bitte sales/processIntake nutzen.

HTTP Request

POST https://dev.vitabyte.ch/v1/system/createCustomer
Auth basicAuth apiKey

Request Parameters

Parameter Pflicht Typ Beispiel / Default
firstname required string
lastname required string
dob optional string
gender optional string
enum: w | m | d
mail optional string
mobile optional string
address optional object
mandantId

Behandler aus getProviders

optional integer

Response Parameters

Demo

POST https://dev.vitabyte.ch/v1/system/createCustomer
Payload
{
    "firstname": "Anna",
    "lastname": "Beispiel",
    "dob": "1985-04-12",
    "gender": "w",
    "mail": "anna@example.ch",
    "mobile": "+41 79 123 45 67",
    "address": {
        "street": "Bahnhofstrasse 1",
        "zip": "8001",
        "city": "Zürich"
    },
    "mandantId": 1
}
Response