Clients

This guide explains the Client Webhook Payload data format for Client Added, Client Tag Added, and Client Tag Removed triggers in Whautomate. Stay up-to-date and optimize your workflow today!

Client Added

(i) Payload Format: Client Added Payload data format and content that Whautomate will transmit to the configured endpoint.

{
  "event": {
    "id": "{{event.id}}",
    "type": "{{event.type}}",
    "timeStamp": "{{event.timeStamp}}",
    "key": "{{event.key}}"
  },
  "client": {
    "id": "{{client.id}}",
    "clientId": "{{client.clientId}}",
    "fullName": "{{client.fullName}}",
    "preferredName": "{{client.preferredName}}",
    "contactType": "{{client.contactType}}",
    "countryCode": "{{client.countryCode}}",
    "phone": "{{client.phone}}",
    "email": "{{client.email}}",
    "registrationDate": "{{client.registrationDate}}",
    "dob": "{{client.dob}}",
    "addressType": "{{client.addressType}}",
    "address": "{{client.address}}",
    "identificationNumber": "{{client.identificationNumber}}",
    "gender": "{{client.gender}}",
    "preferredLanguage": "{{client.preferredLanguage}}",
    "maritalStatus": "{{client.maritalStatus}}",
    "tags": "{{client.tags}}",
    "notes": "{{client.notes}}",
    "referralSource": "{{client.referralSource}}",
    "photo": "{{client.photo}}",
    "primaryStaff": {
      "id": "{{client.primaryStaff.id}}",
      "name": "{{client.primaryStaff.name}}"
    },
    "primaryLocation": {
      "id": "{{client.primaryLocation.id}}",
      "title": "{{client.primaryLocation.title}}"
    },
    "emergencyRelationType": "{{client.emergencyRelationType}}",
    "emergencyName": "{{client.emergencyName}}",
    "emergencyCountryCode": "{{client.emergencyCountryCode}}",
    "emergencyPhone": "{{client.emergencyPhone}}",
    "customFields": "{{client.customFields}}",
    "createdAt": "{{client.createdAt}}",
    "updatedAt": "{{client.updatedAt}}"
  }
}

(ii) Client Added test Payload data 👇

{
  "event": {
    "id": "ecKyX3x8IY",
    "type": "client_created",
    "timeStamp": "2024-03-17T09:00:00Z",
    "key": "bXcgZ2xXbCU"
  },
  "client": {
    "id": "bXcgZ2xXbCU",
    "clientId": "CLNT001",
    "fullName": "John Doe",
    "preferredName": "John",
    "contactType": "MOBILE",
    "countryCode": "+1",
    "phone": "1234567890",
    "email": "john.doe@example.com",
    "registrationDate": "2022-01-01",
    "dob": "1985-05-20",
    "addressType": "HOME",
    "address": "123 Main Street, Cityville, USA",
    "identificationNumber": "ID123456789",
    "gender": "male",
    "preferredLanguage": "English",
    "maritalStatus": "single",
    "tags": "["VIP","Preferred"]",
    "notes": "Regular customer, prefers morning appointments",
    "referralSource": "Friend referral",
    "photo": "https://example.com/john_doe_photo.jpg",
    "primaryStaff": {
      "id": "JXcDx3h8IZ",
      "name": "Sarah Smith"
    },
    "primaryLocation": {
      "id": "LXhX3x8QYI",
      "title": "Main Location"
    },
    "emergencyRelationType": "family",
    "emergencyName": "Jane Doe",
    "emergencyCountryCode": "+1",
    "emergencyPhone": "9876543210",
    "customFields": "{"membership":"Gold","preferredTime":"Morning"}",
    "createdAt": "2022-01-01T12:00:00Z",
    "updatedAt": "2024-03-17T10:30:00Z"
  }
}


Client Tag Added

(i) Payload Format: Client Tag Added Payload data format and content that Whautomate will transmit to the configured endpoint.

{
  "event": {
    "id": "{{event.id}}",
    "type": "{{event.type}}",
    "timeStamp": "{{event.timeStamp}}",
    "key": "{{event.key}}"
  },
  "client": {
    "id": "{{client.id}}",
    "clientId": "{{client.clientId}}",
    "fullName": "{{client.fullName}}",
    "preferredName": "{{client.preferredName}}",
    "contactType": "{{client.contactType}}",
    "countryCode": "{{client.countryCode}}",
    "phone": "{{client.phone}}",
    "email": "{{client.email}}",
    "registrationDate": "{{client.registrationDate}}",
    "dob": "{{client.dob}}",
    "addressType": "{{client.addressType}}",
    "address": "{{client.address}}",
    "identificationNumber": "{{client.identificationNumber}}",
    "gender": "{{client.gender}}",
    "preferredLanguage": "{{client.preferredLanguage}}",
    "maritalStatus": "{{client.maritalStatus}}",
    "addedTags": "{{client.addedTags}}",
    "tags": "{{client.tags}}",
    "notes": "{{client.notes}}",
    "referralSource": "{{client.referralSource}}",
    "photo": "{{client.photo}}",
    "primaryStaff": {
      "id": "{{client.primaryStaff.id}}",
      "name": "{{client.primaryStaff.name}}"
    },
    "primaryLocation": {
      "id": "{{client.primaryLocation.id}}",
      "title": "{{client.primaryLocation.title}}"
    },
    "emergencyRelationType": "{{client.emergencyRelationType}}",
    "emergencyName": "{{client.emergencyName}}",
    "emergencyCountryCode": "{{client.emergencyCountryCode}}",
    "emergencyPhone": "{{client.emergencyPhone}}",
    "customFields": "{{client.customFields}}",
    "createdAt": "{{client.createdAt}}",
    "updatedAt": "{{client.updatedAt}}"
  }
}

