Customers Webhooks
Die Customers-Ressource sendet Webhooks für folgende Ereignisse:
Created
Wird ausgelöst, wenn ein neuer Customer erstellt wird.
Event-Name: customer.created
Payload:
json
{
"event": "customer.created",
"data": {
"id": 412,
"company_id": 123,
"user_id": 456,
"name": "Neue Firma AG",
"number": 1002,
"care_of": null,
"po_box": null,
"department": null,
"street": "Beispielstrasse 456",
"zip": "8002",
"city": "Zürich",
"country": "Schweiz",
"website": "https://www.example.com",
"phone": "+41 44 987 65 43",
"email": "contact@example.com",
"default_hourly_rate": 175.00,
"invoice_address": null,
"archived": false,
"tax_rate_id": 5,
"created_at": "2024-01-15T14:22:00.000000Z",
"updated_at": "2024-01-15T14:22:00.000000Z"
},
"timestamp": 1705327320,
"webhook_id": 1
}Updated
Wird ausgelöst, wenn ein Customer aktualisiert wird.
Event-Name: customer.updated
Payload:
json
{
"event": "customer.updated",
"data": {
"id": 410,
"company_id": 123,
"user_id": 456,
"name": "Muster AG (aktualisiert)",
"number": 1001,
"care_of": null,
"po_box": null,
"department": null,
"street": "Beispielstrasse 15",
"zip": "8001",
"city": "Zürich",
"country": "Schweiz",
"website": null,
"phone": null,
"email": "new-email@example.com",
"default_hourly_rate": 165.00,
"invoice_address": null,
"archived": false,
"tax_rate_id": 3,
"created_at": "2023-06-04T15:23:12.000000Z",
"updated_at": "2024-01-15T15:45:00.000000Z"
},
"timestamp": 1705332300,
"webhook_id": 1
}Deleted
Wird ausgelöst, wenn ein Customer gelöscht wird.
Event-Name: customer.deleted
Payload:
json
{
"event": "customer.deleted",
"data": {
"id": 410,
"company_id": 123,
"user_id": 456,
"name": "Muster AG",
"number": 1001,
"care_of": null,
"po_box": null,
"department": null,
"street": "Beispielstrasse 15",
"zip": "8001",
"city": "Zürich",
"country": "Schweiz",
"website": null,
"phone": null,
"email": "max@example.com",
"default_hourly_rate": 150.00,
"invoice_address": null,
"archived": false,
"tax_rate_id": null,
"created_at": "2023-06-04T15:23:12.000000Z",
"updated_at": "2025-07-17T10:54:45.000000Z"
},
"timestamp": 1705334100,
"webhook_id": 1
}