Import balance list from CSV data
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.
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.
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/balance-list" \ -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" ]}Delete an import mapping template DELETE
Permanently deletes a saved import mapping template by ID (passed as query parameter). Lab-only endpoint.
Import clients from CSV data POST
Imports clinic/client data from mapped CSV rows. Creates new clinic organizations and partnerships, or identifies existing ones. Lab-only endpoint.