{"service":"ms-docs","status":"running","version":"1.0.0","endpoints":{"GET \/docs":"List documents (no auth; X-User-Id optional)","GET \/docs\/{id}":"Get document by ID (no auth; X-User-Id optional)","POST \/docs":"Upload document (no auth; X-User-Id optional)","PUT \/docs\/{id}":"Update document metadata (no auth; X-User-Id optional)","DELETE \/docs\/{id}":"Delete document (no auth; X-User-Id optional)","GET \/docs\/{id}\/download":"Download document file (no auth; X-User-Id optional)","GET \/invoices":"List invoices (no auth; X-User-Id optional)","GET \/invoices\/last-by-client":"Get last invoice info for one or many client IDs (no auth; X-User-Id optional)","GET \/invoices\/stats-by-client":"Get invoice stats for one or many client IDs (no auth; X-User-Id optional)","GET \/invoices\/{id}":"Get invoice by ID (no auth; X-User-Id optional)","POST \/invoices":"Create invoice (no auth; X-User-Id optional)","PUT \/invoices\/{id}":"Update invoice (requires Authorization header, blocked if PDF generated)","DELETE \/invoices\/{id}":"Delete invoice (no auth; X-User-Id optional)","POST \/invoices\/{id}\/generate-pdf":"Generate invoice PDF (no auth; X-User-Id optional)","GET \/invoices\/{id}\/pdf-download":"Download invoice PDF (no auth; X-User-Id optional)","POST \/invoices\/{id}\/generate-ubl":"Generate invoice UBL (no auth; X-User-Id optional)","GET \/invoices\/{id}\/ubl-download":"Download invoice UBL (no auth; X-User-Id optional)","POST \/invoices\/{id}\/emit":"Emit invoice (generate PDF and UBL) (no auth; X-User-Id optional)","GET \/quotes":"List quotes (no auth; X-User-Id optional)","GET \/quotes\/{id}":"Get quote by ID (no auth; X-User-Id optional)","POST \/quotes":"Create quote (no auth; X-User-Id optional)","PUT \/quotes\/{id}":"Update quote (no auth; X-User-Id optional)","DELETE \/quotes\/{id}":"Delete quote (no auth; X-User-Id optional)","GET \/invoice-settings":"Get invoice settings (no auth; X-User-Id optional)","PUT \/invoice-settings":"Update invoice settings (no auth; X-User-Id optional)","GET \/quote-settings":"Get quote settings (no auth; X-User-Id optional)","PUT \/quote-settings":"Update quote settings (no auth; X-User-Id optional)","GET \/delivery-notes":"List delivery notes (no auth; X-User-Id optional)","GET \/delivery-notes\/{id}":"Get delivery note by ID (no auth; X-User-Id optional)","POST \/delivery-notes":"Create delivery note (no auth; X-User-Id optional)","PUT \/delivery-notes\/{id}":"Update delivery note (requires Authorization header, blocked if PDF generated)","DELETE \/delivery-notes\/{id}":"Delete delivery note (no auth; X-User-Id optional)","POST \/delivery-notes\/{id}\/cancel":"Cancel delivery note (no auth; X-User-Id optional)","POST \/delivery-notes\/{id}\/generate-pdf":"Generate delivery note PDF (no auth; X-User-Id optional)","GET \/delivery-notes\/{id}\/pdf-download":"Download delivery note PDF (no auth; X-User-Id optional)","GET \/delivery-notes\/available-items\/{order_id}":"Get available order items for delivery note (no auth; X-User-Id optional)","POST \/signwell\/documents":"Create SignWell document (no auth)","GET \/signwell\/documents\/{signwell_document_id}":"Get SignWell document status (no auth)","POST \/signwell\/documents\/{signwell_document_id}\/embedded-signing":"Get embedded signing URL (no auth)","POST \/signwell\/documents\/{signwell_document_id}\/send":"Send document for signing (no auth)","GET \/signwell\/documents\/{signwell_document_id}\/completed-pdf":"Download completed PDF (no auth)","POST \/signwell\/documents\/{signwell_document_id}\/sync":"Sync document status (no auth)","GET \/signwell\/settings":"Get SignWell settings (no auth; X-User-Id optional)","PUT \/signwell\/settings":"Update SignWell settings (no auth; X-User-Id optional)","POST \/webhooks\/signwell":"SignWell webhook endpoint (no auth, signature validation)"}}