This code allows you to make an insert of a lead into the Pabau system by making a simple POST request.
Below are a list of the attributes you can currently pass into Pabau.
* = Required
|api_key||Your API key.|
|redirect_link||A URL to redirect to upon successful submission.|
|Lname||Last Name (string)|
|lead_source||This is typically a dropdown option, and you can pass in plaintext the source of the lead (Example: Facebook)|
|custom_textarea||Custom comments/notes (this is often used for the inquiry details from the client).|
You can also parse custom field data into the lead. Follow this guide and then add the variable taken when editing the custom field into your POST.