- APIs
- API Reference
- Leads
-
Overview
-
API Reference
- Appointment
- Quotes
- Invoices
- Payments
- Clients
- Client Forms
- Client Documents
- Client Notes
- Client Alerts
- Client Allergies
- Client Communications
- Leads
- Services
- Products
- Packages
- Schedules
- Marketing Sources
- Resources
- Settings
- Tax
- Locations
- Users
- Discounts
- Gift Vouchers
- Labels
- Rooms
- Equipment
- Reports
- Cancellation Policy
- Medical Conditions
- Drugs
- Forms
-
Timesheets
-
Webhooks
Create lead
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}
}