Create Credit Note
Create an invoice-backed or manual account credit note. Invoice-backed clinic, partnership, currency, doctor identity, tax rate, and pricing mode are derived from the source invoice; manual doctor display data is resolved from a verified clinic member.
Create an invoice-backed or manual account credit note. Invoice-backed clinic, partnership, currency, doctor identity, tax rate, and pricing mode are derived from the source invoice; manual doctor display data is resolved from a verified clinic member.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Header Parameters
Stable key reused only when retrying the exact same command body
8 <= length <= 200Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/credit-notes" \ -H "idempotency-key: stringst" \ -H "Content-Type: application/json" \ -d '{ "invoiceId": "string", "items": [ { "description": "string", "unitPrice": "string" } ] }'{ "id": "string", "creditNoteNumber": "string"}{ "error": "string"}Allocate Credit Note POST
Allocate credit from a credit note to an invoice. Lab-only. Reduces the invoice's amount due and the credit note's remaining balance. May mark the invoice as paid if fully covered.
Deallocate Credit Note DELETE
Reverse a credit-note allocation. Lab-only. Restores the credit note's remaining balance and the invoice's amount due (may revert the invoice from paid).