(ii) Client Tag Added test Payload data 👇

{
  "event": {
    "id": "ecKyX3x8IY",
    "type": "client_tag_added",
    "timeStamp": "2024-03-17T09:00:00Z",
    "key": "bXcgZ2xXbCU"
  },
  "client": {
    "id": "bXcgZ2xXbCU",
    "clientId": "CLNT001",
    "fullName": "John Doe",
    "preferredName": "John",
    "contactType": "MOBILE",
    "countryCode": "+1",
    "phone": "1234567890",
    "email": "john.doe@example.com",
    "registrationDate": "2022-01-01",
    "dob": "1985-05-20",
    "addressType": "HOME",
    "address": "123 Main Street, Cityville, USA",
    "identificationNumber": "ID123456789",
    "gender": "male",
    "maritalStatus": "single",
    "addedTags": "["VIP"]",
    "tags": "["VIP","Preferred"]",
    "notes": "Regular customer, prefers morning appointments",
    "referralSource": "Friend referral",
    "photo": "https://example.com/john_doe_photo.jpg",
    "primaryStaff": {
      "id": "JXcDx3h8IZ",
      "name": "Sarah Smith"
    },
    "primaryLocation": {
      "id": "LXhX3x8QYI",
      "title": "Main Location"
    },
    "emergencyRelationType": "family",
    "emergencyName": "Jane Doe",
    "emergencyCountryCode": "+1",
    "emergencyPhone": "9876543210",
    "customFields": "{"membership":"Gold","preferredTime":"Morning"}",
    "createdAt": "2022-01-01T12:00:00Z",
    "updatedAt": "2024-03-17T10:30:00Z"
  }
}


Client Tag Removed

(i) Payload Format: Client Tag Removed Payload data format and content that Whautomate will transmit to the configured endpoint.

{
  "event": {
    "id": "{{event.id}}",
    "type": "{{event.type}}",
    "timeStamp": "{{event.timeStamp}}",
    "key": "{{event.key}}"
  },
  "client": {
    "id": "{{client.id}}",
    "clientId": "{{client.clientId}}",
    "fullName": "{{client.fullName}}",
    "preferredName": "{{client.preferredName}}",
    "contactType": "{{client.contactType}}",
    "countryCode": "{{client.countryCode}}",
    "phone": "{{client.phone}}",
    "email": "{{client.email}}",
    "registrationDate": "{{client.registrationDate}}",
    "dob": "{{client.dob}}",
    "addressType": "{{client.addressType}}",
    "address": "{{client.address}}",
    "identificationNumber": "{{client.identificationNumber}}",
    "gender": "{{client.gender}}",
    "preferredLanguage": "{{client.preferredLanguage}}",
    "maritalStatus": "{{client.maritalStatus}}",
    "removedTags": "{{client.removedTags}}",
    "tags": "{{client.tags}}",
    "notes": "{{client.notes}}",
    "referralSource": "{{client.referralSource}}",
    "photo": "{{client.photo}}",
    "primaryStaff": {
      "id": "{{client.primaryStaff.id}}",
      "name": "{{client.primaryStaff.name}}"
    },
    "primaryLocation": {
      "id": "{{client.primaryLocation.id}}",
      "title": "{{client.primaryLocation.title}}"
    },
    "emergencyRelationType": "{{client.emergencyRelationType}}",
    "emergencyName": "{{client.emergencyName}}",
    "emergencyCountryCode": "{{client.emergencyCountryCode}}",
    "emergencyPhone": "{{client.emergencyPhone}}",
    "customFields": "{{client.customFields}}",
    "createdAt": "{{client.createdAt}}",
    "updatedAt": "{{client.updatedAt}}"
  }
}

(ii) Client Tag Removed test Payload data 👇

{
  "event": {
    "id": "ecKyX3x8IY",
    "type": "client_tag_added",
    "timeStamp": "2024-03-17T09:00:00Z",
    "key": "bXcgZ2xXbCU"
  },
  "client": {
    "id": "bXcgZ2xXbCU",
    "clientId": "CLNT001",
    "fullName": "John Doe",
    "preferredName": "John",
    "contactType": "MOBILE",
    "countryCode": "+1",
    "phone": "1234567890",
    "email": "john.doe@example.com",
    "registrationDate": "2022-01-01",
    "dob": "1985-05-20",
    "addressType": "HOME",
    "address": "123 Main Street, Cityville, USA",
    "identificationNumber": "ID123456789",
    "gender": "male",
    "preferredLanguage": "English",
    "maritalStatus": "single",
    "removedTags": "["Preferred"]",
    "tags": "["VIP"]",
    "notes": "Regular customer, prefers morning appointments",
    "referralSource": "Friend referral",
    "photo": "https://example.com/john_doe_photo.jpg",
    "primaryStaff": {
      "id": "JXcDx3h8IZ",
      "name": "Sarah Smith"
    },
    "primaryLocation": {
      "id": "LXhX3x8QYI",
      "title": "Main Location"
    },
    "emergencyRelationType": "family",
    "emergencyName": "Jane Doe",
    "emergencyCountryCode": "+1",
    "emergencyPhone": "9876543210",
    "customFields": "{"membership":"Gold","preferredTime":"Morning"}",
    "createdAt": "2022-01-01T12:00:00Z",
    "updatedAt": "2024-03-17T10:30:00Z"
  }
}

Last updated