Creates a CRM entry for the patient. Set phase: "lead" (default) to drop the entry into the lead funnel — it will be auto-assigned to a telecaller and trigger a NEW_LEAD notification. Set phase: "booking" to skip the lead stage and create a confirmed booking directly — it will trigger a BOOKING_CONFIRMED notification.
Documentation Index
Fetch the complete documentation index at: https://developer.flabslis.com/llms.txt
Use this file to discover all available pages before exploring further.
JWT obtained from POST /client/auth/token.
Branch identifier returned by GET /client/labs.
Your own unique ID for this lead/booking. Required. It is stored on the entry, carried onto the bill when it converts, and echoed back in webhook payloads so you can correlate events with your records.
Exactly 10 digits, no symbols or spaces.
year, month, day Corporate this entry belongs to. Party-scoped accounts must attach a party (any one of corporateUser, referredOrganization, referredHospitalOrganization).
Referring doctor (organization) identifier. Party-scoped accounts must attach a party.
Referring hospital (organization) identifier. Party-scoped accounts must attach a party.
lead enters the funnel and is auto-assigned. booking skips the funnel and creates a confirmed booking.
lead, booking Mr / Mrs / Dr / etc.
male, female, other In kilograms.
In centimetres.
Free-form location string, e.g. "12.97,77.59" or a Google Maps URL.
Veterinary only — pet owner's name.
Veterinary only — pet breed.
Veterinary only — animal category.
Channel that produced the lead, e.g. "facebook_ads", "website".
urgent, high, medium, low Tests that you couldn't match to a Flabs test ID. Sent as plain name + cost so they show up on the lead with an "unmapped" tag for the team to resolve later.
Packages that you couldn't match to a Flabs package ID. Sent as plain name + price so they show up on the lead with an "unmapped" tag for the team to resolve later.
Used when phase is booking.
Home Collection, Lab Visit ISO date-time when the booking is scheduled. Used when phase is booking.
Notes for the phlebotomist or lab.
Defaults to Pending for bookings.
Pending, Paid, Pay Later Razorpay UPI, Card, Cash Free-form key/value map. Keys must match custom fields configured in CRM settings. Example: { "utm_campaign": "summer_sale", "lead_score": 78 }.