Use this mode when you operate on behalf of referring parties — a corporate, a doctor, or a hospital — and each one needs its own pricing and its own event feed. Typical builders are a doctor’s CRM, a hospital portal, a wellness app, or a corporate health dashboard, where every lead, booking, price, and webhook must stay scoped to one party.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.
Party-scoped mode is enabled by Flabs for your account. Contact support to turn it on. Until then your account behaves as catch-all.
What changes vs. catch-all
In catch-all mode a party is optional. In party-scoped mode it is mandatory on every call that touches a price or creates an entry, and webhooks are split per party.| Step | Catch-all | Party-scoped |
|---|---|---|
| List tests / packages | Standard branch price | Pass a party → that party’s negotiated price |
| Create lead / booking | Party optional | Must attach a party |
| Webhooks | One webhook for the lab | One webhook per party, events routed to the matching party |
A party is one of
| Field | Meaning |
|---|---|
corporateUser | A corporate / company / TPA identifier |
organization | A doctor or hospital identifier (used on tests/packages calls) |
referredOrganization | Referring doctor (used on lead/booking create) |
referredHospitalOrganization | Referring hospital (used on lead/booking create) |
corporateUser or organization. On create you may attach a doctor, a hospital, and a corporate together.
Flow
1. Get party-specific pricing
Pass the party on the tests / packages calls. The returnedcost / total is that party’s negotiated rate; tests with no special rate fall back to the branch price.
2. Create the lead or booking with a party
Send yourintegratorID (always required) and at least one party.
404.
3. Register one webhook per party
When subscribing, attach the party the webhook is for. Events for that party’s bills/leads are delivered only to its webhook.Rules to know
- Party required — tests/packages and create calls without a party return
400. - One per party — a party can have only one active webhook per event; a duplicate returns
409. - Reading webhooks —
GET /client/events/getAllEventsand delete also take the party, and only act on that party’s webhooks. - Everything else —
branchIDscope, same-day duplicate409, 60 req/min — works exactly like catch-all.