Compatibility routes — documents (2/6)
These routes forward to existing application handlers. They are listed for compatibility and troubleshooting, not as a promise of uniform M2M authentication, scopes or response schemas. The forwarded handler can require an interactive session, tenant permissions, a licensed module or a provider configuration. Use the explicit public M2M contract where available. Inspect the result body and the resulting record: some legacy adapters can return metadata with HTTP 200 after a forwarding failure.
Authentication and permissions · Requests, results and recovery
/api/v1/documents/ai/edit
Exported methods: POST
Forwarded handler methods: POST
Additional permissions: view:customers
/api/v1/documents/ai/extract
Exported methods: POST
Forwarded handler methods: POST
Query parameters: type
/api/v1/documents/ai/fix-finding
Exported methods: POST
Forwarded handler methods: POST
/api/v1/documents/ai/line
Exported methods: POST
Forwarded handler methods: POST
Additional permissions: view:products
/api/v1/documents/ai/review
Exported methods: POST
Forwarded handler methods: POST
/api/v1/documents/audit-logs
Exported methods: GET
Forwarded handler methods: GET
Additional permissions: view:audit_logs
Query parameters: documentId, documentType
/api/v1/documents/autofatture
Exported methods: GET, POST
Forwarded handler methods: GET, POST
Additional permissions: create:invoices, view:invoices
Query parameters: page, pageSize, search
/api/v1/documents/autofatture/preview
Exported methods: GET
Forwarded handler methods: GET
Additional permissions: view:invoices
Query parameters: kind, sourceId, sourceType, tipoDocumento, vatRate
/api/v1/documents/credit-notes
Exported methods: GET, POST
Forwarded handler methods: GET, POST
Additional permissions: create:credit_notes, view:credit_notes
Query parameters: limit, page, search, status
/api/v1/documents/credit-notes/{id}
Exported methods: GET, PATCH, DELETE
Forwarded handler methods: GET, PATCH, DELETE
Additional permissions: delete:credit_notes, edit:credit_notes, view:credit_notes
/api/v1/documents/credit-notes/{id}/status
Exported methods: PATCH
Forwarded handler methods: PATCH
Additional permissions: edit:credit_notes
/api/v1/documents/credit-notes/from-invoice
Exported methods: POST
Forwarded handler methods: POST
Additional permissions: create:credit_notes
/api/v1/documents/cron/invoice-reminders
Exported methods: POST
Forwarded handler methods: POST
/api/v1/documents/expenses
Exported methods: GET, POST
Forwarded handler methods: GET, POST
Additional permissions: create:expenses, view:expenses
Query parameters: category, limit, page, search, sortBy, sortOrder, status, vendor
/api/v1/documents/expenses/{id}
Exported methods: GET, PATCH, DELETE
Forwarded handler methods: GET, PATCH, DELETE
Additional permissions: delete:expenses, edit:expenses, view:expenses
/api/v1/documents/expenses/{id}/approve
Exported methods: POST
Forwarded handler methods: POST
Additional permissions: approve:expenses
/api/v1/documents/expenses/{id}/attachments
Exported methods: POST
Forwarded handler methods: POST
Additional permissions: edit:expenses
/api/v1/documents/expenses/{id}/attachments/{attachmentId}
Exported methods: GET
Forwarded handler methods: GET
Additional permissions: view:expenses