Record Invoice Payment
Record a manual payment against an invoice. Lab-only. Automatically updates invoice status (partially_paid/paid), creates a transaction record, and triggers Xero payment sync if configured.
Record a manual payment against an invoice. Lab-only. Automatically updates invoice status (partially_paid/paid), creates a transaction record, and triggers Xero payment sync if configured.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Path Parameters
Invoice ID
Header Parameters
1 <= length <= 255Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/invoices/550e8400-e29b-41d4-a716-446655440000/payment" \ -H "idempotency-key: string" \ -H "Content-Type: application/json" \ -d '{ "amount": "string", "method": "card" }'{ "success": true, "paymentId": "string", "invoiceStatus": "string", "amountPaid": "string", "amountDue": "string", "overpaymentAmount": "string"}List Invoices GET
Retrieve a paginated list of invoices for the authenticated lab. Supports filtering by status, clinic, and search text.
Update Invoice PUT
Edit draft invoice metadata or perform an allowed lifecycle transition. Financial headers are derived from line items and payment states are ledger-derived.