Allocate Credit Note
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.
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.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Path Parameters
Credit note ID
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/credit-notes/550e8400-e29b-41d4-a716-446655440000/allocate" \ -H "Content-Type: application/json" \ -d '{ "idempotencyKey": "stringst", "invoiceId": "string", "amount": "string" }'{ "success": true, "newRemaining": "string", "newAmountDue": "string"}{ "error": "string"}{ "error": "string"}{ "error": "string"}Credit Notes
Previous Page
Create Credit Note POST
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.