Klant::postUpdateΒΆ

{
  "version": "0.1",
  "data": {
    "id": 83,
    "type": "klant",
    "displaynaam": "Familie Jansen",
    "naam": "Familie Jansen",
    "adres": "Oeverstraat 12",
    "postcode": "9712AB",
    "plaats": "Groningen",
    "landcode": "NL",
    "provinciecode": "NL-GR",
    "website": "https://www.familiejansen.nl",
    "btw_nummer": null,
    "user_id": null,
    "bedrijf_id": 3,
    "deactivated_at": null,
    "image_filename": "",
    "extra_fields": "[]",
    "status": "actief",
    "onchange": "mailen",
    "veelgebruikt": false,
    "betalen_vanaf": null,
    "uitje_activiteit_herinnering": true,
    "soort_klant": "Particulier",
    "afdeling": null,
    "factuur_adressering": "Familie Jansen\nT.a.v. P. Jansen\nOeverstraat 12\n9712AB Groningen",
    "send_automatic_bookingmails": true
  },
  "meta": {}
}

Explanation:

  • id: integer.

  • type: string. Allowed values: klant, leverancier, overig, personeel.

  • displaynaam: string. Human-friendly display name; auto-derived from naam or main contact.

  • naam: string|null. Empty for personeel contacts; for klant typically the group or family name.

  • adres: string|null.

  • postcode: string|null. Dutch format example 1234AB (no space) or 1234 AB.

  • plaats: string|null.

  • landcode: string|null. ISO 3166-1 alpha-2, e.g. NL.

  • provinciecode: string|null. ISO 3166-2, e.g. NL-GR.

  • website: string|null. Absolute URL.

  • btw_nummer: string|null. VAT number (for NL typically NL[9 digits]B[2 digits]).

  • user_id: integer|null. Linked sfGuardUser id when applicable.

  • bedrijf_id: integer. Owning company id.

  • deactivated_at: non-empty-string|null. Returned as ISO 8601 date-time when contact was anonymised/deactivated.

  • image_filename: string. Stored image filename if uploaded.

  • extra_fields: string. JSON-encoded array of extra fields.

  • status: enum. Allowed: actief, passief.

  • onchange: enum. Allowed: mailen, niks.

  • veelgebruikt: boolean. Marks frequently used contacts.

  • betalen_vanaf: date|null. Returned as ISO 8601 date YYYY-MM-DD.

  • uitje_activiteit_herinnering: boolean. Send reminders about booked activities.

  • soort_klant: string|null. Company-defined customer type, e.g. Particulier, Bedrijf, School.

  • afdeling: string|null. Department within the customer organisation.

  • factuur_adressering: string|null. Multi-line invoice addressing; lines separated by n.

  • send_automatic_bookingmails: boolean. Whether to send automatic booking emails.

Webhook selection: use Klant::postInsert to handle creations and Klant::postUpdate to handle updates.