Creates lead
/leads/create
https://api.oauth.pabau.com/{api_key}/leads/create
Request
Query Parameters: | |
api_key * | |
Fname * | String |
Lname | String |
String | |
DOB | Date (Y-m-d) |
mobile | String |
label | String, (Comma separated) |
lead_source | Int (system ID of source) or String (source name) |
leadowner | Int (System ID of the User) |
opt_email | 1 or 0 |
opt_letters | 1 or 0 |
opt_sms | 1 or 0 |
opt_newsletter | 1 or 0 |
opt_phone | 1 or 0 |
custom_field_{Int (System ID of the field)} | String |
Note: Custom Fields example: custom_field_12345
Response sample
application/json
{
"token": {token},
"expiration": {date},
"tenant": {tenant},
"catalog": {},
"lead_id": {Int}
}