Webhooks
When is a webhook called/executed/notified?
The webhook you provide will be notified once each time a new lead registers.
What data is sent and in what format?
Each notification will have information about one lead. The format will be JSON.
Lead information for a Starter subscription level will have this shape:
1 2 3 4 5 6 7 |
{ "firstName": "John", "lastName": "Doe", "registrationDate": "2019-07-24 16:50:15.293+02", "email": "test@test.com", "phone": "1111111111" } |
Lead information for a Pro or Enterprise subscription level will include details for the lead’s favorite selections:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
{ "firstName": "John", "lastName": "Doe", "registrationDate": "2019-07-24 16:50:15.293+02", "email": "test@test.com", "phone": "1111111111", "favorites": { "planName": "Benson", "elevationCaption": "A", "community": "Heritage", "isInventory": false, "address": "", "homeSite": "Durham, NC 27704", "lotNumber": "8", "schemeName": "Color 1", "floorPlanOptions": { "0": [ "Fireplace", "Laundry" ], "1": [ "bathroom" ] } } } |
“0” and “1” are each story in the floor plan, and contain floor plan options for that story.