Track Progress: Monitor bill status through webhook events
Important Notes
At least one of the following is required: mapped_tests, unmapped_tests,
mapped_packages, or unmapped_packages - Contact the Flabs team to add new
lead sources or get additional field information - Barcodes must be unique
across the system
Ensure all required patient details are provided. Missing information may
cause booking creation to fail.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Flabs Developer Platform APIs","colors":{"primary":"#2567E8","light":"#2567E8","dark":"#2567E8"},"logo":{"light":"https://mintcdn.com/flabs/XMaScWewdN3WnYoT/logo/light.svg?fit=max\u0026auto=format\u0026n=XMaScWewdN3WnYoT\u0026q=85\u0026s=76bd6efd710b5d3a6017da1d7b459ed2","dark":"https://mintcdn.com/flabs/XMaScWewdN3WnYoT/logo/dark.svg?fit=max\u0026auto=format\u0026n=XMaScWewdN3WnYoT\u0026q=85\u0026s=ce6b2e92330df479a4edd58d12660548"},"favicon":"https://mintcdn.com/flabs/e-tGXaxvhweChWgL/favicon.svg?fit=max\u0026auto=format\u0026n=e-tGXaxvhweChWgL\u0026q=85\u0026s=ae0e9c0f6c67f8c0709da48b9bb61b6c","navbar":{"links":[{"href":"mailto:hello@flabs.in","label":"Support"}],"primary":{"type":"button","label":"Get Started","href":"https://flabslis.com"}},"footer":{"socials":{"x":"https://x.com/Flabs_in","github":"https://github.com/flabs-in","linkedin":"https://www.linkedin.com/company/flabs-in","instagram":"https://www.instagram.com/flabs.official"}},"seo":{"indexing":"all"},"icons":{"library":"fontawesome"},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Visit Website","icon":"globe","href":"https://flabslis.com"},{"anchor":"Github","icon":"github","href":"https://github.com/flabs-in"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"flabs","hasAudioNarration":false,"actualSubdomain":"flabs","customDomains":["developer.flabslis.com"],"gitSource":{"type":"github","owner":"flabs-in","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":false,"issues":false},"entitlements":{},"buildId":"6acde2e41dca81409f7aafaf","clientVersion":"0.0.4177","searchFilterCounts":[{"language":"default","tag":"API References","count":31},{"language":"default","tag":"Webhooks","count":8},{"language":"default","tag":"CRM","count":6},{"language":"default","tag":"WhatsApp","count":5},{"language":"default","tag":"Patient Reports","count":4},{"language":"default","tag":"Flabs Developer API guide","count":3},{"language":"default","tag":"Authorization","count":3},{"language":"default","tag":"Billing","count":2},{"language":"default","tag":"Patient Login","count":2},{"language":"default","tag":"Home","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"billing/introduction","slug":"/billing/introduction","pageMetadata":{"title":null,"description":null,"href":"/billing/introduction"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Note,OptimizedImage,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`billing-api`,children:`Billing API`}),`\n`,_jsx(_components.p,{children:`The Billing API enables you to create pre-bookings in the Flabs system, initiating the complete laboratory workflow from booking to report delivery.`}),`\n`,_jsx(Heading,{level:`2`,id:`billing-workflow`,children:`Billing Workflow`}),`\n`,_jsx(_components.p,{children:`The billing process follows a structured workflow as shown below:`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/flabs/XMaScWewdN3WnYoT/images/billing-flow.png?fit=max\u0026auto=format\u0026n=XMaScWewdN3WnYoT\u0026q=85\u0026s=a0f695bc7ef8f86bac4989799d58b1b9`,alt:`Billing Flow`,\"data-og-width\":`1858`,width:`1858`,\"data-og-height\":`744`,height:`744`,\"data-path\":`images/billing-flow.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/flabs/XMaScWewdN3WnYoT/images/billing-flow.png?w=280\u0026fit=max\u0026auto=format\u0026n=XMaScWewdN3WnYoT\u0026q=85\u0026s=e93c4df6410573697e18f9f536f584ae 280w, https://mintcdn.com/flabs/XMaScWewdN3WnYoT/images/billing-flow.png?w=560\u0026fit=max\u0026auto=format\u0026n=XMaScWewdN3WnYoT\u0026q=85\u0026s=c2a72ab741e6e9354793fb28bb06a363 560w, https://mintcdn.com/flabs/XMaScWewdN3WnYoT/images/billing-flow.png?w=840\u0026fit=max\u0026auto=format\u0026n=XMaScWewdN3WnYoT\u0026q=85\u0026s=578ff2e4d6e0a451fb8f5fdd5f0cc920 840w, https://mintcdn.com/flabs/XMaScWewdN3WnYoT/images/billing-flow.png?w=1100\u0026fit=max\u0026auto=format\u0026n=XMaScWewdN3WnYoT\u0026q=85\u0026s=ee60b305bad5e18c5113468c27a41573 1100w, https://mintcdn.com/flabs/XMaScWewdN3WnYoT/images/billing-flow.png?w=1650\u0026fit=max\u0026auto=format\u0026n=XMaScWewdN3WnYoT\u0026q=85\u0026s=73ef3c97f6fd1550825a35107c0e923f 1650w, https://mintcdn.com/flabs/XMaScWewdN3WnYoT/images/billing-flow.png?w=2500\u0026fit=max\u0026auto=format\u0026n=XMaScWewdN3WnYoT\u0026q=85\u0026s=fc37beb6d0caa36897fa4c5dc448c7e6 2500w`}),`\n`,_jsx(Heading,{level:`3`,id:`workflow-steps`,children:`Workflow Steps`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Your Platform`}),` → `,_jsx(_components.strong,{children:`Pre Booking`}),`: Call `,_jsx(_components.code,{children:`/client/billing/create`}),` API to create a pre-booking`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Pre Booking`}),` → `,_jsx(_components.strong,{children:`Bill Creation`}),`: Flabs creates a bill internally`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Bill Creation`}),` → `,_jsx(_components.strong,{children:`Report Entry`}),`: Laboratory processes samples and enters report data`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Report Entry`}),` → `,_jsx(_components.strong,{children:`Report Approval`}),`: Reports are reviewed and approved`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Webhook Notifications`}),`: Receive real-time updates at each stage (if subscribed)`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`key-concepts`,children:`Key Concepts`}),`\n`,_jsx(Heading,{level:`3`,id:`required-data`,children:`Required Data`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Patient Details`}),`: Basic patient information (name, age, gender)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Integrator ID`}),`: Your unique identifier for tracking`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Lead Source`}),`: Source of the booking request`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Tests/Packages`}),`: Either mapped (with Flabs IDs) or unmapped tests and packages`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`test-and-package-mapping`,children:`Test and Package Mapping`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Mapped Tests`}),`: Tests already synchronized between your system and Flabs`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Unmapped Tests`}),`: Tests that need manual mapping by Flabs team`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Mapped Packages`}),`: Package bundles with established Flabs IDs`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Unmapped Packages`}),`: Package bundles requiring manual mapping`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`webhook-integration`,children:`Webhook Integration`}),`\n`,_jsx(_components.p,{children:`Subscribe to webhook events to receive notifications about:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`bill.created`}),` - When bill is generated`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`bill.completed`}),` - When entire bill is processed`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`report.completed`}),` - When individual reports are ready`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`getting-started`,children:`Getting Started`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Authentication`}),`: Obtain a Bearer token from `,_jsx(_components.a,{href:`/auth/introduction`,children:`authentication endpoints`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Create Pre-booking`}),`: Use the `,_jsx(_components.a,{href:`/billing/endpoint/create_bill`,children:`billing create endpoint`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Subscribe to Webhooks`}),`: Set up `,_jsx(_components.a,{href:`/webhooks/introduction`,children:`webhook notifications`}),` for status updates, and check the `,_jsx(_components.a,{href:`/webhooks/events-response`,children:`event payloads`}),` your endpoint will receive`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Track Progress`}),`: Monitor bill status through webhook events`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`important-notes`,children:`Important Notes`}),`\n`,_jsx(Note,{children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`At least one of the following is required: `,_jsx(_components.code,{children:`mapped_tests`}),`, `,_jsx(_components.code,{children:`unmapped_tests`}),`,\n`,_jsx(_components.code,{children:`mapped_packages`}),`, or `,_jsx(_components.code,{children:`unmapped_packages`}),` - Contact the Flabs team to add new\nlead sources or get additional field information - Barcodes must be unique\nacross the system`]}),`\n`]})}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Ensure all required patient details are provided. Missing information may\ncause booking creation to fail.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":null,"description":null,"href":"/billing/introduction"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Billing API","slug":"billing-api","depth":1,"children":[]},{"title":"Billing Workflow","slug":"billing-workflow","depth":2,"children":[{"title":"Workflow Steps","slug":"workflow-steps","depth":3,"children":[]}]},{"title":"Key Concepts","slug":"key-concepts","depth":2,"children":[{"title":"Required Data","slug":"required-data","depth":3,"children":[]},{"title":"Test and Package Mapping","slug":"test-and-package-mapping","depth":3,"children":[]},{"title":"Webhook Integration","slug":"webhook-integration","depth":3,"children":[]}]},{"title":"Getting Started","slug":"getting-started","depth":2,"children":[]},{"title":"Important Notes","slug":"important-notes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"flabs","siteName":"Flabs Developer Platform APIs","title":"Introduction - Flabs Developer Platform APIs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-13T07:51:08.878Z","originalFileLocation":"billing/introduction.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Flabs Developer Platform APIs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/flabs/56xRqSUdtXgmivNA/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/flabs/56xRqSUdtXgmivNA/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/flabs/56xRqSUdtXgmivNA/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/flabs/56xRqSUdtXgmivNA/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/flabs/56xRqSUdtXgmivNA/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/flabs/56xRqSUdtXgmivNA/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/flabs/56xRqSUdtXgmivNA/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/flabs/56xRqSUdtXgmivNA/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/flabs/56xRqSUdtXgmivNA/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Introduction - Flabs Developer Platform APIs\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Flabs Developer Platform APIs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developer.flabslis.com/billing/introduction\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://flabs.mintlify.site/_mintlify/api/og/v2?division=Billing\u0026amp;title=Introduction\u0026amp;theme=00856c0855aa61446030fb21\u0026amp;signature=dce0f4b59d5b63ebc231e36f8a615fab89da57db04c4b24dc7feb55c80bac25a\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Introduction - Flabs Developer Platform APIs\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://flabs.mintlify.site/_mintlify/api/og/v2?division=Billing\u0026amp;title=Introduction\u0026amp;theme=00856c0855aa61446030fb21\u0026amp;signature=dce0f4b59d5b63ebc231e36f8a615fab89da57db04c4b24dc7feb55c80bac25a\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/flabs/56xRqSUdtXgmivNA/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Flabs Developer Platform APIs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2567E8\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developer.flabslis.com/billing/introduction\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/billing/introduction.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developer.flabslis.com/#organization\",\"name\":\"Flabs Developer Platform APIs\",\"url\":\"https://developer.flabslis.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/flabs/XMaScWewdN3WnYoT/logo/light.svg?fit=max\u0026auto=format\u0026n=XMaScWewdN3WnYoT\u0026q=85\u0026s=76bd6efd710b5d3a6017da1d7b459ed2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developer.flabslis.com#website\",\"name\":\"Flabs Developer Platform APIs\",\"url\":\"https://developer.flabslis.com\",\"publisher\":{\"@id\":\"https://developer.flabslis.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developer.flabslis.com/billing/introduction#webpage\",\"url\":\"https://developer.flabslis.com/billing/introduction\",\"name\":\"Introduction\",\"dateModified\":\"2026-10-13T07:51:08.878Z\",\"isPartOf\":{\"@id\":\"https://developer.flabslis.com#website\"},\"breadcrumb\":{\"@id\":\"https://developer.flabslis.com/billing/introduction#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developer.flabslis.com/billing/introduction#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Flabs Developer Platform APIs\",\"item\":\"https://developer.flabslis.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Introduction\",\"item\":\"https://developer.flabslis.com/billing/introduction\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://developer.flabslis.com/billing/introduction#article\",\"headline\":\"Introduction\",\"name\":\"Introduction\",\"url\":\"https://developer.flabslis.com/billing/introduction\",\"mainEntityOfPage\":{\"@id\":\"https://developer.flabslis.com/billing/introduction#webpage\"},\"dateModified\":\"2026-10-13T07:51:08.878Z\",\"publisher\":{\"@id\":\"https://developer.flabslis.com/#organization\"},\"isPartOf\":{\"@id\":\"https://developer.flabslis.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Flabs Developer Platform APIs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Flabs Developer Platform APIs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/billing/introduction.md","siteName":"Flabs Developer Platform APIs","nav":{"global":{"anchors":[{"anchor":"Visit Website","icon":"globe","href":"https://flabslis.com"},{"anchor":"Github","icon":"github","href":"https://github.com/flabs-in"}]},"tabs":[{"tab":"Home","groups":[{"group":"Welcome","pages":[{"title":"Welcome to Flabs","mode":"custom","href":"/welcome"}]}]},{"tab":"API References","groups":[{"group":"Flabs Developer API guide","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Build Your Integration with AI","sidebarTitle":"AI Coding Assistant (Developers)","href":"/ai/integrate-with-ai"},{"title":"Flabs for Claude \u0026 ChatGPT","sidebarTitle":"Claude \u0026 ChatGPT Connector (Lab Owners)","href":"/ai/claude-chatgpt-connector"}]},{"group":"Authorization","pages":[{"title":"Authentication APIs","href":"/auth/introduction"},{"title":"Auth Token","openapi":"POST /client/auth/token","href":"/auth/endpoint/get_auth_token"},{"title":"Refresh Auth Token","openapi":"POST /client/auth/token/refresh","href":"/auth/endpoint/get_auth_token_refresh"}]},{"group":"Webhooks","pages":[{"title":null,"href":"/webhooks/introduction"},{"title":"Events Response","href":"/webhooks/events-response"},{"title":"Register Webhook","openapi":"POST /client/events/subscribe","href":"/webhooks/endpoint/register_webhook"},{"title":"Get All Webhooks","openapi":"GET /client/events/getAllEvents","href":"/webhooks/endpoint/get_all_webhooks"},{"title":"Delete Webhook","openapi":"DELETE /client/events/deleteEvent/{id}","href":"/webhooks/endpoint/delete_webhook"},{"title":"Get Auto-deleted Webhooks","openapi":"GET /client/events/getDeactivatedEvents","href":"/webhooks/endpoint/get_deactivated_webhooks"},{"title":"Restore Webhook","openapi":"PATCH /client/events/reactivateEvent/{id}","href":"/webhooks/endpoint/reactivate_webhook"},{"title":"Auto-deleted Webhooks","href":"/webhooks/auto-deactivation"}]},{"group":"WhatsApp","pages":[{"title":"WhatsApp through your own provider","href":"/whatsapp/introduction"},{"title":"Connect Your WhatsApp Provider","href":"/whatsapp/connect-your-provider"},{"title":"Register WhatsApp Webhook","href":"/whatsapp/register-webhook"},{"title":"Events \u0026 Responses","href":"/whatsapp/payload"},{"title":"Templates","description":"The Flabs WhatsApp templates to copy into your provider.","href":"/whatsapp/templates"}]},{"group":"Billing","pages":[{"title":null,"href":"/billing/introduction"},{"title":"Create Pre-booking","openapi":"POST /client/billing/create","description":"Create a pre-booking in the Flabs system with patient details and test/package information. This initiates the billing workflow.","href":"/billing/endpoint/create_bill"}]},{"group":"Patient Reports","pages":[{"title":"Patient APIs Introduction","href":"/patient/introduction"},{"group":"Patient Login","icon":"right-to-bracket","pages":[{"title":"Get OTP","openapi":"POST /client/patient/getLoginOTP","href":"/patient/endpoint/get_otp"},{"title":"Verify OTP","openapi":"POST /client/patient/verifyLoginOTP","href":"/patient/endpoint/verify_otp"}]},{"title":"Get Patient Reports","openapi":"GET /client/patient/getReports","href":"/patient/endpoint/get_records"}]},{"group":"CRM","pages":[{"title":"CRM","href":"/crm/introduction"},{"title":"Party-scoped (B2B)","href":"/crm/party-scoped"},{"title":"List Branches","openapi":"GET /client/labs","href":"/crm/endpoint/list_branches"},{"title":"List Tests","openapi":"GET /client/crm/tests","href":"/crm/endpoint/list_tests"},{"title":"List Packages","openapi":"GET /client/crm/packages","href":"/crm/endpoint/list_packages"},{"title":"Create Lead or Booking","openapi":"POST /client/crm/lead/create","href":"/crm/endpoint/create_lead"}]}]}]},"basePath":"","title":"Introduction - Flabs Developer Platform APIs","deploymentId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","buildId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-DQG3o8Eu.js","lightbox-handle-r17bVUz3.js"]}