Import clients from CSV data
Imports clinic/client data from mapped CSV rows. Creates new clinic organizations and partnerships, or identifies existing ones. Lab-only endpoint.
Imports clinic/client data from mapped CSV rows. Creates new clinic organizations and partnerships, or identifies existing ones. Lab-only endpoint.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/import/clients" \ -H "Content-Type: application/json" \ -d '{ "mappings": [ { "sourceColumn": "string", "targetField": "string" } ], "rows": [ { "property1": "string", "property2": "string" } ] }'{ "success": true, "totalRows": 0, "successCount": 0, "errorCount": 0, "errors": [ { "row": 0, "message": "string" } ], "createdIds": [ "string" ], "updatedIds": [ "string" ]}Import balance list from CSV data POST
Imports non-negative opening balances as new invoices. Preserves a supplied invoice number when it is unused and rejects existing invoice numbers rather than mutating issued documents. Optionally saves the column mapping for reuse. Lab-only endpoint.
Import price list items from CSV data POST
Imports price list items from mapped CSV rows. Supports single or multiple price list mode. Matches products by SKU or name. Auto-creates price lists in multiple mode. Lab-only endpoint.