Create Client API


This code allows you to make an insert of a client into the Pabau system by making a simple POST request.




Below are a list of the attributes you can currently pass into Pabau.

* = Required

Name Description
api_key required  Your API key.
redirect_link required  A URL to redirect to upon successful submission.
Fname required  First Name(string)
Lname required  Last Name (string)
mobile Mobile (string)
email Email(string)
lead_source This is typically a dropdown option, and you can pass in plaintext the source of the lead (Example: Facebook)
salutation  Mr,Miss etc
dob  d/m/Y
county County
country Country (string)
city City (string)
telephone telephone number (string)
mobile Mobile number (string)
address Address (string)
post_code Postal Code (string)


Custom Fields

You can also parse custom field data into the client. Follow this guide and then add the variable taken when editing the custom field into your POST.


Error Codes

Below are a list of error codes presented in the API logs.

* = Required


Name Description
1 Client Successfully created.
2 Duplicate entry
3 Missing Fname
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Please sign in to leave a comment.