Webhooks API Documentation
Person
Core API resource payload url:
Resource Attributes
| data.people[0] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | integer | Person's ID. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| pronoun | string | Person's preferred pronouns. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| first_name | string | Person's first name. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| middle_name | string | Person's middle name. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| last_name | string | Person's last name. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name | string | Person's full name. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| string | Person's email address. Email address formatting is enforced. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| is_member | boolean | Whether person is a member of the business. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| address | string | DEPRECATED: Legacy combined address field. Use separate address fields instead. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| street_address | string | First line of client's physical address. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| street_address2 | string | Second line of client's physical address (apt, suite, etc). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| city | string | City portion of client's address. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| state_code | string | State/province code (e.g. 'WA', 'BC'). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| postal_code | string | Postal/ZIP code. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| country_code | string | Two-letter country code (e.g. 'us', 'ca'). Defaults to business country. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| phone | string | Person's phone number. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| birthdate | date | Person's date of birth. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| guardian_name | string | Full name of person's guardian. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| guardian_email | string | Email address of person's guardian. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| timezone | integer | Timezone of a person. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| business_id | integer | ID of the business to which a person belongs. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| merged_from_id | integer | ID of the Person that's being merged into this Person. Only appears on the person.updated event when a merge occurs. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| merged_into_id | integer | ID of the Person that this Person will be merged into. Only appears on the person.deleted event when a merge occurs. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| updated_at | timestamp | Timestamp for when the person was last updated in the business. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| deleted_at | timestamp | Timestamp for when the person was deleted from the business. Null if not deleted. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| hidden_at | timestamp | Timestamp for when the person was hidden in the business. Null if not hidden. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| joined_at | timestamp | Timestamp for when the person joined the business. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| secondary_info_field | string | Client info that appears below this person's name when listing clients. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| primary_staff_member | object | Optional. Staff information for this person.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| location | object | Optional. Location information for this person.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| dependents | array | Not supported on person.created. Array of people objects who are managed by the person. Empty if no such people are managed.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| providers | array | Not supported on person.created. Array of people objects who are account managers of the person. Empty if no account managers exist. Same JSON structure as dependents. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| profile_photo | object | Not supported on person.created. Optional. Shows url of profile photo if one is available.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
person.created
Triggers when a new person is added to a business.
Payload Example
Person Created Webhook Payload
{
"topic": "person.created",
"webhook_id": 1,
"business_id": 1,
"data": {
"people": [
{
"id": 10,
"address": null,
"birthdate": null,
"business_id": 1,
"deleted_at": null,
"dependents": [],
"email": null,
"pronoun": null,
"first_name": "John",
"guardian_email": null,
"guardian_name": "Nathan Doe",
"hidden_at": null,
"is_member": false,
"joined_at": "2019-02-19T23:24:02Z",
"last_name": "Doe",
"location": {
"id": 30742,
"name": "Example Business",
"slug": "example-business"
},
"middle_name": null,
"name": "John Doe",
"phone": "123 456 7890",
"primary_staff_member": {
"id": 2,
"name": "Joseph Cremin"
},
"providers": [],
"secondary_info_field": "No Membership",
"timezone": "America/Los_Angeles",
"updated_at": "2019-02-19T23:24:02Z"
}
]
}
}
person.updated
Triggers when a specific fields of a person are updated.
Also triggers when a provider–dependent relationship is created or removed. In that case,
both the provider and the dependent receive a
The specific list of fields that trigger an update are:
| Changes to these fields trigger a notification | ||||||||
|---|---|---|---|---|---|---|---|---|
| pronoun | string | Person's preferred pronouns. | ||||||
| first_name | string | Person's first name. | ||||||
| middle_name | string | Person's middle name. | ||||||
| last_name | string | Person's last name. | ||||||
| string | Person's email address. Email address formatting is enforced. | |||||||
| address | string | Person's physical address. | ||||||
| phone | string | Person's phone number. | ||||||
| birthdate | date | Person's date of birth. | ||||||
| guardian_name | string | Full name of person's guardian. | ||||||
| guardian_email | string | Email address of person's guardian. | ||||||
| joined_at | timestamp | Timestamp for when the person joined the business. | ||||||
| merged_from_id | integer | ID of the Person that's being merged into this Person. Only appears on the person.updated event when a merge occurs. | ||||||
| is_member | boolean | Whether person is a member of the business. | ||||||
| custom_fields | object |
A notification will be sent whenever an individual
| ||||||
This topic supports
| data | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| people | array | Array of one person updated in the business. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| previous | object | Previous values of the resource. The following are supported:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Payload Example
Person Updated Webhook Payload
{
"topic": "person.updated",
"webhook_id": 10,
"business_id": 2,
"data": {
"people": [
{
"id": 3,
"pronoun": null,
"first_name": "Jaylon",
"middle_name": null,
"last_name": "Murazik",
"guardian_name": null,
"name": "Jaylon Murazik",
"is_member": false,
"merged_from_id": 9102342,
"joined_at": "2012-09-03T16:05:00Z",
"phone": "1-971-448-7713",
"email": "jaylon.murazik@pike13.com",
"address": null,
"secondary_info_field": "No Membership",
"guardian_email": null,
"timezone": "America/Los_Angeles",
"business_id": 2,
"updated_at": "2012-09-03T16:05:00Z",
"deleted_at": null,
"hidden_at": null,
"birthdate": null,
"custom_fields": [],
"dependents": [
{
"id": 4,
"pronoun": null,
"first_name": "Mckenzie",
"middle_name": null,
"last_name": "Jacobson",
"guardian_name": "Jaylon Murazik",
"name": "Mckenzie Jacobson",
"is_member": false,
"joined_at": "2012-09-03T16:05:00Z",
"merged_from_id": 186,
"phone": "133-854-7150",
"email": "jacobson.mckenzie@pike13.com",
"address": null,
"secondary_info_field": "No Membership",
"guardian_email": "jaylon.murazik@pike13.com",
"timezone": "America/Los_Angeles",
"business_id": 2,
"updated_at": "2012-09-03T16:05:00Z",
"deleted_at": null,
"hidden_at": null,
"birthdate": null,
"custom_fields": []
}
],
"providers": []
}
],
"previous": {
"first_name": "Foster",
"updated_at": "2012-09-02T16:05:00Z"
}
}
}
person.deleted
Triggers when a person is deleted.
Payload Example
Person Deleted Webhook Payload
{
"topic": "person.deleted",
"webhook_id": 10,
"business_id": 2,
"data": {
"people": [
{
"id": 9102342,
"first_name": "John",
"middle_name": "James",
"last_name": "Miller",
"email": "jjmiller@gmail.com",
"merged_into_id": 3,
"updated_at": "2019-02-19T23:24:02Z",
"created_at": "2019-02-19T23:24:02Z",
"deleted_at": "2020-01-29T11:31:18Z"
}
]
}
}