Source:
apps/erp-backend/src/sii/sii.controller.ts. Base path: /api/entities/:entityId/sii.GET /sii/document-types
List the SII document type catalog available to this Entity (invoice, credit note, debit note, and their variants).
- Response: array of
siiDocumentTypeSchema.
GET /sii/dte/:dteId
Fetch a single DTE with its detail, including line items and any references to or from other DTEs.
- Response:
dteDetailSchema.
POST /sii/dte/:dteId/references
Add a reference from this DTE to a target DTE. Used, for example, to record that a credit note credits a specific original invoice.
- Body:
CreateDteReferenceDto. - Response: the updated
dteDetailSchema.
DELETE /sii/dte/:dteId/references/:targetDteId
Remove a previously added reference.
- Response: the updated
dteDetailSchema.